* Makefile.am: Run "make dep-am".
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index fd99a26f0722c80aaae92bd487f2187869373ef5..4b3fefc2044add78d807ac53ccca3c438662845e 100644 (file)
@@ -1,3 +1,294 @@
+2002-06-08  Alan Modra  <amodra@bigpond.net.au>
+
+       * Makefile.am: Run "make dep-am".
+       * Makefile.in: Regenerate.
+
+       * armnetbsd.c: Replace CONST with const.
+       * corefile.c: Likewise.
+       * elf32-dlx.c: Likewise.
+       * elf64-mips.c: Likewise.
+       * mmo.c: Likewise.
+       * ns32knetbsd.c: Likewise.
+
+       * elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
+       table is elf64-sparc.
+
+2002-06-08  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * elfxx-mips.c (_bfd_mips_elf_relocate_section): Simplify code.
+       Fix RELA addends to get not shifted in the result. Don't do special
+       handling of R_MIPS_64 for NewABI.
+
+2002-06-07  Alan Modra  <amodra@bigpond.net.au>
+
+       * aoutx.h (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
+       (NAME(aout,slurp_reloc_table)): Likewise.
+       * coff-mips.c (mips_relax_section): Use bfd_zalloc.
+       * coff-rs6000.c (xcoff_write_armap_big): Use bfd_zmalloc.
+       (xcoff_write_archive_contents_big): Likewise.
+       (xcoff_generate_rtinit): Likewise.
+       (xcoff_generate_rtinit): Likewise, and check error return.
+       * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
+       * coffgen.c (coff_section_symbol): Use bfd_zalloc.
+       (coff_get_normalized_symtab): Likewise.
+       (coff_make_empty_symbol): Likewise.
+       (bfd_coff_set_symbol_class): Likewise.
+       * cofflink.c (coff_link_add_symbols): Likewise.
+       * ecoff.c (_bfd_ecoff_make_empty_symbol): Likewise.
+       * ecofflink.c (ecoff_write_shuffle): Use bfd_zmalloc.
+       (bfd_ecoff_write_accumulated_debug): Likewise.
+       * elf64-alpha.c (get_got_entry): Use bfd_zalloc.
+       * i386linux.c (bfd_i386linux_size_dynamic_sections): Likewise.
+       * i386lynx.c (NAME(lynx,slurp_reloc_table)): Use bfd_zmalloc.
+       * ieee.c (do_with_relocs): Use bfd_zalloc.
+       * m68klinux.c (bfd_m68klinux_size_dynamic_sections): Likewise.
+       * pdp11.c (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
+       (NAME(aout,slurp_reloc_table)): Likewise.
+       (NAME(aout,squirt_out_relocs)): Don't memset when zalloc'd.
+       * reloc16.c (bfd_coff_reloc16_relax_section): Use bfd_zmalloc.
+       * som.c (som_build_and_write_symbol_table): Likewise.
+       (som_slurp_string_table): Likewise.
+       (som_slurp_symbol_table): Likewise.
+       (som_bfd_ar_write_symbol_stuff): Likewise.
+       * sparclinux.c (bfd_sparclinux_size_dynamic_sections): Use bfd_zalloc.
+       * sunos.c (bfd_sunos_size_dynamic_sections): Likewise.
+       * tekhex.c (find_chunk): Likewise.  Get rid of unused "sname".
+       * vms-gsd.c (_bfd_vms_slurp_gsd): Use bfd_zmalloc.
+       * xcofflink.c (xcoff_link_add_symbols): Use bfd_zalloc/bfd_zmalloc.
+
+2002-06-07  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf-bfd.h (struct bfd_elf_section_data <group_name>): Replace with
+       "group" union.
+       (elf_group_name): Update.
+       (elf_group_id): Define.
+       (bfd_elf_set_group_contents): Declare.
+       * elf.c (elf_fake_sections): Qualify use of elf_group_name.
+       (set_group_contents): Rename to bfd_elf_set_group_contents.  Remove
+       ATTRIBUTE_UNUSED from failedptrarg.  If elf_group_id is set, use
+       that sym for the signature.
+       (_bfd_elf_compute_section_file_positions): Don't call
+       set_group_contents for "ld -r" case.
+       (swap_out_syms): Use bfd_zalloc.
+       * elflink.h (elf_link_add_archive_symbols): Likewise.
+       (NAME(bfd_elf,size_dynamic_sections)): Likewise.
+       (elf_bfd_final_link): Call bfd_elf_set_group_contents.
+
+2002-06-07  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-ppc.c (ppc64_elf_relocate_section): Allow unresolved
+       relocs in opd for non-shared too.
+
+2002-06-06  Jeffrey Law <law@redhat.com
+
+       * elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting
+       relocations.
+
+2002-06-06  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * merge.c: Include libiberty.h.
+       * elf-strtab.c: Include libiberty.h.
+
+2002-06-06  Elias Athanasopoulos  <eathan@otenet.gr>
+
+       * peXXigen.c (pe_print_idata): Remove unused variable.
+
+2002-06-06  David Heine <dlheine@tensilica.com>
+
+       * elf.c (assign_file_positions_for_segments): Remove unallocated
+       sections from the section to segment mapping for PT_LOAD segments.
+       Update comment about empty loadable segments.
+
+2002-06-06  Richard Sandiford  <rsandifo@redhat.com>
+
+       * stabs.c (_bfd_link_section_stabs): Check that the symbol offset
+       is within the .stabstr section.
+
+2002-06-06  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf-bfd.h (struct elf_size_info <swap_symbol_in>): Function args
+       are "const PTR", not "const PTR *".
+       (bfd_elf32_swap_symbol_in): Likewise.
+       (bfd_elf64_swap_symbol_in): Likewise.
+       * elfcode.h (elf_swap_symbol_in): Change input args to const PTR.
+       (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
+       * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
+       (elf_link_add_object_symbols): Likewise.
+       (elf_link_record_local_dynamic_symbol): Likewise.
+       (elf_link_input_bfd): Likewise.
+       (elf_gc_mark): Likewise.
+       (elf_reloc_symbol_deleted_p): Likewise.
+       * elf-m10200.c (mn10200_elf_relax_section): Likewise.
+       (mn10200_elf_relax_delete_bytes): Likewise.
+       (mn10200_elf_symbol_address_p): Likewise.
+       (mn10200_elf_get_relocated_section_contents): Likewise.
+       * elf-m10300.c (mn10300_elf_relax_section): Likewise.
+       (mn10300_elf_relax_section): Likewise.
+       (mn10300_elf_relax_delete_bytes): Likewise.
+       (mn10300_elf_symbol_address_p): Likewise.
+       (mn10300_elf_get_relocated_section_contents): Likewise.
+       * elf32-h8300.c (elf32_h8_relax_section): Likewise.
+       (elf32_h8_relax_delete_bytes): Likewise.
+       (elf32_h8_symbol_address_p): Likewise.
+       (elf32_h8_get_relocated_section_contents): Likewise.
+       * elf32-hppa.c (get_local_syms): Likewise.
+       * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
+       * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
+       * elf32-sh.c (sh_elf_relax_section): Likewise.
+       (sh_elf_relax_delete_bytes): Likewise.
+       (sh_elf_get_relocated_section_contents): Likewise.
+       * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
+       * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
+       * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
+       * elf64-mmix.c (mmix_elf_relax_section): Likewise.
+       * elf64-ppc.c (get_local_syms): Likewise.
+       * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
+       * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
+
+2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations.
+
+2002-06-05  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (group_signature): Swap in the whole symbol, and handle
+       extracting section symbol names.
+       (setup_group): Add comment.
+       (set_group_contents): When called from objcopy or ld, arrange for
+       section contents to be written.  Write group member output section
+       indices to allow objcopy to reorganize sections.
+       (_bfd_elf_copy_private_section_data): Copy group info.
+
+       * elf-bfd.h (struct elf_size_info): Add swap_symbol_in field.
+       (bfd_elf32_swap_symbol_in): Update prototype.
+       (bfd_elf64_swap_symbol_in): Likewise.
+       * elfcode.h (elf_swap_symbol_in): Change input args to const PTR *.
+       (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
+       * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
+       (elf_link_add_object_symbols): Likewise.
+       (elf_link_record_local_dynamic_symbol): Likewise.
+       (elf_link_input_bfd): Likewise.
+       (elf_gc_mark): Likewise.
+       (elf_reloc_symbol_deleted_p): Likewise.
+       * elf-m10200.c (mn10200_elf_relax_section): Likewise.
+       (mn10200_elf_relax_delete_bytes): Likewise.
+       (mn10200_elf_symbol_address_p): Likewise.
+       (mn10200_elf_get_relocated_section_contents): Likewise.
+       * elf-m10300.c (mn10300_elf_relax_section): Likewise.
+       (mn10300_elf_relax_section): Likewise.
+       (mn10300_elf_relax_delete_bytes): Likewise.
+       (mn10300_elf_symbol_address_p): Likewise.
+       (mn10300_elf_get_relocated_section_contents): Likewise.
+       * elf32-h8300.c (elf32_h8_relax_section): Likewise.
+       (elf32_h8_relax_delete_bytes): Likewise.
+       (elf32_h8_symbol_address_p): Likewise.
+       (elf32_h8_get_relocated_section_contents): Likewise.
+       * elf32-hppa.c (get_local_syms): Likewise.
+       * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
+       * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
+       * elf32-sh.c (sh_elf_relax_section): Likewise.
+       (sh_elf_relax_delete_bytes): Likewise.
+       (sh_elf_get_relocated_section_contents): Likewise.
+       * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
+       * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
+       * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
+       * elf64-mmix.c (mmix_elf_relax_section): Likewise.
+       * elf64-ppc.c (get_local_syms): Likewise.
+       * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
+       * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
+       * elfcode.h (NAME(_bfd_elf,size_info)): Update initialiser.
+       * elf64-alpha.c (alpha_elf_size_info): Likewise.
+       * elf64-hppa.c (hppa64_elf_size_info): Likewise.
+       * elf64-mips.c (mips_elf64_size_info): Likewise.
+       * elf64-s390.c (s390_elf64_size_info): Likewise.
+       * elf64-sparc.c (sparc64_elf_size_info): Likewise.
+
+2002-06-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
+
+       * elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
+       elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here.
+       elf64-mips.c (elf_backend_ignore_discarded_relocs): Use
+       _bfd_mips_elf_ignore_discarded_relocs.
+       elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.
+
+2002-06-05  H.J. Lu <hjl@gnu.org>
+
+       * elfxx-mips.c (mips_elf_calculate_relocation): Call
+       _bfd_elf_rel_local_sym for STT_SECTION relocations against
+       the SEC_MERGE section.
+
+2002-06-05  Alan Modra  <amodra@bigpond.net.au>
+
+       * coff-alpha.c: Update copyright date.
+       * coff-mips.c: Likewise.
+       * xcoff-target.h: Likewise.
+
+       * bfd-in.h: Remove "taken from the source" comment.
+       * libbfd-in.h: Likewise.
+       * libcoff-in.h: Likewise.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+       * libcoff.h: Regenerate.
+
+       * elf.c (bfd_elf_discard_group): Return true.
+       * elf-bfd.h (bfd_elf_discard_group): Declare.
+       * bfd-in.h (bfd_elf_discard_group): Don't declare here.
+       * section.c (bfd_discard_group): Rename to bfd_generic_discard_group.
+       * bfd.c (bfd_discard_group): Define.
+       * targets.c (struct bfd_target): Add _bfd_discard_group.
+       (BFD_JUMP_TABLE_LINK): Here too.
+       * libbfd-in.h (_bfd_nolink_bfd_discard_group): Define.
+       * aout-adobe.c (aout_32_bfd_discard_group): Define.
+       * aout-target.h (MY_bfd_discard_group): Define.
+       * aout-tic30.c (MY_bfd_discard_group): Define.
+       * binary.c (binary_bfd_discard_group): Define.
+       * bout.c (b_out_bfd_discard_group): Define.
+       * coff-alpha.c (_bfd_ecoff_bfd_discard_group): Define.
+       * coffcode.h (coff_bfd_discard_group): Define.
+       * coff-mips.c (_bfd_ecoff_bfd_discard_group): Define.
+       * elfxx-target.h (bfd_elfNN_bfd_discard_group): Define.
+       * i386msdos.c (msdos_bfd_discard_group): Define.
+       * i386os9k.c (os9k_bfd_discard_group): Define.
+       * ieee.c (ieee_bfd_discard_group): Define.
+       * ihex.c (ihex_bfd_discard_group): Define.
+       * mmo.c (mmo_bfd_discard_group): Define.
+       * nlm-target.h (nlm_bfd_discard_group): Define.
+       * oasys.c (oasys_bfd_discard_group): Define.
+       * ppcboot.c (ppcboot_bfd_discard_group): Define.
+       * som.c (som_bfd_discard_group): Define.
+       * srec.c (srec_bfd_discard_group): Define.
+       * tekhex.c (tekhex_bfd_discard_group): Define.
+       * versados.c (versados_bfd_discard_group): Define.
+       * vms.c (vms_bfd_discard_group): Define.
+       * xcoff-target.h (_bfd_xcoff_bfd_discard_group): Define.
+       * coff64-rs6000.c (rs6000coff64_vec): Update initialiser.
+       (aix5coff64_vec): Likewise.
+       * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
+
+2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
+
+       * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo.
+       (BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c.
+       (elf32-sh64-com.lo): New dependency list.
+       * Makefile.in: Regenerate.
+       * configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec)
+       (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add
+       elf32-sh64-com.lo.
+       * configure: Regenerate.
+       * elf32-sh64.c (sh64_address_in_cranges)
+       (sh64_get_contents_type, sh64_address_is_shmedia): Move to...
+       (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb):
+       (crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to...
+       * elf32-sh64-com.c: ...here.  New file.
+
+2002-06-04  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
+       ATTRIBUTE_UNUSED on used params.
+       * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks
+       before calling bfd_section_from_elf_index on local syms.
+       * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
+
 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
 
        * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo.
 
        * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue
        sections only record bfd.
-       (bfd_elf32_arm_add_glue_sections_to_bfd): New function. 
+       (bfd_elf32_arm_add_glue_sections_to_bfd): New function.
        * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it.
-       * bfd-in2.h: Regenerate.          
+       * bfd-in2.h: Regenerate.
 
 2002-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
 
This page took 0.027701 seconds and 4 git commands to generate.