Commit Graph

706 Commits

Author SHA1 Message Date
Nick Clifton 235c479450 Added/Updated Danish translation. 2002-11-07 08:45:25 +00:00
Nick Clifton 232e7cb82c Revert part of previous patch: Display unknown symbol types in decimal, not hex. 2002-11-07 08:33:15 +00:00
Nick Clifton c9e3887989 Adds support for fastcall symbols as used on Microsoft Windows platforms
(i386)
2002-11-06 19:36:20 +00:00
Svein Seldal a700dc3bd7 Added Svein Seldal as maintainer for the TIC4X target 2002-11-06 17:32:52 +00:00
Nick Clifton 49814ed01f oops - omitted fix to display unknown symbol type in hex. 2002-11-06 17:02:36 +00:00
Nick Clifton 5cf1065c25 Add hex number to PROCESSOR-specific, OS-specific, and reserved symbol types. 2002-11-06 17:00:57 +00:00
Alan Modra f1ef08cb01 * readelf.c (byte_get_little_endian): Comment typo fix.
(print_symbol): Constify "symbol" arg.  Don't pass "symbol" to printf
	as the format string.
	(dump_relocations): Correct section sym names.
	(process_section_headers): Clear symtab_shndx_hdr.
	(read_and_display_attr_value): Don't pass indirect string to printf
	as the format string.
	(display_debug_frames): Indicate when zero terminator found.  Decode
	DW_EH_PE_pcrel addresses.
