+2004-09-17 H.J. Lu <hongjiu.lu@intel.com>
+
+ * Makefile.am (AUTOMAKE_OPTIONS): Require 1.9.
+ (CONFIG_STATUS_DEPENDENCIES): New.
+ (Makefile): Removed.
+ (config.status): Likewise.
+ * Makefile.in: Regenerated.
+
+2004-09-17 Paul Brook <paul@codesourcery.com>
+
+ * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add prototype.
+ (bfd_elf32_arm_process_before_allocation): Update prototype.
+ * bfd-in2.h: Regenerate.
+ * bfd/elf32-arm.h (elf32_arm_link_hash_table): Add target2_reloc.
+ (elf32_arm_link_hash_table_create): Set it.
+ (bfd_elf32_arm_process_before_allocation): Remove target1_is_rel.
+ (bfd_elf32_arm_set_target_relocs): New function.
+ (arm_real_reloc_type): New function.
+ (elf32_arm_final_link_relocate): Use it. Handle R_ARM_PREL31 and
+ R_ARM_GOT_PREL. Remove R_ARM_TARGET1.
+ (elf32_arm_gc_sweep_hook): Ditto.
+ (elf32_arm_check_relocs): Ditto.
+ (elf32_arm_relocate_section): Handle R_ARM_GOT_PREL.
+ * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_PREL31 and
+ R_ARM_GOT_TARGET2.
+ (elf32_arm_got_prel): New variable.
+ (elf32_arm_howto_from_type): New function.
+ (elf32_arm_info_to_howto): Use it.
+ (elf32_arm_reloc_map): Add BFD_RELOC_ARM_PREL31 and
+ BFD_RELOC_ARM_TARGET2.
+ * libbfd.h: Regenerate.
+ * reloc.c: Add BFD_RELOC_ARM_TARGET2 and BFD_RELOC_ARM_PREL31.
+
+2004-09-17 Alan Modra <amodra@bigpond.net.au>
+
+ * ecoff.c: Update u.undef.next refs.
+ * elf64-ppc.c: Likewise.
+ * elflink.c: Likewise.
+ * linker.c: Likewise.
+ * xcofflink.c: Likewise.
+
+ * elf-bfd.h (struct elf_link_hash_entry): Rearrange. Add FIXME to
+ dynamic_def. Combine weakdef and elf_hash_value. Move vtable
+ fields to indirect struct.
+ * elf-m10300.c: Update u.weakdef refs.
+ * elf32-arm.h: Likewise.
+ * elf32-cris.c: Likewise.
+ * elf32-frv.c: Likewise.
+ * elf32-hppa.c: Likewise.
+ * elf32-i370.c: Likewise.
+ * elf32-i386.c: Likewise.
+ * elf32-m32r.c: Likewise.
+ * elf32-m68k.c: Likewise.
+ * elf32-ppc.c: Likewise.
+ * elf32-s390.c: Likewise.
+ * elf32-sh.c: Likewise.
+ * elf32-sparc.c: Likewise.
+ * elf32-vax.c: Likewise.
+ * elf32-xtensa.c: Likewise.
+ * elf64-alpha.c: Likewise.
+ * elf64-hppa.c: Likewise.
+ * elf64-ppc.c: Likewise.
+ * elf64-s390.c: Likewise.
+ * elf64-sh64.c: Likewise.
+ * elf64-sparc.c: Likewise.
+ * elf64-x86-64.c: Likewise.
+ * elfxx-ia64.c: Likewise.
+ * elfxx-mips.c: Likewise.
+ * elflink.c: Likewise. Also u.elf_hash_value.
+ (elf_gc_propagate_vtable_entries_used): Update for h->vtable
+ indirection.
+ (elf_gc_smash_unused_vtentry_relocs): Likewise.
+ (bfd_elf_gc_record_vtinherit): Alloc vtable.
+ (bfd_elf_gc_record_vtentry): Likewise.
+ * elf.c (_bfd_elf_link_hash_newfunc): Use memset.
+
+2004-09-17 Alan Modra <amodra@bigpond.net.au>
+
+ * Makefile.am: Run "make dep-am".
+ * Makefile.in: Regenerate.
+ * bfd-in2.h: Regenerate.
+ * po/SRC-POTFILES.in: Regenerate.
+ * po/bfd.pot: Regenerate.
+
+2004-09-16 Alan Modra <amodra@bigpond.net.au>
+
+ * elf-bfd.h (struct elf_link_hash_entry): Replace elf_link_hash_flags
+ with bitfields. Make "type" and "other" bitfields too.
+ (ELF_LINK_HASH_REF_REGULAR, ELF_LINK_HASH_DEF_REGULAR,
+ ELF_LINK_HASH_REF_DYNAMIC, ELF_LINK_HASH_DEF_DYNAMIC,
+ ELF_LINK_HASH_REF_REGULAR_NONWEAK, ELF_LINK_HASH_DYNAMIC_ADJUSTED,
+ ELF_LINK_HASH_NEEDS_COPY, ELF_LINK_HASH_NEEDS_PLT, ELF_LINK_NON_ELF,
+ ELF_LINK_HIDDEN, ELF_LINK_FORCED_LOCAL, ELF_LINK_HASH_MARK,
+ ELF_LINK_NON_GOT_REF, ELF_LINK_DYNAMIC_DEF, ELF_LINK_DYNAMIC_WEAK,
+ ELF_LINK_POINTER_EQUALITY_NEEDED): Delete.
+ (ELF_COMMON_DEF_P, WILL_CALL_FINISH_DYNAMIC_SYMBOL): Update.
+ * elf-hppa.h: Update all uses of elf_link_hash_flags.
+ * elf-m10300.c: Likewise.
+ * elf.c: Likewise.
+ * elf32-arm.h: Likewise.
+ * elf32-cris.c: Likewise.
+ * elf32-frv.c: Likewise.
+ * elf32-hppa.c: Likewise.
+ * elf32-i370.c: Likewise.
+ * elf32-i386.c: Likewise.
+ * elf32-m32r.c: Likewise.
+ * elf32-m68k.c: Likewise.
+ * elf32-ppc.c: Likewise.
+ * elf32-s390.c: Likewise.
+ * elf32-sh-symbian.c: Likewise.
+ * elf32-sh.c: Likewise.
+ * elf32-sh64.c: Likewise.
+ * elf32-sparc.c: Likewise.
+ * elf32-vax.c: Likewise.
+ * elf32-xtensa.c: Likewise.
+ * elf64-alpha.c: Likewise.
+ * elf64-hppa.c: Likewise.
+ * elf64-ppc.c: Likewise.
+ * elf64-s390.c: Likewise.
+ * elf64-sh64.c: Likewise.
+ * elf64-sparc.c: Likewise.
+ * elf64-x86-64.c: Likewise.
+ * elflink.c: Likewise.
+ * elfxx-ia64.c: Likewise.
+ * elfxx-mips.c: Likewise.
+ * configure.in (AM_INIT_AUTOMAKE): Set version to 2.15.92.
+ * configure: Regenerate.
+ * aclocal.m4: Regenerate.
+
+2004-09-16 Alan Modra <amodra@bigpond.net.au>
+
+ * elf32-arm.h (elf32_arm_gc_sweep_hook): Add #ifndef OLD_ARM_ABI
+ around uses of R_ARM_TARGET1.
+ (elf32_arm_check_relocs): Likewise.
+
+2004-09-13 Paul Brook <paul@codesourcery.com>
+
+ * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
+ prototype.
+ * bfd-in2.h: Regenerate.
+ * libbfd.h: Regenerate.
+ * elf32-arm.h (elf32_arm_link_hash_table): Add target1_is_rel.
+ (elf32_arm_link_hash_table_create): Set target1_is_rel.
+ (bfd_elf32_arm_process_before_allocation): Ditto.
+ (elf32_arm_final_link_relocate): Handle R_ARM_TARGET1.
+ (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto.
+ * elfarm-nabi.c (elf32_arm_howto_table): Rename RELABS to TARGET1.
+ * reloc.c: Ditto.
+
+2004-09-10 Joel Brobecker <brobecker@gnat.com>
+
+ * hpux-core.c (thread_section_p): New function.
+ (hpux_core_core_file_p): Fix computation of offset in call
+ to bfd_seek. Create a ".reg" section from an arbitrary
+ ".reg/<id>" section if none was created after having read
+ all sections.
+
+2004-09-11 Andreas Schwab <schwab@suse.de>
+
+ * acinclude.m4: Fix spelling of ACX_NONCANONICAL_*.
+ * aclocal.m4: Rebuild.
+ * configure: Rebuild.
+
+2004-09-10 Joel Brobecker <brobecker@gnat.com>
+
+ * section.c (bfd_sections_find_if): Fix parameter name in
+ comment to match code.
+
+2004-09-10 Alan Modra <amodra@bigpond.net.au>
+
+ * elf.c (assign_file_positions_except_relocs): Assign relocs
+ stored in a bfd section.
+
+2004-09-08 Hans-Peter Nilsson <hp@axis.com>
+
+ * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Reset
+ h->gotplt_refcount to 0, not -1.
+
+2004-09-07 Hans-Peter Nilsson <hp@axis.com>
+
+ * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
+ case R_CRIS_32_GOTPLT>: For internal error message, handle NULL
+ symname.
+ (cris_elf_check_relocs) <case R_CRIS_32_PLT_PCREL>: Don't try to
+ handle symbol visibility here.
+
+2004-09-07 Alan Modra <amodra@bigpond.net.au>
+
+ * elf64-ppc.c (struct ppc_link_hash_table): Add stub_globals.
+ (is_ppc64_elf_target): Rename from is_ppc64_target. Update all
+ callers.
+ (ppc_stub_name): Remove trailing "+0" on stub name.
+ (create_linkage_sections): Create relocations for
+ branch lookup table when --emit-relocs as well as when --shared.
+ (ppc_build_one_stub): Emit relocs for long branch stubs. Adjust
+ relbrlt test. For --emit-stub-syms, always output a sym even when
+ one already exists on a plt call stub. Put stub type in the stub
+ symbol name.
+ (ppc_size_one_stub): Size long branch stub relocs. Adjust relbrlt
+ test.
+ (ppc64_elf_size_stubs): Count global sym stubs added. Zero
+ reloc_count in stub sections. Adjust relbrlt test.
+ (ppc64_elf_build_stubs): Adjust relbrlt test. Tweak stats output.
+ * elflink.c (bfd_elf_size_dynamic_sections): Fix comment typo.
+ (elf_link_input_bfd): Ignore symbol index zero relocs when checking
+ for relocs against discarded symbols. Fix comments.
+
+2004-09-06 Mark Mitchell <mark@codesourcery.com>
+
+ * elf-bfd.h (_bfd_elf_make_dynamic_segment): Declare it.
+ * elf.c (_bfd_elf_make_dynamic_segment): New function, split out
+ from ...
+ (map_sections_to_segments): ... here. Use it. Assign a file
+ position to the .dynamic section if it is not loadable, but part
+ of the PT_DYNAMIC segment.
+ * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
+ offsets, not VMAs, for the BPABI. Do not fill in the header in
+ the .got.plt section for the BPABI.
+ * elfarm-nabi.c (elf32_arm_symbian_modify_segment_map): Add a
+ PT_DYNAMIC segment.
+ (elf_backend_want_got_plt): Define to zero for Symbian OS.
+
+2004-09-06 Nick Clifton <nickc@redhat.com>
+
+ * elflink.c (elf_link_add_object_symbols): Set the error code to
+ bfd_error_wrong_format when the input format does not match the
+ output format.
+
+2004-09-06 Alan Modra <amodra@bigpond.net.au>
+
+ * elf64-ppc.c (is_ppc64_target): New function, extracted from..
+ (ppc64_elf_check_directives): ..here.
+ (ppc64_elf_size_dynamic_sections): Use it here to check bfd type
+ before accessing ppc64_elf_tdata.
+ (ppc64_elf_finish_dynamic_sections): And here too.
+
+2004-09-04 Alan Modra <amodra@bigpond.net.au>
+
+ * bfd.c (_bfd_default_error_handler): Correct loop exit.
+
+2004-09-03 Mark Mitchell <mark@codesourcery.com>
+
+ * config.bfd (arm*-*-symbianelf*): Use OS-specific target vectors.
+ * configure.in (bfd_elf32_bigarm_symbian_vec): Add it.
+ (bfd_elf32_littlearm_symbian_vec): Likewise.
+ * configure: Regenerated.
+ * elf-bfd.h (elf_backend_data): Add dynamic_sec_flags.
+ * elf32-arm.h (PLT_HEADER_SIZE): Do not define.
+ (PLT_ENTRY_SIZE): Likewise.
+ (bfd_vma_elf32_arm_symbian_plt_entry): New
+ variable.
+ (elf32_arm_link_hash_table): Add plt_header_size, plt_entry_size,
+ and symbian_p.
+ (create_got_section): Don't create sections when generating BPABI
+ objects.
+ (elf32_arm_create_dynamic_sections): Tidy.
+ (elf32_arm_link_hash_table_create): Set plt_header_size,
+ plt_entry_size, and symbian_p.
+ (elf32_arm_check_relocs): Do not mark .rel.dyn as loadable when
+ generating BPABI objects.
+ (allocate_dynrelocs): Use htab->plt_header_size, not
+ PLT_HEADER_SIZE. Do not add to .got.plt when
+ generating BPABI objects.
+ (elf32_arm_finish_dynamic_symbol): Generate Symbian OS PLTs.
+ * elfarm-nabi.c: Add SymbianOS target vectors.
+ * elflink.c (_bfd_elf_create_got_section): Use dynamic_sec_flags.
+ (_bfd_elf_link_create_dynamic_sections): Likewise.
+ * elfxx-target.h (ELF_DYNAMIC_SEC_FLAGS): New macro.
+ (elfNN_bed): Use it.
+ * targets.c (bfd_elf32_bigarm_symbian_vec): New variable.
+ (bfd_elf32_littlearm_symbian_vec): Likewise.
+ (_bfd_target_vector): Add them.
+
+2004-09-03 Nick Clifton <nickc@redhat.com>
+
+ PR 360
+ * coffcode.h (handle_COMDAT): Replace abort with an warning
+ message and allow the scan to continue.
+
+2004-09-02 Alan Modra <amodra@bigpond.net.au>
+
+ * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Use static_syms passed
+ in when reading relocs, not our sorted syms. Remove unnecessary
+ var.
+
+2004-08-31 Eric Botcazou <ebotcazou@libertysurf.fr>
+
+ * elf.c (special_sections): Add .gnu.linkonce.b modelled on .bss.
+
+2004-08-30 Nathanael Nerode <neroden@gcc.gnu.org>
+
+ * acinclude.m4: Require AC_CANONICAL_TARGET, not AC_CANONICAL_SYSTEM.
+ Include ../config/acx.m4 and use ACX_NONCANONICAL_* where appropriate;
+ replace uses of *_alias with *_noncanonical.
+ * aclocal.m4: Rebuild with aclocal 1.4p6.
+ * Makefile.in: Rebuild with automake 1.4p6.
+ * doc/Makefile.in: Rebuild with automake 1.4p6.
+ * configure.in: Autoupdate with autoupdate 2.59.
+ * config.in: Regenerate with autoheader 2.59.
+ * configure: Regnerate with autoconf 2.59.
+
+2004-08-28 Alan Modra <amodra@bigpond.net.au>
+
+ * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Copy input
+ symbol pointer arrays before modifying.
+
+2004-08-28 Alan Modra <amodra@bigpond.net.au>
+
+ * bfd.c (bfd_get_synthetic_symtab): Pass counts and both symbol tables.
+ * elf-bfd.h (_bfd_elf_get_synthetic_symtab): Adjust.
+ * elf.c (_bfd_elf_get_synthetic_symtab): Adjust.
+ * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Adjust.
+ * targets.c (struct bfd_target <_bfd_get_synthetic_symtab>): Adjust.
+ * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't read symbols.
+ Use both symbol tables on non-relocatable objects. Use a common
+ error exit. Fix "mid" warning.
+ * libbfd.h: Regenerate.
+ * bfd-in2.h: Regenerate.
+
+2004-08-28 Alan Modra <amodra@bigpond.net.au>
+
+ * elf64-ppc.c (ppc64_elf_branch_reloc): Check .opd is in a regular
+ object file.
+ (struct sfpr_def_parms): Save some space.
+ (sfpr_define): Here too.
+
+ * elf64-ppc.c (compare_symbols): Put section syms first.
+ (sym_exists_at): New function.
+ (ppc64_elf_get_synthetic_symtab): Use relocs to find code entry
+ points only for relocatable files. Use .opd section contents
+ otherwise. Generally clean up the code.
+
+2004-08-27 Alan Modra <amodra@bigpond.net.au>
+
+ * elf64-ppc.c (STD_R0_0R1, STD_R0_0R12, LD_R0_0R1, LD_R0_0R12,
+ LI_R12_0, STVX_VR0_R12_R0, LVX_VR0_R12_R0, MTLR_R0, SFPR_MAX): Define.
+ (struct sfpr_def_parms): New.
+ (sfpr_define): New function.
+ (savegpr0, savegpr0_tail, restgpr0, restgpr0_tail): New functions.
+ (savegpr1, savegpr1_tail, restgpr1, restgpr1_tail): New functions.
+ (savefpr, savefpr0_tail, restfpr, restfpr0_tail): New functions.
+ (savefpr1_tail, restfpr1_tail): New functions.
+ (savevr, savevr_tail, restvr, restvr_tail): New functions.
+ (MIN_SAVE_FPR, MAX_SAVE_FPR): Don't define.
+ (ppc64_elf_func_desc_adjust): Use sfpr_define in place of existing
+ code. Define all ABI mandated _save and _rest functions.
+
+2004-08-26 Paul Brook <paul@codesourcery.com>
+
+ * elf32-arm.h (INTERWORK_FLAG): Return true for EABIv3 objects.
+
+2004-08-26 Alan Modra <amodra@bigpond.net.au>
+
+ * elf32-m32r.c (m32r_elf_relocate_section): Don't compare with
+ TRUE or FALSE.
+
+2004-08-26 Alan Modra <amodra@bigpond.net.au>
+
+ * elf32-i386.c (elf_i386_relocate_section): Tweak last change so
+ that pcrel correction is applied for R_386_PC32.
+
+2004-08-25 Alan Modra <amodra@bigpond.net.au>
+
+ * elf32-i386.c (elf_i386_relocate_section): Zero section contents
+ for R_386_32 and R_386_PC32 relocs against symbols defined in
+ discarded sections.
+
+2004-08-25 Dmitry Diky <diwil@spec.ru>
+
+ * reloc.c (BFD_RELOC_MSP430_2X_PCREL,BFD_RELOC_MSP430_RL_PCREL):
+ Add new relocations.
+ * bfd-in2.h: Regenerate.
+ * libbfd.h: Regenerate.
+ * elf32-msp430.c: Clean-up code.
+ (elf_msp430_howto_table): Add new relocation entries.
+ (bfd_elf32_bfd_reloc_type_lookup): New relocation handlers.
+ (msp430_elf_relax_section): New function.
+ (msp430_elf_relax_delete_bytes): New function.
+ (msp430_elf_symbol_address_p): New function.
+
+2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
+
+ * elf32-m32r.c (m32r_elf_relocate_section): Handle
+ R_M32R_SDA16_RELA in the same way as R_M32R_SDA16.
+
+2004-08-20 Daniel Jacobowitz <dan@debian.org>
+
+ * elflink.c (_bfd_elf_section_already_linked): Handle
+ SEC_LINK_DUPLICATES_SAME_CONTENTS.
+
+2004-08-19 Mark Mitchell <mark@codesourcery.com>
+
+ * config.bfd (arm*-*-symbianelf*): New target.
+ (arm*-*-eabi*): Likewise.
+
+2004-08-19 Alan Modra <amodra@bigpond.net.au>
+
+ * elf64-ppc.c (ppc_get_stub_entry): Change third param to a
+ "struct ppc_link_hash_entry *".
+ (ppc64_elf_relocate_section): Ditto for type of h. Introduce h_elf
+ to satisfy RELOC_FOR_GLOBAL_SYMBOL.
+
+2004-08-19 Jakub Jelinek <jakub@redhat.com>
+
+ * elf64-ppc.c (ppc64_elf_edit_opd): Support 16 byte long .opd
+ entries (where fd_aux overlaps next entry's fd_func).
+ Add non_overlapping argument, use it.
+ (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, adjust_opd_syms,
+ ppc64_elf_size_stubs, ppc64_elf_relocate_section,
+ ppc64_elf_output_symbol_hook): Use address / 8 instead of address / 24
+ as indexes into opd_sym_map/opd_adjust array.
+ * elf64-ppc.h (ppc64_elf_edit_opd): Adjust prototype.
+
+2004-08-18 Alan Modra <amodra@bigpond.net.au>
+
+ * elf64-ppc.c (func_desc_adjust): Give undefined dot-symbols a value
+ if we can look up their function descriptor in a regular file.
+
+2004-08-18 Nick Clifton <nickc@redhat.com>
+
+ PR 324
+ * cofflink.c (coff_link_add_symbols): Check that the comdat
+ pointer in the coff_section_data structure has been initialised
+ before using it.
+
+2004-08-18 Alan Modra <amodra@bigpond.net.au>
+
+ PR 338
+ * elflink.c (bfd_elf_record_link_assignment): Add comment about
+ changing bfd_link_hash_undefined to bfd_link_hash_new.
+
+2004-08-17 Jakub Jelinek <jakub@redhat.com>
+
+ * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Only define
+ if not yet defined.
+ * elf64-ppc.c (bfd_elf64_get_synthetic_symtab): Define.
+ (synthetic_opd, synthetic_relocatable): New variables.
+ (compare_symbols, compare_relocs): New helper routines.
+ (ppc64_elf_get_synthetic_symtab): New function.
+ * bfd.c (bfd_get_synthetic_symtab): Rename dynsyms argument
+ to relsyms.
+ * bfd-in2.h: Regenerated.
+ * elf.c (_bfd_elf_get_synthetic_symtab): Rename dynsyms argument
+ to relsyms. Return 0 if abfd is relocatable.
+
+2004-08-17 Alan Modra <amodra@bigpond.net.au>
+
+ * elflink.h (elf_gc_sweep): Keep non-alloc, non-load sections.
+
+2004-08-17 Nick Clifton <nickc@redhat.com>
+
+ * (is_arm_mapping_symbol_name): New function - return true
+ when a symbol name matches the requirements for an ARM mapping
+ symbol name.
+ (arm_elf_find_function): New function based on
+ elf_find_function in elf.c but skipping ARM mapping symbols
+ and including thumb function symbols.
+ (elf32_arm_find_nearest_line): Use arm_elf_find_function.
+ (elf32_arm_output_symbol_hook): Use is_arm_mapping_symbol_name.
+
+2004-08-17 Alan Modra <amodra@bigpond.net.au>
+
+ * elf64-ppc.c (ppc64_elf_branch_reloc): New function.
+ (ppc64_elf_howto_raw): Use ppc64_elf_branch_reloc.
+ (ppc64_elf_brtaken_reloc): Here too.
+
+2004-08-17 Alan Modra <amodra@bigpond.net.au>
+
+ * elf64-ppc.c (add_symbol_adjust): Correct mismatched function
+ symbol visibility.
+ (ppc64_elf_check_directives): Check that we have the right hash
+ table before proceeding.
+
+2004-08-17 Alan Modra <amodra@bigpond.net.au>
+
+ * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add "deleted_section".
+ (adjust_opd_syms): Attach opd syms for deleted entries to one of
+ the sections that will be discarded.
+
+2004-08-16 Alan Modra <amodra@bigpond.net.au>
+
+ * elflink.c (elf_section_complain_discarded): Ignore .fixup.
+
+2004-08-16 Alan Modra <amodra@bigpond.net.au>
+
+ * bfd.c (_bfd_default_error_handler): Account for doubled '%' in
+ free space available.
+
+2004-08-16 Alan Modra <amodra@bigpond.net.au>
+
+ * pdp11.c (struct pdp11_aout_reloc_external): Delete. Replace
+ occurrences with bfd_byte * thoughout file.
+
+ * coff-rs6000.c (do_shared_object_padding): Warning fix.
+ (xcoff_write_armap_big): Likewise.
+ (xcoff_write_archive_contents_old): Likewise.
+ (xcoff_write_archive_contents_big): Likewise.
+
+ * elf64-mmix.c (mmix_elf_get_section_contents): Delete declaration.
+
+2004-08-13 Nick Clifton <nickc@redhat.com>
+
+ * elf32-arm.h: Convert to ISO C90.
+
+2004-08-13 Alan Modra <amodra@bigpond.net.au>
+
+ PR 293
+ * elf32-hppa.c (elf32_hppa_hide_symbol): Use init_refcount to
+ zero the plt field.
+
+2004-08-13 Alan Modra <amodra@bigpond.net.au>
+
+ * bfd.c (_bfd_default_error_handler): Handle %A and %B.
+ (bfd_archive_filename, bfd_get_section_ident): Delete.
+ * ecofflink.c (bfd_ecoff_debug_accumulate_other): Don't call
+ bfd_archive_filename.
+ * elflink.c (elf_link_input_bfd): Don't use callbacks->error_handler
+ to warn about symbols in discarded sections. Use _bfd_error_handler.
+ * aout-adobe.c (aout_adobe_callback): See below.
+ * aout-cris.c (swap_ext_reloc_in): ..
+ * coff-arm.c (find_thumb_glue, find_arm_glue,
+ coff_arm_relocate_section, bfd_arm_process_before_allocation,
+ coff_arm_merge_private_bfd_data, _bfd_coff_arm_set_private_flags,
+ coff_arm_copy_private_bfd_data): ..
+ * coff-i860.c (i860_reloc_processing): ..
+ * coff-mcore.c (mcore_coff_unsupported_reloc,
+ coff_mcore_relocate_section): ..
+ * coff-ppc.c (coff_ppc_relocate_section): ..
+ * coff-rs6000.c (xcoff_create_csect_from_smclas
+ * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
+ sh_swap_insns, sh_relocate_section): ..
+ * coff-tic54x.c (tic54x_reloc_processing): ..
+ * coff-tic80.c (coff_tic80_relocate_section): ..
+ * coff64-rs6000.c (xcoff64_create_csect_from_smclas): ..
+ * coffcode.h (styp_to_sec_flags, coff_slurp_line_table,
+ coff_slurp_symbol_table, coff_classify_symbol,
+ coff_slurp_reloc_table): ..
+ * coffgen.c (_bfd_coff_read_string_table): ..
+ * cofflink.c (coff_link_add_symbols, _bfd_coff_link_input_bfd,
+ _bfd_coff_generic_relocate_section): ..
+ * cpu-arm.c (bfd_arm_merge_machines): ..
+ * cpu-sh.c (sh_merge_bfd_arch): ..
+ * elf-hppa.h (elf_hppa_relocate_section): ..
+ * elf.c (bfd_elf_string_from_elf_section, setup_group,
+ _bfd_elf_setup_group_pointers, bfd_section_from_shdr,
+ assign_section_numbers, _bfd_elf_symbol_from_bfd_symbol,
+ copy_private_bfd_data, _bfd_elf_validate_reloc): ..
+ * elf32-arm.h (find_thumb_glue, find_arm_glue,
+ bfd_elf32_arm_process_before_allocation, elf32_thumb_to_arm_stub,
+ elf32_arm_to_thumb_stub, elf32_arm_final_link_relocate,
+ elf32_arm_relocate_section, elf32_arm_set_private_flags,
+ elf32_arm_copy_private_bfd_data, elf32_arm_merge_private_bfd_data): ..
+ * elf32-cris.c (cris_elf_relocate_section, cris_elf_check_relocs,
+ cris_elf_merge_private_bfd_data
+ * elf32-frv.c (elf32_frv_relocate_section, elf32_frv_check_relocs): ..
+ * elf32-gen.c (elf32_generic_link_add_symbols): ..
+ * elf32-hppa.c (hppa_add_stub, hppa_build_one_stub,
+ elf32_hppa_check_relocs, get_local_syms, final_link_relocate,
+ elf32_hppa_relocate_section): ..
+ * elf32-i370.c (i370_elf_merge_private_bfd_data,
+ i370_elf_check_relocs, i370_elf_relocate_section): ..
+ * elf32-i386.c (elf_i386_info_to_howto_rel, elf_i386_check_relocs,
+ elf_i386_relocate_section): ..
+ * elf32-m32r.c (m32r_elf_relocate_section,
+ m32r_elf_merge_private_bfd_data): ..
+ * elf32-m68hc1x.c (m68hc12_add_stub,
+ _bfd_m68hc11_elf_merge_private_bfd_data): ..
+ * elf32-m68k.c (elf_m68k_relocate_section): ..
+ * elf32-mcore.c (mcore_elf_unsupported_reloc,
+ mcore_elf_relocate_section): ..
+ * elf32-ppc.c (ppc_elf_merge_private_bfd_data, bad_shared_reloc,
+ ppc_elf_check_relocs, ppc_elf_relocate_section,
+ ppc_elf_begin_write_processing): ..
+ * elf32-s390.c (elf_s390_check_relocs, invalid_tls_insn,
+ elf_s390_relocate_section): ..
+ * elf32-sh-symbian.c (sh_symbian_import_as,
+ sh_symbian_process_embedded_commands,
+ sh_symbian_relocate_section): ..
+ * elf32-sh.c (sh_elf_relax_section, sh_elf_relax_delete_bytes,
+ sh_elf_swap_insns, sh_elf_relocate_section, sh_elf_check_relocs,
+ sh_elf_merge_private_data): ..
+ * elf32-sparc.c (elf32_sparc_check_relocs,
+ elf32_sparc_relocate_section,
+ elf32_sparc_merge_private_bfd_data): ..
+ * elf32-v850.c (v850_elf_check_relocs,
+ v850_elf_merge_private_bfd_data): ..
+ * elf32-xtensa.c (elf_xtensa_check_relocs,
+ elf_xtensa_relocate_section, elf_xtensa_merge_private_bfd_data): ..
+ * elf64-alpha.c (elf64_alpha_relax_with_lituse,
+ elf64_alpha_relax_got_load, elf64_alpha_size_got_sections,
+ elf64_alpha_relocate_section_r, elf64_alpha_relocate_section): ..
+ * elf64-gen.c (elf64_generic_link_add_symbols): ..
+ * elf64-ppc.c (ppc64_elf_merge_private_bfd_data, ppc_add_stub,
+ ppc64_elf_check_relocs, ppc64_elf_edit_opd,
+ ppc64_elf_relocate_section): ..
+ * elf64-s390.c (elf_s390_check_relocs, invalid_tls_insn,
+ elf_s390_relocate_section): ..
+ * elf64-sh64.c (sh_elf64_relocate_section): ..
+ * elf64-sparc.c (sparc64_elf_check_relocs,
+ sparc64_elf_add_symbol_hook, sparc64_elf_relocate_section,
+ sparc64_elf_merge_private_bfd_data): ..
+ * elf64-x86-64.c (elf64_x86_64_check_relocs,
+ elf64_x86_64_relocate_section): ..
+ * elflink.c (_bfd_elf_add_default_symbol,
+ _bfd_elf_link_assign_sym_version, elf_link_read_relocs_from_section,
+ _bfd_elf_link_output_relocs, elf_link_add_object_symbols,
+ bfd_elf_size_dynamic_sections, elf_link_output_extsym,
+ elf_get_linked_section_vma, elf_fixup_link_order,
+ bfd_elf_final_link, bfd_elf_gc_record_vtinherit,
+ bfd_elf_gc_record_vtinherit, _bfd_elf_section_already_linked): ..
+ * elfxx-ia64.c (elfNN_ia64_relax_section,
+ elfNN_ia64_relocate_section, elfNN_ia64_merge_private_bfd_data): ..
+ * elfxx-mips.c (mips_elf_perform_relocation,
+ _bfd_mips_elf_check_relocs,
+ _bfd_mips_elf_merge_private_bfd_data): ..
+ * ieee.c (ieee_slurp_external_symbols): ..
+ * ihex.c (ihex_bad_byte, ihex_scan, ihex_read_section): ..
+ * libbfd.c (_bfd_generic_verify_endian_match): ..
+ * linker.c (_bfd_generic_link_add_one_symbol,
+ _bfd_generic_section_already_linked): ..
+ * pdp11.c (translate_to_native_sym_flags): ..
+ * pe-mips.c (coff_pe_mips_relocate_section): ..
+ * peicode.h (pe_ILF_build_a_bfd): ..
+ * srec.c (srec_bad_byte): ..
+ * stabs.c (_bfd_link_section_stabs): ..
+ * xcofflink.c (xcoff_link_add_symbols, xcoff_link_input_bfd): ..
+ Replace all uses of bfd_archive_filename and bfd_get_section_ident
+ with corresponding %B and %A in _bfd_error_handler format string.
+ Replace occurrences of "fprintf (stderr," with _bfd_error_handler
+ calls to use %A and %B. Fix "against symbol .. from section" and
+ similar error messages. Combine multiple _bfd_error_handler calls
+ where they were separated due to bfd_archive_filename deficiencies.
+ * bfd-in2.h: Regenerate.
+
+2004-08-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf32-i386.c (elf_i386_relocate_section): Report unrecognized
+ relocation.
+
+2004-08-10 Alan Modra <amodra@bigpond.net.au>
+
+ * elf64-ppc.c (struct ppc_link_hash_entry): Add was_undefined.
+ (struct ppc_link_hash_table): Remove no_multi_toc, multi_toc_needed.
+ Make emit_stub_syms, stub_error and has_14bit_branch bit-fields.
+ Add twiddled_syms.
+ (link_hash_newfunc): Init was_undefined.
+ (add_symbol_adjust): Don't set undefined dot symbols to defweak;
+ Use undefweak instead.
+ (ppc64_elf_check_directives): Fix undefs chain.
+ (ppc64_elf_next_toc_section): Remove no_multi_toc and multi_toc_needed
+ references.
+ (ppc64_elf_size_stubs): Adjust for add_symbol_adjust change.
+ (undo_symbol_twiddle, ppc64_elf_restore_symbols): New functions.
+ * elf64-ppc.h (ppc64_elf_restore_symbols): Declare.
+
+2004-08-09 Jakub Jelinek <jakub@redhat.com>
+
+ * elf64-x86-64.c (elf64_x86_64_relocate_section): For -fno-pic
+ error, test input_section flags rather than sec.
+
+2004-08-09 Alan Modra <amodra@bigpond.net.au>
+
+ * elf-bfd.h (struct elf_backend_data): Add
+ elf_backend_archive_symbol_lookup.
+ (_bfd_elf_archive_symbol_lookup): Declare.
+ * elflink.c (_bfd_elf_archive_symbol_lookup): New function..
+ (elf_link_add_archive_symbols): ..extracted from here. Call the
+ backend version.
+ * elfxx-target.h (elf_backend_archive_symbol_lookup): Provide default.
+ (elfNN_bed): Init new field.
+ * elf64-ppc.c (elf_backend_check_directives): Define.
+ (elf_backend_archive_symbol_lookup): Define.
+ (struct ppc_link_hash_table): Add tls_get_add_fd. Make tls_get_add
+ a ppc_link_hash_entry pointer.
+ (get_fdh): Move.
+ (ppc64_elf_archive_symbol_lookup, opd_entry_value): New functions.
+ (add_symbol_adjust, ppc64_elf_check_directives): New functions.
+ (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, func_desc_adjust,
+ ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup,
+ ppc64_elf_tls_optimize, allocate_dynrelocs, ppc_type_of_stub,
+ ppc_build_one_stub, ppc64_elf_size_stubs, ppc64_elf_relocate_section,
+ ppc64_elf_finish_dynamic_symbol): Handle branch relocs to function
+ descriptor symbols.
+
+2004-08-09 Alan Modra <amodra@bigpond.net.au>
+
+ * elf64-ppc.c (struct ppc_link_hash_entry): Expand adjust_done comment.
+ (ppc64_elf_add_symbol_hook): Test for NULL section.
+ (get_sym_h): Formatting.
+ (ppc64_elf_size_stubs): Include reloc addend in value stored as
+ stub target_value.
+
+ * elf64-ppc.c (ppc64_elf_relocate_section): Combine handling of
+ long branch stubs with code handling plt and r2off branch stubs.
+
+2004-08-09 Alan Modra <amodra@bigpond.net.au>
+
+ * elf-bfd.h (_bfd_elf_gc_mark): Declare.
+ * elflink.c (elf_link_input_bfd): Formatting.
+ (_bfd_elf_gc_mark): Rename from elf_gc_mark and make global. Adjust
+ all callers.
+ * elf64-ppc.c (struct ppc_link_hash_entry): Remove is_entry.
+ (link_hash_newfunc): Don't set it.
+ (ppc64_elf_copy_indirect_symbol): Nor copy it.
+ (ppc64_elf_mark_entry_syms): Delete.
+ (ppc64_elf_gc_mark_hook): Mark entry syms here. Also mark opd
+ sections. Use get_opd_info.
+ * elf64-ppc.h (ppc64_elf_mark_entry_syms): Delete.
+
+2004-08-09 Alan Modra <amodra@bigpond.net.au>
+
+ * elf64-ppc.c (adjust_opd_syms): Fix merge error.
+
+ * elf64-ppc.c (struct ppc_link_hash_table): Remove have_undefweak.
+ (func_desc_adjust): Don't set have_undefweak.
+ (ppc64_elf_func_desc_adjust): Don't add an extr nop to sfpr.
+ (ppc64_elf_relocate_section): NOP out calls to undefweak functions.
+
+ * elf64-ppc.c (struct ppc_link_hash_entry): Make "oh" a
+ "struct ppc_link_hash_entry *". Adjust all references.
+ (ppc64_elf_hide_symbol): Correct a comment.
+
+ * elf64-ppc.c (get_opd_info): New function.
+ (adjust_opd_syms): Use get_opd_info. Define removed symbols as zero.
+ (ppc64_elf_edit_opd): Use get_opd_info. Check that sym has a dot
+ before calling get_fdh. Test fdh rather than h before dereferencing
+ fdh. Mark removed symbols in opd_adjust.
+ (ppc64_elf_tls_optimize): Don't bother with opd adjustment here.
+ (ppc64_elf_relocate_section): Use get_opd_info, and handle removed
+ opd symbols.
+ (ppc64_elf_output_symbol_hook): Likewise.
+
+2004-08-06 Paul Brook <paul@codesourcery.com>
+
+ * elfarm-nabi.c (elf32_arm_howto_table): Add new EABI relocations.
+ (elf32_arm_reloc_map): Add BFD_RELOC_ARM_RELABS32,
+ BFD_RELOC_ARM_ROSEGREL32 and BFD_RELOC_ARM_SBREL32.
+ * reloc.c: Add BFD_RELOC_ARM_RELABS32, BFD_RELOC_ARM_ROSEGREL32
+ and BFD_RELOC_ARM_SBREL32.
+ * bfd-in2.h, bbfd.h: Regenerate.
+
+2004-08-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * elfxx-mips.c (mips_elf_calculate_relocation): Test only for
+ the dynamic link symbol actually in use.
+
+2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
+
+ * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Handle bfd_link_hash_new
+
+2004-07-31 Joel Brobecker <brobecker@gnat.com>
+ Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Handle
+ SHN_MIPS_TEXT and SHN_MIPS_DATA.
+
+2004-07-30 H.J. Lu <hongjiu.lu@intel.com>
+ Nick Clifton <nickc@redhat.com>
+
+ PR 290
+ * bfd.c (_bfd_default_error_handler): Make it global.
+
+ * elf-bfd.h (elf_backend_data): Add link_order_error_handler.
+
+ * elf.c (assign_section_numbers): Cope gracefully with sections
+ which have SHF_LINK_ORDER set but no sh_link set up.
+ * elflink.c (elf_get_linked_section_vma): Likewise.
+
+ * elfxx-ia64.c (elf_backend_link_order_error_handler): New. Set
+ it to NULL.
+
+ * elfxx-target.h (elf_backend_link_order_error_handler): New.
+ Set it to _bfd_default_error_handler.
+ (elfNN_bed): Add elf_backend_link_order_error_handler.
+
+ * libbfd-in.h (_bfd_default_error_handler): New.
+
+ * libbfd.h: Regenerated.
+
+2004-07-30 Jakub Jelinek <jakub@redhat.com>
+
+ * archures.c (bfd_mach_sparc_64bit_p): Define.
+ * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Use it.
+ * bfd-in2.h: Rebuilt.
+
+2004-07-29 Alexandre Oliva <aoliva@redhat.com>
+
+ Introduce SH2a support.
+ 2004-02-18 Corinna Vinschen <vinschen@redhat.com>
+ * archures.c (bfd_mach_sh2a_nofpu): New.
+ * bfd-in2.h: Rebuilt.
+ * cpu-sh.c (SH2A_NOFPU_NEXT): New.
+ (arch_info_struct): Add sh2a_nofpu.
+ * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a_nofpu.
+ 2003-12-29 DJ Delorie <dj@redhat.com>
+ * reloc.c: Add relocs for sh2a.
+ * bfd-in2.h: Regenerate.
+ * libbfd.hh: Regenerate.
+ 2003-12-01 Michael Snyder <msnyder@redhat.com>
+ * archures.c (bfd_mach_sh2a): New.
+ * bfd-in2.h: Rebuilt.
+ * cpu-sh.c (SH_NEXT, SH2_NEXT, etc.): Change defines to enums.
+ (SH2A_NEXT): New.
+ (arch_info_struct): Add sh2a.
+ * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a.
+
+2004-07-28 Nick Clifton <nickc@redhat.com>
+ John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ PR 273
+ * som.c (setup_sections): Improve estimation of space sizes in
+ relocatable objects.
+
+2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
+ * config.bfd (hppa*-*-netbsd*): Set targ_defvec to
+ bfd_elf32_hppa_nbsd_vec. Add bfd_elf32_hppa_linux_vec
+ to targ_selvecs.
+ * configure.in (bfd_elf32_hppa_nbsd_vec): Add case.
+ * configure: Regenerate.
+ * elf32-hppa.c (elf32_hppa_object_p): Add "elf32-hppa-netbsd"
+ case that accepts OSABI=NetBSD and OSABI=SysV.
+ (elf32_hppa_set_gp): For "elf32-hppa-netbsd", set the GP to
+ the base of .got or .data (if .got does not exist).
+ (elf32_hppa_post_process_headers): For elf32-hppa-netbsd,
+ set OSABI=NetBSD.
+ (TARGET_BIG_SYM): Add bfd_elf32_hppa_nbsd_vec case.
+ (TARGET_BIG_NAME): Add "elf32-hppa-netbsd" case.
+ * targets.c (bfd_elf32_hppa_nbsd_vec): Add extern declaration.
+ (_bfd_target_vector): Add bfd_elf32_hppa_nbsd_vec.
+
+2004-07-27 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR 161/251
+ * elf-bfd.h (bfd_elf_section_data): Add sec_group.
+ (elf_sec_group): Defined.
+ (bfd_elf_match_symbols_in_sections): New prototype.
+ (_bfd_elf_setup_group_pointers): Likewise.
+
+ * elf.c (bfd_elf_discard_group): Abort.
+ (bfd_elf_set_group_contents): Also include relocation sections.
+ Remove zero-fill for ld -r.
+ (_bfd_elf_setup_group_pointers): New function.
+ (elf_sort_elf_symbol): Likewise.
+ (elf_sym_name_compare): Likewise.
+ (bfd_elf_match_symbols_in_sections): Likewise.
+
+ * elfcode.h (elf_object_p): Call _bfd_elf_setup_group_pointers.
+
+ * elflink.c (match_group_member): New.
+ (elf_link_input_bfd): Check group member for discarded section.
+ (try_match_symbols_in_sections): New function.
+ (already_linked): Likewise.
+ (_bfd_elf_section_already_linked): Support mixing comdat group
+ and linkonce section.
+
+ * libbfd-in.h (bfd_section_already_linked_table_traverse): New.
+ * linker.c (bfd_section_already_linked_table_traverse): New.
+
+ * libbfd.h: Regenerated.
+
+2004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
+
+ * reloc.c: Add BFD_RELOC_CRX_SWITCH8, BFD_RELOC_CRX_SWITCH16,
+ BFD_RELOC_CRX_SWITCH32.
+ * bfd-in2.h: Regenerate.
+ * libbfd.h: Regenerate.
+ * elf32-crx.c: Support relocation/relaxation of
+ BFD_RELOC_CRX_SWITCH* types.
+
+2004-07-27 Alan Modra <amodra@bigpond.net.au>
+
+ * elf64-ppc.c: Correct "Linker stubs" comment.
+
+2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf-bfd.h (bfd_elf_section_data): Add a pointer for the
+ linked-to section.
+ (elf_linked_to_section): New.
+
+ * elf.c (assign_section_numbers): Set up sh_link for
+ SHF_LINK_ORDER.
+
+ * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set sh_info
+ to sh_link for SHT_IA_64_UNWIND sections.
+
+2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elflink.c (elf_fixup_link_order): Add _() to error message.
+
+2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elflink.c (elf_fixup_link_order): Issue a warning and flag
+ an error if failed.
+
+2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
+
+ * aout-adobe.c (aout_32_section_already_linked): Defined.
+ * aout-target.h (MY_section_already_linked): Likewise.
+ * aout-tic30.c (MY_section_already_linked): Likewise.
+ * binary.c (binary_section_already_linked): Likewise.
+ * bout.c (b_out_section_already_linked): Likewise.
+ * coff-alpha.c (_bfd_ecoff_section_already_linked): Likewise.
+ * coff-mips.c (_bfd_ecoff_section_already_linked): Likewise.
+ * coffcode.h (coff_section_already_linked): Likewise.
+ * i386msdos.c (msdos_section_already_linked): Likewise.
+ * i386os9k.c (os9k_section_already_linked): Likewise.
+ * ieee.c (ieee_section_already_linked): Likewise.
+ * ihex.c (ihex_section_already_linked): Likewise.
+ * mach-o.c (bfd_mach_o_section_already_linked): Likewise.
+ * mmo.c (mmo_section_already_linked): Likewise.
+ * nlm-target.h (nlm_section_already_linked): Likewise.
+ * oasys.c (oasys_section_already_linked): Likewise.
+ * pef.c (bfd_pef_section_already_linked): Likewise.
+ * ppcboot.c (ppcboot_section_already_linked): Likewise.
+ * som.c (som_bfd_discard_group): Likewise.
+ * srec.c (srec_section_already_linked): Likewise.
+ * tekhex.c (tekhex_section_already_linked): Likewise.
+ * versados.c (versados_section_already_linked): Likewise.
+ * vms.c (vms_section_already_linked): Likewise.
+ * coff-target.h (_bfd_xcoff_section_already_linked): Likewise.
+ * xsym.c (bfd_sym_section_already_linked): Likewise.
+
+ * bfd-in.h (bfd_section_already_linked_table_init): New.
+ (bfd_section_already_linked_table_free): Likewise.
+
+ * coff-rs6000.c (rs6000coff_vec): Add
+ _bfd_generic_section_already_linked.
+ (pmac_xcoff_vec): Likewise.
+ * coff64-rs6000.c (rs6000coff64_vec): Likewise.
+ (aix5coff64_vec): Likewise.
+
+ * elf-bfd.h (_bfd_elf_section_already_linked): New prototype.
+ * elflink.c (_bfd_elf_section_already_linked): New function.
+
+ * elfxx-target.h (bfd_elfNN_section_already_linked): Defined.
+
+ * libbfd-in.h (_bfd_nolink_section_already_linked): Defined.
+ (_bfd_generic_section_already_linked): New.
+ (bfd_section_already_linked_hash_entry): Likewise.
+ (bfd_section_already_linked): Likewise.
+ (bfd_section_already_linked_table_lookup): Likewise.
+ (bfd_section_already_linked_table_insert): Likewise.
+
+ * linker.c (bfd_section_already_linked): New.
+ (_bfd_section_already_linked_table): Likewise.
+ (bfd_section_already_linked_table_lookup): Likewise.
+ (bfd_section_already_linked_table_insert): Likewise.
+ (already_linked_newfunc): Likewise.
+ (bfd_section_already_linked_table_init): Likewise.
+ (bfd_section_already_linked_table_free): Likewise.
+ (_bfd_generic_section_already_linked): Likewise.
+
+ * section.c (bfd_section): Remove comdat.
+ (bfd_comdat_info): Moved to ...
+ * bfd-in.h (coff_comdat_info): Here.
+ (bfd_coff_get_comdat_section): New.
+ * coffgen.c (bfd_coff_get_comdat_section): Likewise.
+ * libcoff-in.h (coff_section_tdata): Add comdat.
+ * coffcode.h (handle_COMDAT): Updated.
+ * cofflink.c (coff_link_add_symbols): Likewise.
+ * ecoff.c (bfd_debug_section): Likewise.
+
+ * targets.c (bfd_target): Add _section_already_linked.
+ (BFD_JUMP_TABLE_LINK): Updated.
+
+ * bfd-in2.h: Regenerated.
+ * libbfd.h: Likewise.
+ * libcoff.h: Likewise.
+
+2003-07-21 Paul Brook <paul@codesourcery.com>
+
+ * elflink.c (elf_get_linked_section_vma, compare_link_order,
+ elf_fixup_link_order): New functions.
+ (bfd_elf_final_link): Call elf_fixup_link_order.
+
+2004-07-21 Alexandre Oliva <aoliva@redhat.com>
+
+ * elf-bfd.h (ELF_COMMON_DEF_P): New.
+ * elflink.c (_bfd_elf_symbol_refs_local_p): Use it to handle
+ common definitions.
+ * elf-m10300.c: Use SYMBOL_REFERENCES_LOCAL instead of
+ _bfd_elf_symbol_refs_local_p.
+ * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove hack for common
+ symbols.
+
+2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
+
+ * bfd-in.h (dynamic_lib_link_class): Add DYN_NO_ADD_NEEDED and
+ DYN_NO_NEEDED.
+ (bfd_elf_get_dyn_lib_class): New prototype.
+ * elf.c (bfd_elf_get_dyn_lib_class): New function.
+
+ * elflink.c (elf_link_add_object_symbols): Check DYN_AS_NEEDED,
+ DYN_DT_NEEDED and DYN_NO_NEEDED bits to see if a DT_NEEDED
+ entry is needed. Issue an error if a DT_NEEDED entry is needed
+ for a file marked DYN_NO_NEEDED.
+ (elf_link_check_versioned_symbol): Check the DYN_DT_NEEDED bit
+ for DT_NEEDED tags.
+
+ * bfd-in2.h: Regenerated.
+
+2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ * elflink.c (elf_section_complain_discarded): Don't complain in
+ .PARISC.unwind.
+
+2004-07-10 James E Wilson <wilson@specifixinc.com>
+
+ * elfxx-ia64.c (elfNN_ia64_relax_ldxmov): Remove abfd parameter.
+ (elfNN_ia64_install_value, elfNN_ia64_relax_brl): Likewise.
+ (elfNN_ia64_relax_section, elfNN_ia64_relocate_section,
+ elfNN_ia64_finish_dynamic_symbol, elfNN_ia64_finish_dynamic_sections):
+ Fix callers.
+ (elfNN_ia64_relax_brl): Change bfd_get_64 to bfd_getl64. Change
+ bfd_put_64 to bfd_putl64.
+ (elfNN_ia64_relax_ldxmov, elfNN_ia64_install_value): Likewise.
+
+2004-07-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR 240
+ * elfxx-ia64.c (elfNN_ia64_relax_section): Only warn br in
+ .init/.fini sections when trying to relax it.
+
+2004-07-09 Jie Zhang <zhangjie@magima.com.cn>
+
+ * elf.c (assign_file_positions_for_segments): Make sure the
+ .dynamic section is the first section in the PT_DYNAMIC segment.
+
+2004-07-09 Nick Clifton <nickc@redhat.com>
+
+ * config.bfd: Change sh-sybmian-elf to sh-*-symbianelf.
+ * elf32-sh-symbian.c: Rename the sh_find_elf_flags and
+ sh_elf_get_flags_from_mach functions so that they do not conflict
+ when this target is built with other sh-elf targets.
+ * elf32-sh.c (sh_elf_get_flags_from_mach): Remove bogus
+ suppression of this function.
+ (sh_elf_find_flags): Likewise.
+
+2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
+
+ * Makefile.am (ALL_MACHINES): Add cpu-crx.lo.
+ (ALL_MACHINES_CFILES): Add cpu-crx.c.
+ (BFD32_BACKENDS): Add elf32-crx.lo.
+ (BFD32_BACKENDS_CFILES): Add elf32-crx.c.
+ (cpu-crx.lo): New target.
+ (elf32-crx.lo): New target.
+ * Makefile.in: Regenerate.
+ * archures.c (bfd_architecture): Add bfd_{arch,mach}_crx.
+ (bfd_archures_list): Add bfd_crx_arch.
+ * bfd-in2.h: Regenerate.
+ * config.bfd: Handle crx-*-elf*, crx*.
+ * configure.in: Handle bfd_elf32_crx_vec.
+ * configure: Regenerate.
+ * cpu-crx.c: New file.
+ * elf32-crx.c: Likewise.
+ * libbfd.h: Regenerate.
+ * reloc.c: Add BFD_RELOC_CRX_REL4, BFD_RELOC_CRX_REL8,
+ BFD_RELOC_CRX_REL8_CMP, BFD_RELOC_CRX_REL16, BFD_RELOC_CRX_REL24,
+ BFD_RELOC_CRX_REL32, BFD_RELOC_CRX_REGREL12, BFD_RELOC_CRX_REGREL22,
+ BFD_RELOC_CRX_REGREL28, BFD_RELOC_CRX_REGREL32, BFD_RELOC_CRX_ABS16,
+ BFD_RELOC_CRX_ABS32, BFD_RELOC_CRX_NUM8, BFD_RELOC_CRX_NUM16,
+ BFD_RELOC_CRX_NUM32, BFD_RELOC_CRX_IMM16 and BFD_RELOC_CRX_IMM32
+ * targets.c (bfd_elf32_crx_vec): Declare.
+ (bfd_target_vector): Add bfd_elf32_crx_vec.
+
+2004-07-06 Nick Clifton <nickc@redhat.com>
+
+ * config.bfd: Add sh-symbian-elf target.
+ * configure.in: Add bfd_elf32_shl_symbian_vec.
+ * configure: Regenerate.
+ * elf-bfd.h (struct elf_backend_data): Add new field
+ 'check_directives'.
+ * elflink.c (elf_link_add_object_symbols): Invoke the
+ check_directives function, if defined.
+ * elfxx-target.h: Provide a default, NULL definition for
+ check_directives.
+ * targets.c: Add bfd_elf32_shl_symbian_vec.
+ * elf32-sh.c (sh_elf_swap_insns): Protect against unnecessary
+ definition.
+ (elf32_shlin_grok_prstatus, elf32_shlib_grok_psinfo,
+ * sh_elf_get_flags_from_mach, sh_elf_find_flags): Likewise.
+ (TARGET_BIG_SYM, TARGET_LITTLE_SYM): Only define if they have
+ not already been defined.
+ * elf32-sh64.c: Use SH_TARGET_ALREADY_DEFINED.
+ * sh-symbian.c: New file. Provide functions to support the
+ * sh-symbian-elf target.
+ * Makefile.am: Add elf32-sh-symbian.c
+ * Makefile.in: Regenerate.
+
+2004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
+
+ * elf32-sh.c: Include ../opcodes/sh-opc.h.
+ * Makefile.am: Ran make dep-am.
+ * Makefile.in: Ran make dep-in.
+
2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
* cofflink.c (_bfd_coff_generic_relocate_section): Resolve PE weak
2004-06-29 Alan Modra <amodra@bigpond.net.au>
* bfd-in.h (bfd_get_section_limit): Define.
- * reloc.c (bfd_perform_relocation, bfd_install_relocation)
+ * reloc.c (bfd_perform_relocation, bfd_install_relocation)
(_bfd_final_link_relocate): Use bfd_get_section_limit.
* aout-tic30.c (tic30_aout_final_link_relocate): Likewise.
* coff-arm.c (coff_arm_relocate_section): Likewise.
(bfd_ns32k_final_link_relocate): Likewise.
* elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): Likwise.
* elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): Likewise.
- * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc)
+ * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc)
(i860_howto_highadj_reloc, i860_howto_splitn_reloc): Likewise.
- * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc)
+ * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc)
(m32r_elf_generic_reloc, m32r_elf_relocate_section): Likewise.
* elf32-m68hc1x.c (m68hc11_elf_special_reloc): Likewise.
* elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
* elf64-s390.c (s390_elf_ldisp_reloc): Likewise.
* elf64-sparc.c (init_insn_reloc): Likewise.
* elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
- * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp)
- (_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_lo16_reloc)
+ * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp)
+ (_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_lo16_reloc)
(_bfd_mips_elf_generic_reloc): Likewise.
* bfd-in2.h: Regenerate.