2002-11-04 03:18:41 +00:00
Nick Clifton 1a09a22c06 Define SKIP_ZEROES as 32 for tic4x target in order to ensure proper
disassembly of the valid 0-value opcode.
2002-10-23 14:49:08 +00:00
Kaz Kojima c254c557e7 * MAINTAINERS: Add Kaz Kojima as SH maintainer. 2002-10-23 13:39:09 +00:00
Ben Elliston 2c0c15f973 * use @itemx, not @item, for --disassemble-zeroes. 2002-10-22 22:59:02 +00:00
Ben Elliston aefbdd678e * doc/binutils.texi (objdump): Document -z and move the entry for
--disassemble-zeroes to the end of the options section (for `z').
2002-10-22 22:40:47 +00:00
Nick Clifton ab9bcc017f Discontinue Hans-Peter Nilsson as SH maintainer. 2002-10-21 07:56:36 +00:00
Alan Modra 8ab56b6f54 * objdump.c (dump_data): Correct addr_offset for opb != 1. 2002-10-21 02:18:58 +00:00
Alan Modra 48417c1acc * bucomm.c (list_supported_targets): Use bfd_target_list. 2002-10-15 11:34:01 +00:00
Alan Modra 49c1257607 * objcopy.c (copy_file): Report ambiguous bfd_object matches, and
other object errors in preference to bfd_core errors.
2002-10-15 05:10:48 +00:00
Alan Modra 6e1a7e9a11 * Makefile.am: Run "make dep-am".
* objdump.c: #include "bfdver.h".
	* version.c: Likewise.
	* Makefile.in: Regenerate.
	* config.in: Regenerate.
	* configure: Regenerate.
	* po/POTFILES.in: Regenerate.
2002-10-14 12:07:58 +00:00
Daniel Jacobowitz 09fc3b0230 * readelf.c (display_debug_info): Ignore empty .rela.debug_info
sections.  Allow relocations against the absolute symbol.  Don't
        use the value in compunit.cu_abbrev_offset if we found a RELA
        relocation.
2002-10-09 13:44:27 +00:00
Nick Clifton f309035a88 Read in dynamic symbols if no ordinary ones are available. 2002-10-07 17:25:08 +00:00
H.J. Lu 810dfa6e36 2002-09-30 H.J. Lu <hjl@gnu.org>
* readelf.c (get_machine_flags): Handle E_MIPS_MACH_4120,
	E_MIPS_MACH_5400 and E_MIPS_MACH_5500.
2002-10-01 03:27:56 +00:00
Zack Weinberg bb279dc026 binutils:
* Makefile.am (CFILES): Add cxxfilt.c.
	(cxxfilt_SOURCES): Now just cxxfilt.c $(BULIBS).
	(cxxfilt_LDADD): Delete.
	Remove all references to underscore.c.
	Regen dependencies.
	* configure.in: Define TARGET_PREPENDS_UNDERSCORE in
	config.h from $UNDERSCORE, rather than AC_SUBSTing it.
	* binutils/cxxfilt.c: Moved here from gcc/cp, minor
	adjustments to fit into binutils framework.
	* configure, config.in, Makefile.in, doc/Makefile.in: Regenerate.

gcc/cp:
	* Make-lang.in: Remove all references to the demangler.
	* cxxfilt.c: Moved to binutils.
2002-09-17 07:09:47 +00:00
Nick Clifton 065c959b71 Handle DW_OP_GNU_push_tls_address.
Synch up with the gcc's dwarf2.h
2002-09-12 10:35:54 +00:00
Nick Clifton e09f439535 Update translations 2002-09-11 13:52:17 +00:00
Nick Clifton 873e05886e Add Ben Elliston as a maintainer for configure and testsuite changes.
Add paragraphs about testsuite and config patches.
2002-09-10 08:21:41 +00:00
Nick Clifton 069fe61f90 Remove redundant reference to E_V850EA_ARCH. 2002-08-29 15:43:47 +00:00
Alan Modra fe0507eba5 * objdump.c (dump_bfd): Restore lines accidentally deleted in
last commit.
2002-08-28 12:32:06 +00:00
Nick Clifton 026df7c5e6 Add TMS320C4x support 2002-08-28 10:38:51 +00:00
Alan Modra 68a4c07345 Revert last change. 2002-08-26 23:15:48 +00:00
Alan Modra 84938e2e33 * binutils-all/objcopy.exp (strip_test): Adjust for "no symbols" on
stdout.
	(strip_executable): Likewise.
2002-08-26 10:15:46 +00:00
Alan Modra a1df01d1e4 * nm.c (display_rel_file): Don't report "no symbols" as an error.
* objdump.c (slurp_symtab): Likewise.
	(slurp_dynamic_symtab): Likewise.
	(dump_symbols): Likewise.  Do print "no symbols" to stdout.
2002-08-26 10:14:15 +00:00
Geoffrey Keating a926ab2fb9 * MAINTAINERS: Change my mailing address. 2002-08-24 22:43:50 +00:00
Dave Anglin fcf6238032 * MAINTAINERS: Add Dave Anglin as HPPA co-maintainer. 2002-08-23 16:07:02 +00:00
Nick Clifton f52e0eb852 oops - omitted from previous delta 2002-08-23 07:34:44 +00:00
Nick Clifton 51e28791b0 Add Jeff Law as HPPA maintainer 2002-08-22 17:35:42 +00:00
Alan Modra c5b060adc5 * readelf.c (parse_args): Change debug_dump_opt to static. 2002-08-20 23:46:41 +00:00
Nick Clifton 61cd567514 Revert previous delta - it was bogus. 2002-08-17 09:59:34 +00:00
Nick Clifton 86f5577900 Put a newline after display an unknown dynamic type. 2002-08-16 14:41:15 +00:00
Nick Clifton 4b73ca9289 Cope with demangling function names that include a double underscore. 2002-08-16 11:44:03 +00:00
Alan Modra 8de397a5ad * binutils-all/objdump.exp (cpus_expected): Add fr500, ip2022,
tic80, tms320c30.
	* binutils-all/objcopy.exp (simple copy): Revise xfails.
2002-08-15 23:41:18 +00:00
Alan Modra 35b1837e46 * readelf.c: Include elf/i370.h.
(dump_relocations): Handle EM_S370.
	(dynamic_segment_parisc_val): Print \n.
	(process_dynamic_segment <DT_BIND_NOW>): Here too.
2002-08-15 12:22:39 +00:00
Nick Clifton 762baac5e1 oops - omitted from previous delta 2002-08-14 15:13:09 +00:00
Nick Clifton b5e2a4f34a Replace 'gnu-new-abi' with 'gnu-v3' 2002-08-14 15:12:07 +00:00
Nick Clifton 85c09e8a4a Don't warn about ALT use with non-VIRTKEY. 2002-08-14 10:44:54 +00:00
H.J. Lu 212a3c4d9d 2002-08-13 H.J. Lu <hjl@gnu.org>
* objcopy.c (copy_object): Don't warn about the unsupported
	architecture unless the input target is defaulted or the
	output architecture is different from the input.
2002-08-13 13:39:02 +00:00
Nick Clifton 2b692c5912 Updated Swedish translation 2002-08-09 15:07:57 +00:00
Richard Henderson 1b50a3482a Add myself as Alpha maintainer. 2002-08-06 21:58:26 +00:00
Alan Modra 09de7a7356 * prdbg.c (pr_fix_visibility): Remove assert. 2002-08-05 00:54:11 +00:00
Nick Clifton 47badb7be6 Rename function arguments to avoid shadowing global symbols of the same name. 2002-07-31 09:38:04 +00:00
Jakub Jelinek 2979dc3446 * readelf.c (OPTION_DEBUG_DUMP): Define.
(options): Use it.
	(usage): Update help.
	(parse_args): Handle --debug-dump separately from -w.
	* doc/binutils.texi (readelf): Update documentation.
2002-07-30 14:33:40 +00:00
Nick Clifton 219576a4db New translations 2002-07-25 10:31:28 +00:00
Nick Clifton bf4f22e6a6 oops - omitted from previous delta 2002-07-24 09:37:02 +00:00
Nick Clifton ff3063f557 Update Spanish and Swedish translations 2002-07-24 09:34:08 +00:00
Alan Modra c5b3a82ae6 * Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
2002-07-23 12:44:25 +00:00
Nick Clifton 0461a601af update translations. 2002-07-23 09:58:05 +00:00
Alan Modra bf44dd7445 * doc/binutils.texi (addr2line <man synopsis>): Correct brackets. 2002-07-23 05:12:57 +00:00
Alan Modra 63eb080933 * budemang.c: Include config.h and string.h/strings.h. 2002-07-23 05:12:26 +00:00
Alan Modra 2c205ff2b0 * budemang.c: Include string.h. 2002-07-20 14:00:47 +00:00
Nick Clifton 1e4cf259d2 Add IP2K support 2002-07-18 11:11:13 +00:00
Nick Clifton 2cbb2eefe2 Add 'Chnages in 2.13' to NEWS files. 2002-07-16 07:58:34 +00:00
Jakub Jelinek 047b22647d * readelf.c (get_dynamic_type): Handle DT_GNU_PRELINKED,
DT_GNU_CONFLICT* and DT_GNU_LIBLISZ*.
	(get_section_type_name): Handle SHT_GNU_LIBLIST.
	(process_dynamic_segment): Handle DT_GNU_CONFLICTSZ,
	DT_GNU_LIBLISTSZ and DT_GNU_PRELINKED.
	(process_gnu_liblist): New.
	(process_file): Call it.

	* elf/common.h (SHT_GNU_LIBLIST, DT_GNU_PRELINKED,
	DT_GNU_CONFLICT*, DT_GNU_LIBLIST*): Define.
2002-07-10 15:28:34 +00:00
Alan Modra 97230b1503 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
* Makefile.in: Regenerate.
2002-07-02 23:48:45 +00:00
Alan Modra a6637ec0ed * budemang.c: New file, "demangle" function.
* budemang.h: New file.
	* addr2line.c (translate_addresses): Use "demangle".
	* nm.c (print_symname): Likewise.
	* objdump.c (objdump_print_symname): Likewise.
	(dump_symbols): Likewise.  Also, don't use bfd_asymbol_name macro
	here since that obfuscates.
	* rdcoff.c: Don't #include demangle.h.
	* Makefile.am (CFILES): Add budemang.c, emul_aix.c,
	emul_vanilla.c.  Remove emul_$(EMULATION).c.  Sort.
	(HFILES): Add budemang.h.  Sort.
	(nm_new_SOURCES, objdump_SOURCES, addr2line_SOURCES): Add budemang.c.
	Run "make dep-am".
	* Makefile.in: Regenerate.
	* po/POTFILES.in: Regenerate.
2002-07-02 04:21:25 +00:00
Jason Thorpe 179d3252e3 include/elf:
2002-07-01  Matt Thomas  <matt@3am-software.com>

* Rename EF_* to EF_VAX_*.

bfd:

2002-07-01  Matt Thomas  <matt@3am-software.com>

* elf32-vax.c (elf32_vax_print_private_bfd_data): Change EF_*
to EF_VAX_*.

binutils:

2002-07-01  Matt Thomas  <matt@3am-software.com>

* readelf.c: Include "elf/vax.h".
(guess_is_rela): Move EM_VAX from unknown to RELA case.
(dump_relocations): Handle VAX relocations.
(get_machine_flags): Handle VAX machine flags.
2002-07-01 16:43:38 +00:00
Stephane Carrez 75751cd993 * readelf.c (dump_relocations): Handle 68HC11/68HC12 relocations. 2002-06-30 18:43:33 +00:00
Nick Clifton e5851ab835 Rescind Tom Rix's maintainerships. 2002-06-26 15:26:52 +00:00
Alan Modra eb3f2f5cfd * nm.c (print_symname): When demangling, strip leading dots from
symbol names to avoid confusing the demangler.
2002-06-26 13:23:45 +00:00
H.J. Lu a13a0de813 2002-06-25 H.J. Lu <hjl@gnu.org>
* Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
	* Makefile.in: Regenerated.
2002-06-26 01:12:32 +00:00
Alan Modra 6db7a0866c * configure.in: Quote bu_cv_have_fopen64.
* configure: Regenerate.
2002-06-21 02:41:52 +00:00
Alan Modra 9710509e6b * configure.in: Check for strcoll.
* configure: Regenerate.
	* config.in: Regenerate.
	* nm.c (main): Set locale for LC_COLLATE category.
	(non_numeric_forward): Use strcoll if available.
2002-06-21 02:34:38 +00:00
Dave Brolley a9f0b5e7f0 2002-06-20 Dave Brolley <brolley@redhat.com>
* MAINTAINERS: Add self as fr30 and frv maintainer.
2002-06-20 19:55:10 +00:00
H.J. Lu 33f5f53780 2002-06-18 H.J. Lu (hjl@gnu.org)
* nm.c: Include "elf/common.h".
	(extended_symbol_info): Add elfinfo, a pointer to
	elf_symbol_type.
	(SYM_SIZE): Use elfinfo if it is not NULL.
	(get_symbol_type): New function.
	(display_archive): Set print_width for each archive member.
	(display_file): Likewise.
	(display_rel_file): Don't set print_width here.
	(print_object_filename_sysv): Handle print_width.
	(print_archive_member_sysv): Likewise.
	(print_symbols): Pass (bfd_vma) 0 to print_symbol.
	(print_symbol): Set the elfinfo field in extended_symbol_info
	for ELF.
	(print_object_filename_sysv): Fix the output format.
	(print_symbol_info_sysv): Print type and section for ELF.

2002-06-18  Elias Athanasopoulos  <eathan@otenet.gr>

	* nm.c (print_size_symbols): Remove assignment, which makes
	the symbol's size equal to its value when --size-sort is
	used.
2002-06-19 03:07:04 +00:00
Dave Brolley 5c70f934cb 2002-06-18 Dave Brolley <brolley@redhat.com>
From Catherine Moore:
	* readelf.c (elf/frv.h): #include it.
	(guess_is_rela): Support EM_CYGNUS_FRV.
	(dump_relocations): Ditto.
	(get_machine_name): Ditto.
	* Makefile.am (readelf.o): add dependency on $(INCDIR)/elf/frv.h.
2002-06-18 21:11:47 +00:00
Jakub Jelinek 7ece0d85fd binutils/
* readelf.c (get_file_header): Only read the first section header if
	e_shoff is non-zero.

bfd/
	* elfcode.h (elf_object_p): Sanity check eh_shoff == 0 implies
	e_shnum == 0.
	Only read the first section header if e_shoff is non-zero.
	Don't consider e_shstrndx if there are no sections.
2002-06-18 14:09:06 +00:00
H.J. Lu 72797995ca 2002-06-15 H.J. Lu (hjl@gnu.org)
* nm.c (print_size): New variable. Initialize to 0.
	(long_options): Add 'S'/"print-size".
	(main): Handle 'S'.
	(print_symbol_info_bsd): Print size only if print_size is not
	0.

	* doc/binutils.texi: Document -S/--print-size.
2002-06-15 18:40:26 +00:00
Nick Clifton 977f791144 Display the symbol's size and use it for sorting. 2002-06-13 17:04:39 +00:00
Alan Modra fa44922763 * Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
	* doc/Makefile.in: Regnerate.
2002-06-08 08:44:18 +00:00
Alan Modra b1f88ebebf * bucomm.c: Replace CONST with const.
* nm.c: Likewise.
	* objdump.c: Likewise.
2002-06-08 07:38:30 +00:00
H.J. Lu 91a106e65e 2002-06-07 H.J. Lu <hjl@gnu.org>
* readelf.c (DW_CFA_GNU_args_size): Don't define.
	(DW_CFA_GNU_negative_offset_extended): Likewise.
	(DW_CFA_GNU_window_save): Likewise.
	(display_debug_frames): Handle DW_CFA_offset_extended_sf,
	DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf.
2002-06-07 16:42:31 +00:00
Nick Clifton 6ab6b380ee When computing size of symbols for an ELF target use the internal size field. 2002-06-07 11:02:48 +00:00
Jeff Law e28e05a3e2 * testsuite/binutils-all/objcopy.exp: clear xfail for
"hppa*64*-*-hpux*".
        * testsuite/binutils-all/hppa/objdump.exp: Return if
        "*64*-*-*".
2002-06-06 06:45:12 +00:00
Alan Modra dc156bc0bb * objcopy.c (copy_section): Don't copy SEC_GROUP sections. 2002-06-05 14:06:52 +00:00
Alan Modra 28b18af1b9 * objdump.c: Fix formatting. 2002-06-03 13:02:04 +00:00
Ben Elliston d79e4ea30e * MAINTAINERS: Add self as M68k maintainer. 2002-05-30 01:14:21 +00:00
Alan Modra 195fe6367d * binutils-all/objcopy.exp (strip_test_with_saving_a_symbol):
Revert 2001-11-15.  Instead allow `D main'.
2002-05-29 05:00:33 +00:00
Nick Clifton d172d4ba03 Add DLX target 2002-05-28 14:08:47 +00:00
Nick Clifton 3a1a20369e Fix transaltion problems. 2002-05-27 15:46:10 +00:00
Nick Clifton 7edb8f2931 oops - omitted from previous delta 2002-05-27 15:16:25 +00:00
Nick Clifton e8834cb7a0 New Swedish translation 2002-05-27 15:15:52 +00:00
Alan Modra 3eee1e9d04 * unwind-ia64.c (unw_print_brmask): Don't use sprintf.
(unw_print_grmask): Likewise.
	(unw_print_frmask): Likewise.
2002-05-27 08:40:35 +00:00
Kazu Hirata d43efbe328 * arsup.c: Remove ARGSUSED.
* debug.c: Likewise.
	* ieee.c: Likewise.
	* nlmconv.c: Likewise.
	* prdbg.c: Likewise.
	* stabs.c: Likewise.
	* wrstabs.c: Likewise.
2002-05-26 14:55:04 +00:00
Alan Modra e9792343ae * arlex.l: Use #include "" instead of <> for local header files.
* coffdump.c: Likewise.
	* coffgrok.c: Likewise.
	* nlmconv.c: Likewise.
	* nlmheader.y: Likewise.
	* srconv.c: Likewise.
	* strings.c: Likewise.
	* sysdump.c: Likewise.
	* unwind-ia64.h: Likewise.
	* windres.h: Likewise.
	* winduni.h: Likewise.
2002-05-25 12:51:38 +00:00
Tom Rix d7e534523a Add self as d10v maintainer. 2002-05-24 19:29:07 +00:00
Nick Clifton 436e8db0b7 Add a target for i386-netbsdpe. 2002-05-24 09:26:58 +00:00
Kazu Hirata 9f66665ac5 * size.c: Fix formatting.
* srconv.c: Likewise.
	* stabs.c: Likewise.
	* sysdump.c: Likewise.
	* unwind-ia64.c: Likewise.
	* wrstabs.c: Likewise.
2002-05-24 00:33:36 +00:00
Jakub Jelinek 13ae64f3c7 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
for symbols from SHF_TLS section.
	(_bfd_elf_print_private_bfd_data): Add PT_TLS.
	(elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
	(map_sections_to_segments): Build PT_TLS segment if necessary.
	(assign_file_positions_for_segments): Likewise.
	(get_program_header_size): Account for PT_TLS segment.
	(swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
	SEC_THREAD_LOCAL sections to STT_TLS.
	* reloc.c: Add 386 and IA-64 TLS relocs.
	* section.c (SEC_THREAD_LOCAL): Define.
	(SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
	Remove.
	* elflink.h (elf_link_add_object_symbols): Support .tcommon.
	(size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
	unconditionally.
	(struct elf_final_link_info): Add first_tls_sec.
	(elf_bfd_final_link): Set first_tls_sec.
	Compute elf_hash_table (info)->tls_segment.
	(elf_link_output_extsym): Handle STT_TLS symbols.
	(elf_link_input_bfd): Likewise.
	* syms.c (BSF_THREAD_LOCAL): Define.
	* bfd-in2.h: Rebuilt.
	* libbfd.h: Rebuilt.
	* elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
	elf_i386_mkobject, elf_i386_object_p): New functions.
	(elf_howto_table): Add TLS relocs.
	(elf_i386_reloc_type_lookup): Support TLS relocs.
	(elf_i386_info_to_howto_rel): Likewise.
	(struct elf_i386_link_hash_entry): Add tls_type.
	(struct elf_i386_obj_tdata): New.
	(elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
	New macros.
	(struct elf_i386_link_hash_table): Add tls_ldm_got.
	(link_hash_newfunc): Clear tls_type.
	(elf_i386_check_relocs): Support TLS relocs.
	(elf_i386_gc_sweep_hook): Likewise.
	(allocate_dynrelocs): Likewise.
	(elf_i386_size_dynamic_sections): Likewise.
	(elf_i386_relocate_section): Likewise.
	(elf_i386_finish_dynamic_symbol): Likewise.
	(bfd_elf32_mkobject, elf_backend_object_p): Define.
	* elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
	dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
	want_tprel, want_dtpmod, want_dtprel.
	(elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
	(ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
	R_IA64_LTOFF_TPREL22.
	(elf_code_to_howto_index): Add TLS relocs.
	(elfNN_ia64_check_relocs): Support TLS relocs.
	(allocate_global_data_got): Account for TLS .got data.
	(allocate_dynrel_entries): Account for TLS dynamic relocations.
	(elfNN_ia64_install_value): Supprt TLS relocs.
	(set_got_entry): Support TLS relocs.
	(elfNN_ia64_relocate_section): Likewise.

	* config/obj-elf.c (elf_common): Renamed from obj_elf_common.
	(obj_elf_common): Call elf_common.
	(obj_elf_tls_common): New function.
	(elf_pseudo_tab): Support .tls_common.
	(special_sections): Add .tdata and .tbss.
	(obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
	sections.
	(obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
	(obj_elf_parse_section_letters): Include T in error message.
	* config/tc-ppc.c (ppc_section_letter): Likewise.
	* config/tc-alpha.c (alpha_elf_section_letter): Likewise.
	(tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
	SEC_MERGE.
	* config/tc-sparc.c (md_apply_fix3): Likewise.
	* config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
	Define them if not BFD_ASSEMBLER.
	(lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
	and @NTPOFF.
	(md_apply_fix3): Add TLS relocs.
	* config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
	FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
	FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
	(pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
	(ia64_elf_section_letter): Include T in error message.
	(md_begin): Support TLS operators.
	(md_operand): Likewise.
	(ia64_gen_real_reloc_type): Support TLS relocs.
	* testsuite/gas/i386/tlspic.s: New file.
	* testsuite/gas/i386/tlsd.s: New file.
	* testsuite/gas/i386/tlsnopic.s: New file.
	* testsuite/gas/i386/tlsd.d: New file.
	* testsuite/gas/i386/tlsnopic.d: New file.
	* testsuite/gas/i386/tlspic.d: New file.
	* testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
	* testsuite/gas/ia64/tls.s: New file.
	* testsuite/gas/ia64/tls.d: New file.
	* testsuite/gas/ia64/ia64.exp: Add tls test.
	* write.c (adjust_reloc_syms): Don't change symbols in
	SEC_THREAD_LOCAL sections to STT_SECTION + addend.

	* elf/common.h (PT_TLS, SHF_TLS, STT_TLS, DF_STATIC_TLS): Define.
	* elf/ia64.h (R_IA64_LTOFF_TPREL22): Renamed from R_IA64_LTOFF_TP22.
	* elf/i386.h: Add TLS relocs.

	* scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
	* ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
	output section if necessary.  Handle .tbss.
	(lang_size_sections): Clear _raw_size for .tbss section
	(it allocates space in PT_TLS segment only).
	* ldwrite.c (build_link_order): Build link order for .tbss too.

	* readelf.c (get_segment_type): Add PT_TLS.
	(get_elf_section_flags): Add SHF_TLS.
	(get_dynamic_flags): Optimize.  Add DF_STATIC_TLS.
	(process_dynamic_segment): Use puts instead of printf.
	(get_symbol_type): Support STT_TLS.
	* objdump.c (dump_section_header): Remove SEC_CONSTRUCTOR_TEXT,
	SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS.
	Add SEC_THREAD_LOCAL.
2002-05-23 13:12:53 +00:00
Kazu Hirata 53c7db4bbb * rdcoff.c: Fix formatting.
* rddbg.c: Likewise.
	* readelf.c: Likewise.
	* rename.c: Likewise.
	* resbin.c: Likewise.
	* resrc.c: Likewise.
	* resres.c: Likewise.
2002-05-23 04:11:57 +00:00
Kazu Hirata 0af11b59ba * filemode.c: Fix formatting.
* ieee.c: Likewise.
	* is-ranlib.c: Likewise.
	* is-strip.c: Likewise.
	* maybe-ranlib.c: Likewise.
	* maybe-strip.c: Likewise.
	* nlmconv.c: Likewise.
	* nm.c: Likewise.
	* not-ranlib.c: Likewise.
	* not-strip.c: Likewise.
	* objcopy.c: Likewise.
	* objdump.c: Likewise.
2002-05-21 19:34:58 +00:00
Thiemo Seufer 21611032e1 * objdump.c (dump_headers): Fix output formatting for ELF32
architectures in a BFD64 enabled toolchain.
	* bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
	non-ELF targets.
2002-05-21 16:21:18 +00:00
Kazu Hirata 260449986e * debug.c: Fix formatting.
* debug.h: Likewise.
	* dlltool.c: Likewise.
	* dllwrap.c: Likewise.
	* emul_aix.c: Likewise.
	* emul_vanilla.c: Likewise.
2002-05-20 18:23:05 +00:00
Kazu Hirata f462a9ea21 * addr2line.c: Fix formatting.
* ar.c: Likewise.
	* arsup.c: Likewise.
	* arsup.h: Likewise.
	* binemul.c: Likewise.
	* binemul.h: Likewise.
	* bucomm.c: Likewise.
	* coffdump.c: Likewise.
	* coffgrok.c: Likewise.
	* coffgrok.h: Likewise.
2002-05-19 16:17:54 +00:00
Marek Michalkiewicz e0159aa919 * MAINTAINERS: Add myself as the second AVR port maintainer. 2002-05-16 18:53:23 +00:00