bfd/
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 5ede2eaa7fdeecde5195e26ebac58c5e4d89e96a..075bbc3a90046af1363e2bb350839c4bf8689594 100644 (file)
+2006-05-30  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * bfd.c (bfd_emul_get_maxpagesize): New.
+       (bfd_elf_set_pagesize): Likewise.
+       (bfd_emul_set_maxpagesize): Likewise.
+       (bfd_emul_get_commonpagesize): Likewise.
+       (bfd_emul_set_commonpagesize): Likewise.
+       * bfd-in2.h: Regenerated.
+
+       * elf-bfd.h (elf_backend_data): Add commonpagesize.
+       (xvec_get_elf_backend_data): New.
+       (get_elf_backend_data): Use xvec_get_elf_backend_data.
+
+       * elf32-arm.c (elf32_arm_vxworks_bed): Remove const.
+       * elfxx-target.h (elfNN_bed): Likewise.
+
+       * elf32-arm.c (ELF_COMMONPAGESIZE): Defined.
+       * elf32-mips.c (ELF_COMMONPAGESIZE): Likewise.
+       * elf32-ppc.c (ELF_COMMONPAGESIZE): Likewise.
+       * elf32-sh.c (ELF_COMMONPAGESIZE): Likewise.
+       * elf32-sh64.c (ELF_COMMONPAGESIZE): Likewise.
+       * elf32-sparc.c (ELF_COMMONPAGESIZE): Likewise.
+       * elf64-alpha.c (ELF_COMMONPAGESIZE): Likewise.
+       * elf64-ppc.c (ELF_COMMONPAGESIZE): Likewise.
+       * elf64-sparc.c (ELF_COMMONPAGESIZE): Likewise.
+       * elf64-x86-64.c (ELF_COMMONPAGESIZE): Likewise.
+       * elfn32-mips.c (ELF_COMMONPAGESIZE): Likewise.
+       * elfxx-ia64.c (ELF_COMMONPAGESIZE): Likewise.
+
+       * elfxx-target.h (ELF_COMMONPAGESIZE): Define if not defined.
+       (elfNN_bed): Initialize commonpagesize with ELF_COMMONPAGESIZE.
+
+       * targets.c (bfd_find_target): Support NULL abfd.
+
+2006-05-30  Nick Clifton  <nickc@redhat.com>
+
+       * po/es.po: Updated Spanish translation.
+
+2006-05-27  Alan Modra  <amodra@bigpond.net.au>
+           H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf.c (assign_file_positions_for_load_sections): Retrieve
+       maxpagesize from m->p_align if it is valid.  Set p_vaddr,
+       p_paddr and p_align earlier.  Revert 2006-05-19 change to p_align.
+       (copy_elf_program_header): Copy p_align.  Set p_align_valid.
+
+2006-05-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf64-x86-64.c (ELF_MINPAGESIZE): Changed to 0x1000.
+
+2006-05-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf64-x86-64.c (ELF_MINPAGESIZE): Set to 0x100000.
+
+2006-05-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf64-x86-64.c (ELF_MAXPAGESIZE): Updated to 0x200000.
+
+2006-05-26  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (sym_is_global): Return a bfd_boolean.
+       (ignore_section_sym): New function.
+       (elf_map_symbols): Use ignore_section_sym to discard some syms.
+       (_bfd_elf_symbol_from_bfd_symbol): Ensure section belongs to
+       bfd before using elf_section_syms.
+
+2006-05-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config.bfd: (sh-*-linux*): Treat as 64bit target.
+       (sh*l*-*-netbsdelf*): Likewise.
+       (sh-*-netbsdelf*): Likewise.
+       (shl*-*-elf*): Likewise.
+       (sh[1234]l*-*-elf*): Likewise.
+       (sh3el*-*-elf*): Likewise.
+       (shl*-*-kaos*): Likewise.
+       (sh-*-elf*): Likewise.
+       (sh[1234]*-elf*): Likewise.
+       (sh-*-rtems*): Likewise.
+       (sh-*-kaos*): Likewise.
+
+2006-05-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/1485
+       * config.bfd: Set want64 to true if 64bit bfd is used.
+       (sh-*-linux*): Use targ64_selvecs for 64bit targets.
+       (sh*l*-*-netbsdelf*): Likewise.
+       (sh-*-netbsdelf*): Likewise.
+       (shl*-*-elf*): Likewise.
+       (sh[1234]l*-*-elf*): Likewise.
+       (sh3el*-*-elf*): Likewise.
+       (shl*-*-kaos*): Likewise.
+       (sh-*-elf*): Likewise.
+       (sh[1234]*-elf*): Likewise.
+       (sh-*-rtems*): Likewise.
+       (sh-*-kaos*): Likewise.
+
+2006-05-24  Paul Brook  <paul@codesourcery.com>
+
+       * elf-bfd.h (elf_backend_data): Add elf_backend_output_arch_local_syms
+       * elf32-arm.c (output_arch_syminfo): Define.
+       (elf32_arm_ouput_plt_map_sym, elf32_arm_output_plt_map,
+       elf32_arm_output_arch_local_syms): New functions.
+       (elf_backend_output_arch_local_syms): Define.
+       * elflink.c (bfd_elf_final_link): Call
+       elf_backend_output_arch_local_syms.
+       * elfxx-target.h (elf_backend_output_arch_local_syms): Provide default
+       definition.
+       (elfNN_bed): Add elf_backend_output_arch_local_syms.
+
+2006-05-24  Paul Brook  <paul@codesourcery.com>
+
+       * elf32-arm.c (put_arm_insn, put_thumb_insn): New functions.
+       (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub,
+       elf32_arm_finish_dynamic_symbol): Use them.
+
+2006-05-24  Carlos O'Donell  <carlos@systemhalted.org>
+           Randolph Chung  <tausq@debian.org>
+           
+       * elf-hppa.h (reloc_hppa_howto_table): Check bitfield for
+       TPREL21L/TPREL14R relocations. Handle LTOFF_TP14R relocations.
+       Add handling for TLS relocations.
+       (elf_hpp_reloc_final_type): Handle TLS relocs.
+       * elf32-hppa.c: Add authors for cleanup and TLS support.
+       (hppa_elf_local_got_tls_type, hh_name, eh_name): Define.
+       (elf32_hppa_link_hash_entry): Add tls_type.
+       (elf32_hppa_link_hash_table): Add tld_ldm_got.
+       (hppa_link_has_newfunc): Set tls_type.
+       (elf32_hppa_link_hash_table_create): Set tls_ldm_got refcount.
+       (hppa_stub_name): Use hh_name macro.
+       (elf32_hppa_copy_indirect_symbol): Copy TLS information.
+       (elf32_hppa_check_relocs): Call elf32_hppa_optimized_tls_reloc.
+       Handle TLS relocs.
+       (elf32_hppa_gc_sweep_hook): Likewise. 
+       (allocate_dynrelocs): Handle TLS relocs.
+       (elf32_hppa_size_dynamic_sections): Count space required by TLS
+       relocs. Use hh_name macro.
+       (dtpoff_base): New function.
+       (tpoff): Likewise.
+       (elf32_hppa_optimized_tls_reloc): Likewise.
+       (final_link_relocate): Handle TLS relocs.
+       (elf32_hppa_relocate_section): Handle TLS relocs. Use eh_name
+       and hh_name macros.
+       (elf32_hppa_finish_dynamic_symbol): Setup TLS got entries. Use
+       hh_name and eh_name macros.
+       (elf32_hppa_reloc_type_clas): Handle TLS relocs.
+
+2006-05-24  Bjoern Haase  <bjoern.m.haase@web.de> 
+
+        * archures.c: Add bfd_mach_avr6.
+       * cpu-avr.c: Likewise.
+       * reloc.c (BFD_RELOC_AVR_LO8_LDI_GS, BFD_RELOC_AVR_HI8_LDI_GS):
+       New relocations.
+       * libbfd.h: Regenerate. 
+       * bfd-in2.h:Regenerate.
+       * elf32-avr.h: New file.  Protoypes for functions accessed from ld.
+       * elf32-avr.c: Add elf32-avr.h to include list.
+       (elf32_avr_stub_hash_entry): New function.
+       (elf32_avr_link_hash_table): New struct.
+       (avr_link_hash_table): Likewise.
+       (avr_stub_hash_entry): Likewise.
+       (avr_stub_hash_lookup): New function.
+       (stub_hash_newfunc): New function.
+       (elf32_avr_link_hash_table_create): New function.
+       (elf32_avr_link_hash_table_free): New function.
+       (avr_get_stub_addr): New function.
+       (debug_relax, debug_stubs): Add new global variables controlling
+       debugging printout to stdout.
+       (avr_pc_wrap_around): Change the type to bfd_vma.
+       (avr_replace_call_ret_sequences): Add a new variable controling 
+       linkrelax optimizations.
+       (avr_stub_is_required_for_16_bit_reloc): New function.
+       (avr_final_link_relocate): 
+       Add linker hash table to parameter list. Use stub addr. if necessary.
+       (elf32_avr_relocate_section):
+       Add linker hashtable to parameter list of avr_final_link_relocate.
+       (bfd_elf_avr_final_write_processing): Add support for bfd_mach_avr6.
+       (elf32_avr_object_p): Add support for E_AVR_MACH_AVR6.
+       (elf32_avr_relax_delete_bytes):
+       Iterate over all sections of a bfd when adjusting relocs addends.
+       (elf32_avr_relax_section):
+       Evaluate avr_replace_call_ret_sequences and recalculate the size of 
+       stub section.
+       (avr_stub_name): New function.
+       (avr_get_stub_entry): New function.
+       (avr_add_stub): New function.
+       (avr_build_one_stub): New function.
+       (avr_size_one_stub): New function.
+       (elf32_avr_setup_params): New function.
+       (elf32_avr_setup_section_lists): New function.
+       (get_local_syms): New function.
+       (elf32_avr_size_stubs): New function.
+       (bfd_elf32_bfd_link_hash_table_create): New function.
+       (bfd_elf32_bfd_link_hash_table_free): New function.
+
+2006-05-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/2655
+       PR ld/2657
+       * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Properly
+       update CIE/FDE length.  Don't pad to the section alignment.
+
+2006-05-23  Jie Zhang  <jie.zhang@analog.com>
+
+       * elf32-bfin.c (bfinfdpic_relocate_section): Clear reloc for
+       deteted entries in .eh_frame section.
+
+2006-05-23  Jie Zhang  <jie.zhang@analog.com>
+
+       * elf32-bfin.c (bfin_check_relocs): Use __GLOBAL_OFFSET_TABLE_
+       instead of _GLOBAL_OFFSET_TABLE_.
+       (bfin_relocate_section): Ditto.
+       (_bfin_create_got_section): Ditto.
+       (elf32_bfinfdpic_create_dynamic_sections): Use
+       __PROCEDURE_LINKAGE_TABLE_ instead of _PROCEDURE_LINKAGE_TABLE_.
+       (bfin_finish_dynamic_symbol): Use __DYNAMIC instead of _DYNAMIC.
+
+2006-05-23  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-ppc.c (compare_symbols): Prefer strong dynamic global
+       function syms over other syms.
+
+2006-05-22  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * elflink.c (_bfd_elf_add_dynamic_entry): Remove DT_TEXTREL
+       check.
+       (bfd_elf_final_link): Add a late DT_TEXTREL check.
+       * elfxx-mips.c (MIPS_ELF_READONLY_SECTION): Define.
+       (mips_elf_create_dynamic_relocation): Set DF_TEXTREL.
+       (_bfd_mips_elf_check_relocs): Delete MIPS_READONLY_SECTION.
+       Use MIPS_ELF_READONLY_SECTION.
+       (_bfd_mips_elf_size_dynamic_sections): Clear DF_TEXTREL after
+       creating DT_TEXTREL.
+       (_bfd_mips_elf_finish_dynamic_sections): Clear textrel markers
+       if no text relocations were generated.
+
+2006-05-19  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elfxx-ia64.c (ELF_MAXPAGESIZE): Fix a typo in comment.
+
+2006-05-19  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (elf_fake_sections): Formatting.
+       (assign_file_positions_for_load_sections): Only add SEC_ALLOC
+       sections to p_memsz.  Remove hack for PT_NOTE sections.  Allow
+       section alignment to increase p_align for PT_LOAD.
+       (assign_file_positions_for_non_load_sections): Remove ARM BPABI
+       hack for PT_DYNAMIC.  Instead, set p_filesz for all segments
+       other than PT_LOAD, and PT_NOTE in core.
+
+2006-05-17  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (assign_file_positions_for_segments): Split into..
+       (assign_file_positions_for_load_sections): ..this, and..
+       (assign_file_positions_for_non_load_sections): ..this new function,..
+       (assign_file_positions_except_relocs): ..writing program headers here.
+
+2006-05-17  Alan Modra  <amodra@bigpond.net.au>
+
+       * elflink.c (elf_gc_sweep): Don't specially keep non-alloc,
+       non-load sections if they have relocs.
+
+2006-05-15  Paul Brook  <paul@codesourcery.com>
+
+       * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename ...
+       (bfd_is_arm_special_symbol_name): ... to this.  Add type argument.
+       Check symbol name is of specified type.
+       * elf32-arm.c (elf32_arm_is_target_special_symbol,
+       arm_elf_find_function, elf32_arm_output_symbol_hook): Use
+       bfd_is_arm_special_symbol_name.
+       * bfd-in.h (BFD_ARM_SPECIAL_SYM_TYPE_MAP,
+       BFD_ARM_SPECIAL_SYM_TYPE_TAG, BFD_ARM_SPECIAL_SYM_TYPE_OTHER,
+       BFD_ARM_SPECIAL_SYM_TYPE_ANY): Define.
+       (bfd_is_arm_mapping_symbol_name): Remove prototype.
+       (bfd_is_arm_special_symbol_name): Add prototype.
+       * bfd-in2.h: Regenerate.
+
+2006-05-15  David Heine  <dlheine@tensilica.com>
+           Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (check_loop_aligned): Fix reversed check for
+       undefined opcode.  Clean up assertions.
+       (narrow_instruction, widen_instruction): Remove "do_it" parameters.
+       Factor most of the code into separate functions....
+       (can_narrow_instruction, can_widen_instruction): New.
+       (prev_instr_is_a_loop): New.
+       (compute_ebb_proposed_actions): Combine error handling code for
+       decode errors.  Replace call to insn_decode_len with inline code.
+       Use can_narrow_instruction and can_widen_instruction.  Handle errors
+       from call to xtensa_opcode_is_loop.
+       (relax_section): Adjust calls to narrow_instruction and 
+       widen_instruction.
+
+2006-05-15  Alan Modra  <amodra@bigpond.net.au>
+
+       PR 2658
+       * elf32-ppc.c (ppc_elf_relax_section): Don't segfault on non-pic
+       -shared link.
+
+2006-05-11  Michael Matz  <matz@suse.de>
+
+       * elflink.c (match_group_member): Correctly iterate group
+       members.
+
+2006-05-11  Paul Brook  <paul@codesourcery.com>
+
+       * elf32-arm.c (elf32_arm_reloc_map): Add MOVW and MOVT relocs.
+       (elf32_arm_final_link_relocate): Handle MOVW and MOVT relocs.
+       (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto.
+       * reloc.c: Ditto.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+       * libcoff.h: Regenerate.
+
+2006-05-11  Mike Bland  <mbland@google.com>
+
+       * elf.c (_bfd_elf_init_private_section_data): Don't change
+       section type if already set.
+
+2006-05-10  Nick Clifton  <nickc@redhat.com>
+
+       PR ld/2607
+       * elfcode.h (valid_section_index_p): New function: Checks for a
+       valid section index.  Allows indicies in the range SHN_LOPROC to
+       SHN_HIOS.
+       (elf_object_p): Use valid_section_index_p.
+
+2006-05-11  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * coff-arm.c (ARM_26D, ARM_32, ARM_RVA_32, ARM_SECTION,
+       ARM_SECREL): Mark WinCE versions of these relocs as partial
+       inplace.
+       (coff_arm_relocate_section): Adjust addend for WinCE.
+
+2006-05-10  Alan Modra  <amodra@bigpond.net.au>
+
+       PR 2342
+       * elflink.c (_bfd_elf_default_action_discarded): Revert 2006-02-16.
+
+2006-05-09  Nick Clifton  <nickc@redhat.com>
+
+       * coffcode.h (coff_write_relocs): Produce an error message if a an
+       out-of-range symbol index is detected in a reloc.
+
+2006-05-09  Ben Elliston  <bje@au.ibm.com>
+
+       * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Remove unused
+       local variable `dynobj'.
+       
+2006-05-05  Bjoern Haase  <bjoern.m.haase@web.de>
+
+       * elf32-avr.c (elf32_avr_relax_delete_bytes): Iterate over all
+       of the bfd's sections for the reloc-addend adjustments.
+
+2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
+
+       * elf32-s390.c (invalid_tls_insn): Call bfd_set_error.
+       (elf_s390_relocate_section): Add code to do the GD->LE and
+       LD->LE TLS linker optimizations if a brasl instruction is used
+       for the __tls_get_offset function call.
+       * elf64-s390.c (invalid_tls_insn): Call bfd_set_error.
+
+2006-05-05  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf64-ppc.c (ppc64_elf_tls_optimize): Only optimize
+       R_PPC64_TPREL64 and R_PPC64_DTPMOD64 relocs when they are in
+       the .toc and referenced by a TLS code sequence.
+       (ppc64_elf_edit_toc): Cater for the unlikely situation that
+       .toc is the first section in a file.
+
+2006-05-04  Andreas Schwab  <schwab@suse.de>
+
+       * aoutf1.h (struct external_sparc_core): Declare c_regs as struct
+       regs instead of an array of int.
+       (struct external_solaris_bcp_core): Likewise.
+       (swapcore_sun3): Use offsetof instead of computing the offset
+       manually.
+       (swapcore_sparc): Likewise.  Simplify reference to c_regs.
+       (swapcore_solaris_bcp): Likewise.
+
+2006-05-04  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Adjust handling
+       for missing GOTs.
+
+2006-05-04  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Accept more
+       mapping symbols.
+
+2006-05-04  Ben Elliston  <bje@au.ibm.com>
+
+       * coff-or32.c (bfd_section_from_shdr): Remove unused local
+       variable `ptr'.
+       * cofflink.c (process_embedded_commands): Remove unused local
+       variables `had_read' and `had_shared'.
+       * ecofflink.c (bfd_ecoff_debug_accumulate): Remove unused local
+       variable `fdr_adr'.
+       * ihex.c (ihex_read_section): Remove unused local variable `addr'.
+
+2006-05-03  Alan Modra  <amodra@bigpond.net.au>
+
+       * libbfd-in.h (_bfd_generic_new_section_hook): Declare.
+       * section.c (bfd_abs_symbol, bfd_com_symbol): Delete.
+       (bfd_und_symbol, bfd_ind_symbol): Delete.
+       (BFD_FAKE_SECTION): Remove SYM_PTR param, set symbol_ptr_ptr to
+       &SEC.symbol.
+       (STD_SECTION): Adjust.
+       (_bfd_generic_new_section_hook): New function, extracted from..
+       (bfd_section_init): ..here.
+       (bfd_make_section_old_way): Call new_section_hook for abs, com,
+       und and ind sections.
+       * elf.c (_bfd_elf_large_com_section): Adjust.
+       * aoutx.h (new_section_hook): Call _bfd_generic_new_section_hook.
+       * pdp11.c (new_section_hook): Likewise.
+       * coffcode.h (coff_new_section_hook): Likewise.
+       * ecoff.c (_bfd_ecoff_new_section_hook): Likewise.
+       * elf.c (_bfd_elf_new_section_hook): Likewise.
+       * vms.c (vms_new_section_hook): Likwise.
+       * elf32-arm.c (elf32_arm_new_section_hook): Check used_by_bfd isn't
+       already set.
+       * elf32-sh64.c (sh64_elf_new_section_hook): Likewise.
+       * elf32-xtensa.c (elf_xtensa_new_section_hook): Likewise.
+       * elf64-mmix.c (mmix_elf_new_section_hook): Likewise.
+       * elf64-ppc.c (ppc64_elf_new_section_hook): Likewise.
+       * elfxx-mips.c (_bfd_mips_elf_new_section_hook): Likewise.
+       * elfxx-sparc.c (_bfd_sparc_elf_new_section_hook): Likewise.
+       * ieee.c (ieee_new_section_hook): Likewise.  Call
+       _bfd_generic_new_section_hook too.
+       * mmo.c (mmo_new_section_hook): Likewise.
+       * oasys.c (oasys_new_section_hook): Likewise.
+       * som.c (som_new_section_hook): Likewise.
+       * coff-w65.c (reloc_processing): Don't use bfd_abs_symbol.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+
+2006-05-03  Alan Modra  <amodra@bigpond.net.au>
+
+       * hash.c (DEFAULT_SIZE): Revert last change.
+       (higher_prime_number): Correct test for no larger prime.  Don't
+       abort on error, instead return 0.  Depopulate primes[].
+       (bfd_hash_lookup): If we overflow size, refuse to grow table.
+
+2006-05-02  Paul Brook  <paul@codesourcery.com>
+
+       * elf32-arm.c (elf32_arm_final_link_relocate): Set thumb funciton bit
+       for R_ARM_REL32.
+
+2006-05-02  Ben Elliston  <bje@au.ibm.com>
+
+       * archive.c (bfd_generic_archive_p): Remove unused local variable
+       `fail'.
+       * dwarf2.c (decode_line_info): Remove unused local variable
+       `basic_block'.
+       * elfcode.h (elf_slurp_reloc_table_from_section): Remove unused
+       local variable `s'.
+       * tekhex.c (tekhex_write_object_contents): Remove unused local
+       variable `bytes_written'.
+       * aout-ns32k.c (MY_swap_std_reloc_out): Remove unused local
+       variable `r_addend'.
+       * elf32-dlx.c (dlx_rtype_to_howto): Remove breaks after returns.
+       * elfxx-mips.c (_bfd_elf_mips_mach): Remove breaks after returns.
+       (_bfd_ns32k_relocate_contents): Remove break after return.
+       * elf.c (bfd_section_from_shdr): Remove breaks after returns.
+
+2006-05-02  Nick Clifton  <nickc@redhat.com>
+
+       * elf32-sh-symbian.c: Rename local define DEBUG to SYMBIAN_DEBUG
+       in order to avoid conflicts with the global DEBUG define.
+
+2006-05-02  Alan Modra  <amodra@bigpond.net.au>
+
+       * dwarf2.c: Formatting.
+       * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Simplify
+       output section check.
+       * elf32-i370.c: Warning fixes inside #ifdef DEBUG.
+       * elf32-m32c.c: Similarly.
+       * elf32-ppc.c: Similarly.
+       * elf32-v850.c: Similarly.
+       * nlm32-sparc.c: Similarly.
+       * elfcode.h: Similarly.
+       (elf_symbol_flags): Delete.
+       * elflink.c (elf_link_input_bfd): Comment typo.
+
+2006-05-01  DJ Delorie  <dj@redhat.com>
+
+       * bfd-in.h (bfd_hash_table): Add count field.
+       * bfd-in2.h: Regenerate.
+       * hash.c (higher_prime_number): New.
+       (bfd_hash_table_inint_n): Init count field.
+       (bfd_hash_lookup): Grow table as needed.
+
+2006-04-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       PR binutils/2584
+       * tekhex.c (getvalue): Change return type to bfd_boolean and
+       add the new parameter.  Return false if the unexpected character
+       is found.
+       (getsym): Likewise.
+       (first_phase): Change return type to bfd_boolean and return
+       false if the unexpected character is found.  Replace abort
+       with returning false.
+       (pass_over): Change return type to bfd_boolean and the type of
+       the second argument to bfd_boolean (*) (bfd *, int, char *).
+       Return false if FUNC returns false.
+       (tekhex_object_p): Return NULL if pass_over fails.
+
+2006-04-27  Alan Modra  <amodra@bigpond.net.au>
+
+       * coff-rs6000.c (xcoff_write_archive_contents_old): Warning fix.
+
+2006-04-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/2593
+       * elf.c (_bfd_elf_new_section_hook): Don't set section ELF type
+       and flags if its BFD flags have been set.
+       (_bfd_elf_init_private_section_data): Don't copy the output ELF
+       section type from input if it has been set to something
+       different.
+
+2006-04-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/2467
+       * elf.c (_bfd_elf_close_and_cleanup): Check elf_tdata (abfd)
+       is NULL first.
+
+       * elf32-arm.c (elf32_arm_close_and_cleanup): Check if
+       abfd->sections is NULL.
+       (elf32_arm_bfd_free_cached_info): New.
+       (bfd_elf32_bfd_free_cached_info): Defined.
+
+       * elfxx-target.h (bfd_elfNN_bfd_free_cached_info): Default it
+       to _bfd_free_cached_info.
+
+       * libbfd-in.h (_bfd_free_cached_info): New.
+       * libbfd: Regenerated.
+
+       * opncls.c (_bfd_delete_bfd): Check if abfd->memory is NULL.
+       (_bfd_free_cached_info): New.
+
+2006-04-21  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (assign_file_positions_except_relocs): Move code setting
+       file position of non-loaded sections..
+       (assign_file_positions_for_segments): ..to here.
+
+2006-04-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/2537
+       * elf.c (bfd_section_from_shdr): Allow sections reserved for
+       applications. Issue an error on sections we don't know how
+       to handle.
+
+2006-04-19  Alan Modra  <amodra@bigpond.net.au>
+
+       * Makefile.am: Run "make dep-am".
+       * Makefile.in: Regenerate.
+
+2006-04-19  Alan Modra  <amodra@bigpond.net.au>
+
+       * warning.m4 (--enable-werror): Format help message.
+       (--enable-build-warnings): Likewise.
+       * configure: Regenerate.
+
+2006-04-18  Nick Clifton  <nickc@redhat.com>
+
+       PR 2257
+       * elfcode.h (elf_object_p): Allow files with corrupt e_shstrndx
+       fields to still be handled as ELF files.
+
+2006-04-16  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * po/SRC-POTFILES.in: Regenerated.
+
+2006-04-16  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * configure.in: Update version to 2.17.50.
+       * configure: Regenerated.
+
+2006-04-14  David Heine  <dlheine@tensilica.com>
+
+       * elf32-xtensa.c (build_reloc_opcodes): New.
+       (compute_text_actions): Use it to decode opcodes outside inner loop.
+       (check_section_ebb_pcrels_fit): Add "reloc_opcodes" argument, and if
+       it is set, use it to get the opcodes for relocations.
+       (move_shared_literal): Adjust call to check_section_ebb_pcrels_fit.
+
+2006-04-08  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/2513
+       * elf32-i386.c (GOT_TLS_MASK): New macro for tls_type.
+       (GOT_TLS_IE_IE): Likewise.
+       (GOT_TLS_IE_GD): Likewise.
+       (GOT_TLS_IE_MASK): Likewise.
+       (elf_i386_check_relocs): For global symbols, set GOT_TLS_IE_GD
+       and GOT_TLS_IE_IE for R_386_TLS_GD and R_386_TLS_IE
+       respectively.
+       (allocate_dynrelocs): If both GOT_TLS_IE_IE and GOT_TLS_IE_GD
+       are set, treat tls_type as GOT_TLS_IE_BOTH.
+       (elf_i386_relocate_section): Likewise.
+
+2006-04-07  Randolph Chung  <tausq@debian.org>
+
+       * elf64-hppa.c (elf64_hppa_grok_prstatus): New function.
+       (elf64_hppa_grok_psinfo): Likewise.
+       (elf_backend_grok_pstatus, elf_backend_grok_psinfo): Define.
+
+2006-04-06  DJ Delorie  <dj@redhat.com>
+
+       * elf32-m32c.c (m32c_elf_relocate_section): Generate a symbol for
+       each plt entry we create.
+
+2006-04-06  Carlos O'Donell  <carlos@codesourcery.com>
+
+       * po/Make-in: Add install-html target.
+       * Makefile.am: Rename docdir to bfddocdir. Add datarootdir, docdir
+       htmldir. Add install-html and install-html-recursive targets.
+       * Makefile.in: Regenerate.
+       * configure.in: AC_SUBST for datarootdir, docdir and htmldir.
+       * configure: Regenerate.
+
+2006-04-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elfxx-ia64.c (elfNN_ia64_relax_section): Skip unneeded passes
+       with the skip_relax_pass_0 and skip_relax_pass_1 bits in the
+       section structure.
+
+2006-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
+
+       * elf32-bfin.c (bfinfdpic_relocs_info_hash): Sprinkle casts to
+       eliminate warnings.
+
+2006-04-05  H.J. Lu  <hongjiu.lu@intel.com>
+           James E Wilson  <wilson@specifixinc.com>
+
+       PR ld/2442
+       * elfxx-ia64.c (elfNN_ia64_dyn_sym_info): Remove next.
+       (elfNN_ia64_local_hash_entry): Add count, sorted_count and
+       size.
+       (elfNN_ia64_link_hash_entry): Likewise.
+       (elfNN_ia64_new_elf_hash_entry): Initialize count, sorted_count
+       and size.
+       (elfNN_ia64_hash_copy_indirect): Updated elfNN_ia64_dyn_sym_info
+       processing.
+       (elfNN_ia64_hash_hide_symbol): Likewise.
+       (elfNN_ia64_global_dyn_sym_thunk): Likewise.
+       (elfNN_ia64_local_dyn_sym_thunk): Likewise.
+       (elfNN_ia64_global_dyn_info_free): New function.
+       (elfNN_ia64_local_dyn_info_free): Likewise.
+       (elfNN_ia64_hash_table_free): Free local and global
+       elfNN_ia64_dyn_sym_info.
+       (addend_compare): New function.
+       (sort_dyn_sym_info): Likewise.
+       (get_dyn_sym_info): Updated to use binary search for addend.
+       (elfNN_ia64_check_relocs): Scan relocations to create dynamic
+       relocation arrays first.
+
+2006-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
+
+       * elf32-bfin.c (_bfin_create_got_section): Don't generate a _gp
+       symbol.
+
+2006-04-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/2411
+       * elflink.c (check_dynsym): New.
+       (elf_link_output_extsym): Use it.
+       (bfd_elf_final_link): Likewise.
+
+2006-04-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/2404
+       * elflink.c (_bfd_elf_merge_symbol): Skip the default indirect
+       symbol from the dynamic definition with the default version if
+       its type and the type of existing regular definition mismatch.
+
+2006-04-05  Richard Sandiford  <richard@codesourcery.com>
+           Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * config.bfd (sparc-*-vxworks*): New stanza.
+       * configure.in (bfd_elf32_sparc_vxworks_vec): New stanza.
+       (bfd_elf32_sparc_vec, bfd_elf64_sparc_vec): Add elf-vxworks.lo.
+       * configure: Regenerate.
+       * elf32-sparc.c: Include elf-vxworks.h.
+       (elf32_sparc_vxworks_link_hash_table_create: New.
+       (elf32_sparc_vxworks_final_write_processing): New.
+       (TARGET_BIG_SYM): Override for VxWorks.
+       (TARGET_BIG_NAME, ELF_MINPAGESIZE): Likewise.
+       (bfd_elf32_bfd_link_hash_table_create): Likewise.
+       (elf_backend_want_got_plt, elf_backend_plt_readonly): Likewise.
+       (elf_backend_got_header_size, elf_backend_add_symbol_hook): Likewise.
+       (elf_backend_link_output_symbol_hook): Likewise.
+       (elf_backend_emit_relocs): Likewise.
+       (elf_backend_final_write_processing, elf32_bed): Likewise.
+       * elfxx-sparc.c: Include libiberty.h and elf-vxworks.h.
+       (sparc_vxworks_exec_plt0_entry, sparc_vxworks_exec_plt_entry): New.
+       (sparc_vxworks_shared_plt0_entry, sparc_vxworks_shared_plt_entry): New.
+       (_bfd_sparc_elf_link_hash_table_create): Don't initialize
+       build_plt_entry here.
+       (create_got_section): Initialize sgotplt for VxWorks.
+       (_bfd_sparc_elf_create_dynamic_sections): Initialize build_plt_entry,
+       plt_header_size and plt_entry_size, with new VxWorks-specific settings.
+       Call elf_vxworks_create_dynamic_sections for VxWorks.
+       (allocate_dynrelocs): Use plt_header_size and plt_entry_size.
+       Allocate room for .got.plt and .rela.plt.unloaded entries on VxWorks.
+       (_bfd_sparc_elf_size_dynamic_sections): Don't allocate a nop in .plt
+       for VxWorks.  Check for the .got.plt section.
+       (sparc_vxworks_build_plt_entry): New function.
+       (_bfd_sparc_elf_finish_dynamic_symbol): Add handling of VxWorks PLTs.
+       Don't make _GLOBAL_OFFSET_TABLE_ and _PROCEDURE_LINKAGE_TABLE_
+       absolute on VxWorks.
+       (sparc32_finish_dyn): Add special handling for DT_RELASZ
+       and DT_PLTGOT on VxWorks.
+       (sparc_vxworks_finish_exec_plt): New.
+       (sparc_vxworks_finish_shared_plt): New.
+       (_bfd_sparc_elf_finish_dynamic_sections): Call them.
+       Use plt_header_size and plt_entry_size.
+       * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add is_vxworks,
+       srelplt2, sgotplt, plt_header_size and plt_entry_size fields.
+       * Makefile.am (elfxx-sparc.lo): Depend on elf-vxworks.h.
+       (elf32-sparc.lo): Likewise.
+       * Makefile.in: Regenerate.
+       * targets.c (bfd_elf32_sparc_vxworks_vec): Declare.
+       (_bfd_target_vector): Add a pointer to it.
+
+2006-03-30  Ben Elliston  <bje@au.ibm.com>
+
+       PR ld/2267
+       * elflink.c (elf_fixup_link_order): Ensure `elfsec' is not a
+       special section number that exceeds the number of ELF sections
+       (eg. SHN_MIPS_SCOMMON).
+
+2006-03-27  Richard Sandiford  <richard@codesourcery.com>
+
+       * elfxx-mips.c (mips_got_entry): Add more commentary.
+       (mips_elf_local_got_index): Use the hash table entry to record
+       the GOT index of forced-local symbols.
+       (mips_elf_initialize_tls_index): Rearrange code.  Store the index
+       in either the hash table entry or the mips_got_entry, not both.
+       Add more commentary.
+       (mips_elf_multi_got): Make sure the g->next is nonnull when calling
+       mips_elf_initialize_tls_index.
+
+2006-03-25  Bernd Schmidt  <bernd.schmidt@analog.com>
+
+       * elf32-bfin.c (bfd_const_reloc, bfd_oper_reloc, bfin_push_reloc,
+       RELOC_STACK_SIZE, reloc_stack, reloc_stack_tos, is_reloc_stack_empty,
+       reloc_stack_push, reloc_stack_pop, reloc_stack_operate,
+       bfin_areloc_howto_table): Delete.  All
+       uses deleted as well.
+       (bfin_reloc_map): Delete all stack relocs.
+       (bfin_info_to_howto, bfin_bfd_reloc_type_lookup,
+       bfin_reloc_type_lookup): Don't support them.
+       (bfin_relocate_section): Don't try to handle them.
+
+       * config.bfd (bfin-*-*): Add bfd_elf32_bfinfdpic_vec.
+       * configure.in: Likewise.
+       * configure: Regenerate.
+       * elf32-bfin.c: Include "elf/dwarf2.h" and "hashtab.h".
+       (BFIN_RELOC_MAX): Now 0x21.
+       (bfin_howto_table, bfin_reloc_map): Add FD-PIC relocs.
+       (bfd_elf32_bfinfdpic_vec): Declare.
+       (IS_FDPIC): New macro.
+       (struct bfinfdpic_elf_link_hash_table): New struct.
+       (bfinfdpic_hash_table, bfinfdpic_got_section,
+       bfinfdpic_gotrel_section, bfinfdpic_gotfixup_section,
+       bfinfdpic_plt_setion, bfinfdpic_pltrel_section,
+       bfinfdpic_relocs_info, bfinfdpic_got_initial_offset,
+       bfinfdpic_plt_initial_offset): Accessor macros for it.
+       (BFINFDPIC_SYM_LOCAL, BFINFDPIC_FUNCDESC_LOCAL): New macros.
+       (struct bfinfdpic_relocs_info): New struct.
+       (LZPLT_RESOLVER_EXTRA, LZPLT_NORMAL_SIZE, LZPLT_ENTRIES,
+       BFINFDPIC_LZPLT_BLOCK_SIZE, BFINFDPIC_LZPLT_RESOLV_LOC,
+       DEFAULT_STACK_SIZE): New macros.
+       (bfinfdpic_elf_link_hash_table_create, bfinfdpic_relocs_info_hash,
+       bfinfdpic_relocs_info_eq, bfinfdpics_relocs_info_find,
+       bfinfdpic_relocs_info_for_global, bfinfdpic_relocs_info_for_local,
+       bfinfdpic_pic_merge_early_relocs_info, _bfinfdpic_add_dyn_reloc,
+       _bfinfdpic_add_rofixup, _bfinfdpic_osec_to_segment,
+       _bfinfdpic_osec_readonly_p, bfinfdpic_relocate_section,
+       bfinfdpic_check_relocs, bfinfdpic_gc_sweep_hook,
+       _bfinfdpic_link_omit_section_dynsym, _bfin_create_got_section,
+       elf32_bfinfdpic_create_dynamic_sections, _bfinfdpic_get_fd_entry,
+       _bfinfdpic_compute_got_alloc_data, _bfinfdpic_get_got_entry,
+       _bfinfdpic_assign_got_entries, _bfinfdpic_assign_plt_entries,
+       _bfinfdpic_resolve_final_relocs_info,
+       elf32_bfinfdpic_size_dynamic_sections,
+       elf32_bfinfdpic_always_size_sections,
+       elf32_bfinfdpic_modify_segment_map,
+       _bfinfdpic_count_got_plt_entries,
+       elf32_bfinfdpic_finish_dynamic_sections,
+       elf32_bfinfdpic_adjust_dynamic_symbol,
+       elf32_bfinfdpic_finish_dynamic_symbol,
+       elf32_bfinfdpic_elf_use_relative_eh_frame,
+       elf32_bfinfdpic_elf_encode_eh_address,
+       elf32_bfin_object_p, bfin_elf_copy_private_bfd_data,
+       elf32_bfinfdpic_copy_private_bfd_data,
+       (struct _bfinfdpic_dynamic_got_info,
+       struct _bfinfdpic_dynamic_got_plt_info): New structs.
+       (elf32_bfin_print_private_bfd_data): Print PIC flags.
+       (elf32_bfin_merge_private_bfd_data): Extend to support FD-PIC.
+       (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, elf32_bed,
+       elf_backend_got_header_size, bfd_elf32_bfd_link_hash_table_create,
+       elf_backend_always_size_sectinos, elf_backend_modify_segment_map,
+       bfd_elf32_bfd_copy_private_bfd_data,
+       elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol,
+       elf_backend_size_dynamic_sections, elf_backend_finish_dynamic_symbol,
+       elf_backend_finish_dynamic_sections, elf_backend_relocate_section,
+       elf_backend_can_make_relative_eh_frame, elf_backend_check_relocs,
+       elf_backend_can_make_ldsa_relative_eh_frame, elf_backend_may_use_rel_p,
+       elf_backend_may_use_rela_p, elf_backend_default_use_rela_p,
+       elf_backend_omit_section_dynsym): Redefine these macros and include
+       "elf32-target.h" again to create the elf32-bfinfdpic target.
+       * reloc.c (BFD_RELOC_BFIN_GOT17M4, BFD_RELOC_BFIN_GOTHI,
+       BFD_RELOC_BFIN_GOTLO, BFD_RELOC_BFIN_FUNCDESC,
+       BFD_RELOC_BFIN_FUNCDESC_GOT17M4, BFD_RELOC_BFIN_FUNCDESC_GOTHI,
+       BFD_RELOC_BFIN_FUNCDESC_GOTLO, BFD_RELOC_BFIN_FUNCDESC_VALUE,
+       BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4, BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI,
+       BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO, BFD_RELOC_BFIN_GOTOFFHI,
+       BFD_RELOC_BFIN_GOTOFFLO): New.
+       * targets.c (bfd_elf32_bfinfdpic_vec): New bfd_target.
+       (_bfd_target_vector): Add it.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+
+2006-03-25  Richard Sandiford  <richard@codesourcery.com>
+
+       * cpu-m68k.c (bfd_m68k_compatible): Treat ISA A+ and ISA B code as
+       incompatible.  Likewise MAC and EMAC code.
+       * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Use
+       bfd_get_compatible to set the new bfd architecture.  Rely on it
+       to detect incompatibilities.
+
+2006-03-23  Michael Matz  <matz@suse.de>
+
+       * reloc.c: Add BFD_RELOC_X86_64_GOT64, BFD_RELOC_X86_64_GOTPCREL64,
+       BFD_RELOC_X86_64_GOTPC64, BFD_RELOC_X86_64_GOTPLT64,
+       BFD_RELOC_X86_64_PLTOFF64.
+       * bfd-in2.h: Regenerated.
+       * libbfd.h: Regenerated.
+       * elf64-x86-64.c (x86_64_elf_howto_table): Correct comment.
+       Add howtos for above relocs.
+       (x86_64_reloc_map): Add mappings for new relocs.
+       (elf64_x86_64_check_relocs): R_X86_64_GOT64, R_X86_64_GOTPCREL64,
+       R_X86_64_GOTPLT64 need a got entry.  R_X86_64_GOTPLT64 also a PLT
+       entry.  R_X86_64_GOTPC64 needs a .got section.  R_X86_64_PLTOFF64
+       needs a PLT entry.
+       (elf64_x86_64_gc_sweep_hook): Reflect changes from
+       elf64_x86_64_check_relocs for the new relocs.
+       (elf64_x86_64_relocate_section): Handle new relocs.
+
+2006-03-22  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (xtensa_read_table_entries): Remove assertion that
+       rel->r_addend is zero.
+
+2006-03-22  Richard Sandiford  <richard@codesourcery.com>
+
+       * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Fix type
+       of "loc".
+
+2006-03-22  Richard Sandiford  <richard@codesourcery.com>
+           Daniel Jacobowitz  <dan@codesourcery.com>
+           Phil Edwards  <phil@codesourcery.com>
+           Zack Weinberg  <zack@codesourcery.com>
+           Mark Mitchell  <mark@codesourcery.com>
+           Nathan Sidwell  <nathan@codesourcery.com>
+
+       * bfd-in2.h: Regenerate.
+       * config.bfd (mips*-*-vxworks*, mips*el-*-vxworks*): New stanzas.
+       * configure.in (bfd_elf32_bigmips_vxworks_vec): New stanza.
+       (bfd_elf32_littlemips_vxworks_vec): Likewise.
+       (bfd_elf32_bigmips_vec): Add elf-vxworks.lo.
+       (bfd_elf32_littlemips_vec): Likewise.
+       (bfd_elf32_nbigmips_vec): Likewise.
+       (bfd_elf32_nlittlemips_vec): Likewise.
+       (bfd_elf32_ntradbigmips_vec): Likewise.
+       (bfd_elf32_ntradlittlemips_vec): Likewise.
+       (bfd_elf32_tradbigmips_vec): Likewise.
+       (bfd_elf32_tradlittlemips_vec): Likewise.
+       (bfd_elf64_bigmips_vec): Likewise.
+       (bfd_elf64_littlemips_vec): Likewise.
+       (bfd_elf64_tradbigmips_vec): Likewise.
+       (bfd_elf64_tradlittlemips_vec): Likewise.
+       * elf32-mips.c: Include elf-vxworks.h.
+       (mips_info_to_howto_rel): Use elf_backend_mips_rtype_to_howto
+       instead of calling mips_elf32_rtype_to_howto directly.
+       (mips_vxworks_copy_howto_rela): New reloc howto.
+       (mips_vxworks_jump_slot_howto_rela): Likewise.
+       (mips_vxworks_bfd_reloc_type_lookup): New function.
+       (mips_vxworks_rtype_to_howto): Likewise.
+       (mips_vxworks_final_write_processing): Likewise.
+       (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Override for VxWorks.
+       (TARGET_BIG_SYM, TARGET_BIG_NAME, elf_bed, ELF_MAXPAGESIZE): Likewise.
+       (elf_backend_want_got_plt): Likewise.
+       (elf_backend_want_plt_sym): Likewise.
+       (elf_backend_got_symbol_offset): Likewise.
+       (elf_backend_want_dynbss): Likewise.
+       (elf_backend_may_use_rel_p): Likewise.
+       (elf_backend_may_use_rela_p): Likewise.
+       (elf_backend_default_use_rela_p): Likewise.
+       (elf_backend_got_header_size: Likewise.
+       (elf_backend_plt_readonly): Likewise.
+       (bfd_elf32_bfd_reloc_type_lookup): Likewise.
+       (elf_backend_mips_rtype_to_howto): Likewise.
+       (elf_backend_adjust_dynamic_symbol): Likewise.
+       (elf_backend_finish_dynamic_symbol): Likewise.
+       (bfd_elf32_bfd_link_hash_table_create): Likewise.
+       (elf_backend_add_symbol_hook): Likewise.
+       (elf_backend_link_output_symbol_hook): Likewise.
+       (elf_backend_emit_relocs): Likewise.
+       (elf_backend_final_write_processing: Likewise.
+       (elf_backend_additional_program_headers): Likewise.
+       (elf_backend_modify_segment_map): Likewise.
+       (elf_backend_symbol_processing): Likewise.
+       * elfxx-mips.c: Include elf-vxworks.h.
+       (mips_elf_link_hash_entry): Add is_relocation_target and
+       is_branch_target fields.
+       (mips_elf_link_hash_table): Add is_vxworks, srelbss, sdynbss, srelplt,
+       srelplt2, sgotplt, splt, plt_header_size and plt_entry_size fields.
+       (MIPS_ELF_RELA_SIZE, MIPS_ELF_REL_DYN_NAME): New macros.
+       (MIPS_RESERVED_GOTNO): Take a mips_elf_link_hash_table argument.
+       Return 3 for VxWorks.
+       (ELF_MIPS_GP_OFFSET): Change the argument from a bfd to a
+       mips_elf_link_hash_table.  Return 0 for VxWorks.
+       (MIPS_ELF_GOT_MAX_SIZE): Change the argument from a bfd to a
+       mips_elf_link_hash_table.  Update the call to ELF_MIPS_GP_OFFSET.
+       (mips_vxworks_exec_plt0_entry): New variable.
+       (mips_vxworks_exec_plt_entry): Likewise.
+       (mips_vxworks_shared_plt0_entry): Likewise.
+       (mips_vxworks_shared_plt_entry): Likewise.
+       (mips_elf_link_hash_newfunc): Initialize the new hash_entry fields.
+       (mips_elf_rel_dyn_section): Change the bfd argument to a
+       mips_elf_link_hash_table.  Use MIPS_ELF_REL_DYN_NAME to get
+       the name of the section.
+       (mips_elf_initialize_tls_slots): Update the call to
+       mips_elf_rel_dyn_section.
+       (mips_elf_gotplt_index): New function.
+       (mips_elf_local_got_index): Add an input_section argument.
+       Update the call to mips_elf_create_local_got_entry.
+       (mips_elf_got_page): Likewise.
+       (mips_elf_got16_entry): Likewise.
+       (mips_elf_create_local_got_entry): Add bfd_link_info and input_section
+       arguments.  Create dynamic relocations for each entry on VxWorks.
+       (mips_elf_merge_gots): Update the use of MIPS_ELF_GOT_MAX_SIZE.
+       (mips_elf_multi_got): Update the uses of MIPS_ELF_GOT_MAX_SIZE
+       and MIPS_RESERVED_GOTNO.
+       (mips_elf_create_got_section): Update the uses of
+       MIPS_ELF_GOT_MAX_SIZE.  Create .got.plt on VxWorks.
+       (is_gott_symbol): New function.
+       (mips_elf_calculate_relocation): Use a dynobj local variable.
+       Update the calls to mips_elf_local_got_index, mips_elf_got16_entry and
+       mips_elf_got_page_entry.  Set G to the .got.plt entry when calculating
+       VxWorks R_MIPS_CALL* relocations.  Calculate and use G for all GOT
+       relocations on VxWorks.  Add dynamic relocations for references
+       to the VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols.  Don't
+       create dynamic relocations for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64
+       in VxWorks executables.
+       (mips_elf_allocate_dynamic_relocations): Add a bfd_link_info argument.
+       Use MIPS_ELF_RELA_SIZE to calculate the size of a VxWorks entry.
+       Don't allocate a null entry on VxWorks.
+       (mips_elf_create_dynamic_relocation): Update the call to
+       mips_elf_rel_dyn_section.  Use absolute rather than relative
+       relocations for VxWorks, and make them RELA rather than REL.
+       (_bfd_mips_elf_create_dynamic_sections): Don't make .dynamic
+       read-only on VxWorks.  Update the call to mips_elf_rel_dyn_section.
+       Create the .plt, .rela.plt, .dynbss and .rela.bss sections on
+       VxWorks.  Likewise create the _PROCEDURE_LINKAGE_TABLE symbol.
+       Call elf_vxworks_create_dynamic_sections for VxWorks and
+       initialize the plt_header_size and plt_entry_size fields.
+       (_bfd_mips_elf_check_relocs): Don't allow GOT relocations to be
+       used in VxWorks executables.  Don't allocate dynamic relocations
+       for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 in VxWorks executables.
+       Set is_relocation_target for each symbol referenced by a relocation.
+       Allocate .rela.dyn entries for relocations against the special
+       VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols.  Create GOT
+       entries for all VxWorks R_MIPS_GOT16 relocations.  Don't allocate
+       a global GOT entry for symbols mentioned in VxWorks R_MIPS_CALL*,
+       R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 relocations.  Update the calls
+       to mips_elf_rel_dyn_section and mips_elf_allocate_dynamic_relocations.
+       Set is_branch_target for symbols mentioned in R_MIPS_PC16 or R_MIPS_26
+       relocations.  Don't set no_fn_stub on VxWorks.
+       (_bfd_mips_elf_adjust_dynamic_symbol): Update the call to
+       mips_elf_allocate_dynamic_relocations.
+       (_bfd_mips_vxworks_adjust_dynamic_symbol): New function.
+       (_bfd_mips_elf_always_size_sections): Do not allocate GOT page
+       entries for VxWorks, and do not create multiple GOTs.
+       (_bfd_mips_elf_size_dynamic_sections): Use MIPS_ELF_REL_DYN_NAME.
+       Handle .got specially for VxWorks.  Update the uses of
+       MIPS_RESERVED_GOTNO and mips_elf_allocate_dynamic_relocations.
+       Check for sgotplt and splt.  Allocate the .rel(a).dyn contents last,
+       once its final size is known.  Set DF_TEXTREL for VxWorks.  Add
+       DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL, DT_PLTRELSZ and DT_JMPREL
+       tags on VxWorks.  Do not add the MIPS-specific tags for VxWorks.
+       (_bfd_mips_vxworks_finish_dynamic_symbol): New function.
+       (mips_vxworks_finish_exec_plt): Likewise.
+       (mips_vxworks_finish_shared_plt): Likewise.
+       (_bfd_mips_elf_finish_dynamic_sections): Remove an unncessary call
+       to mips_elf_rel_dyn_section.  Use a VxWorks-specific value of
+       DT_PLTGOT.  Handle DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL,
+       DT_PLTRELSZ and DT_JMPREL.  Update the uses of MIPS_RESERVED_GOTNO
+       and mips_elf_rel_dyn_section.  Use a different GOT header for
+       VxWorks.  Don't sort .rela.dyn on VxWorks.  Finish the PLT on VxWorks.
+       (_bfd_mips_elf_link_hash_table_create): Initialize the new
+       mips_elf_link_hash_table fields.
+       (_bfd_mips_vxworks_link_hash_table_create): New function.
+       (_bfd_mips_elf_final_link): Set the GP value to _GLOBAL_OFFSET_TABLE_
+       on VxWorks.  Update the call to ELF_MIPS_GP_OFFSET.
+       * elfxx-mips.h (_bfd_mips_vxworks_adjust_dynamic_symbol): Declare.
+       (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
+       (_bfd_mips_vxworks_link_hash_table_create): Likewise.
+       * libbfd.h: Regenerate.
+       * Makefile.am (elfxx-mips.lo): Depend on elf-vxworks.h.
+       (elf32-mips.lo): Likewise.
+       * Makefile.in: Regenerate.
+       * reloc.c (BFD_RELOC_MIPS_COPY, BFD_RELOC_MIPS_JUMP_SLOT): Declare.
+       * targets.c (bfd_elf32_bigmips_vxworks_vec): Declare.
+       (bfd_elf32_littlemips_vxworks_vec): Likewise.
+       (_bfd_target_vector): Add entries for them.
+
+2006-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * elf64-hppa.c (elf64_hppa_special_sections): Change flags for .tbss
+       section from SHF_PARISC_WEAKORDER to SHF_HP_TLS.
+       (elf_backend_special_sections): Remove #undef.
+
+2006-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry
+       for undefined weak symbols.
+
+2006-03-17  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       PR ld/2462
+       * elflink.c (bfd_elf_final_link): Remove
+       bed->elf_backend_emit_relocs from emit_relocs.
+
+2006-03-17  Alexandre Oliva  <aoliva@redhat.com>
+
+       * elf32-ppc.c (ppc_elf_relocate_section): Copy addend from
+       first relocation to the second when relaxing TLS GD to LE;
+       zero it out when relaxing to IE.
+
+2006-03-17  Alan Modra  <amodra@bigpond.net.au>
+
+       PR 2434
+       * elflink.c (elf_link_add_object_symbols): Save and restore
+       warning sym's linked sym.
+
+2006-03-16  Alan Modra  <amodra@bigpond.net.au>
+
+       PR 2434
+       * elflink.c (struct elf_smash_syms_data, elf_smash_syms): Delete.
+       (elf_link_add_object_symbols): Delete unnecessary locals.  Rename
+       hash_table -> htab.  Formatting.  Save entire symbol table
+       before loading as-needed syms, and restore afterwards if lib not
+       needed.  Use bfd_hash_allocate rather than bfd_alloc for sym
+       name.  Free some buffers earlier.
+       * bfd-in.h (struct bfd_hash_table): Add entsize.
+       (bfd_hash_table_init, bfd_hash_table_init_n): Adjust prototype.
+       * elf-bfd.h (_bfd_elf_link_hash_table_init): Likewise
+       * hash.c (bfd_hash_table_init_n): Add entsize param, save to
+       hash table.
+       (bfd_hash_table_init): Add param, adjust calls.
+       * aoutx.h: Adjust all hash_table_init functions and calls.
+       * bfd.c: Likewise.
+       * coff-arm.c: Likewise.
+       * coff-h8300.c: Likewise.
+       * coff-ppc.c: Likewise.
+       * cofflink.c: Likewise.
+       * ecoff.c: Likewise.
+       * ecofflink.c: Likewise.
+       * elf-m10300.c: Likewise.
+       * elf-strtab.c: Likewise.
+       * elf.c: Likewise.
+       * elf32-arm.c: Likewise.
+       * elf32-bfin.c: Likewise.
+       * elf32-cris.c: Likewise.
+       * elf32-frv.c: Likewise.
+       * elf32-hppa.c: Likewise.
+       * elf32-i386.c: Likewise.
+       * elf32-m32r.c: Likewise.
+       * elf32-m68hc1x.c: Likewise.
+       * elf32-m68k.c: Likewise.
+       * elf32-ppc.c: Likewise.
+       * elf32-s390.c: Likewise.
+       * elf32-sh.c: Likewise.
+       * elf32-vax.c: Likewise.
+       * elf64-alpha.c: Likewise.
+       * elf64-hppa.c: Likewise.
+       * elf64-ppc.c: Likewise.
+       * elf64-s390.c: Likewise.
+       * elf64-sh64.c: Likewise.
+       * elf64-x86-64.c: Likewise.
+       * elfxx-ia64.c: Likewise.
+       * elfxx-mips.c: Likewise.
+       * elfxx-sparc.c: Likewise.
+       * i386linux.c: Likewise.
+       * libaout.h: Likewise.
+       * libbfd-in.h: Likewise.
+       * libcoff-in.h: Likewise.
+       * linker.c: Likewise.
+       * m68klinux.c: Likewise.
+       * merge.c: Likewise.
+       * opncls.c: Likewise.
+       * pdp11.c: Likewise.
+       * sparclinux.c: Likewise.
+       * stabs.c: Likewise.
+       * sunos.c: Likewise.
+       * vms.c: Likewise.
+       * xcofflink.c: Likewise.
+       * section.c (struct section_hash_entry): Move to..
+       * libbfd-in.h: ..here.
+       * Makefile.am: Run "make dep-am"
+       * Makefile.in: Regenerate.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+       * libcoff.h: Regenerate.
+
+2006-03-16  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-ppc.c (ppc_elf_check_relocs): REL24 and REL14 relocs
+       against __GLOBAL_OFFSET_TABLE__ need never be dynamic.  Tweak
+       last change to REL32 relocs so that they are counted as
+       possibly dynamic as per REL24 and REL14.
+
+2006-03-16  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24
+       checks from REL32.
+
+2006-03-15  Ben Elliston  <bje@au.ibm.com>
+
+       * elf32-arm.c (elf32_arm_merge_eabi_attributes): Iterate over all
+       in_list elements, not just the first.
+       
 2006-03-14  Richard Sandiford  <richard@codesourcery.com>
 
        * elf32-mips.c (mips_elf_adjust_addend): New function, mostly split
 2006-03-11  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/2443
-       * dwarf2.c (concat_filename): Don't issue an error if file is
-       0.
+       * dwarf2.c (concat_filename): Don't issue an error if file is 0.
 
 2006-03-10  Paul Brook  <paul@codesourcery.com>
 
This page took 0.034579 seconds and 4 git commands to generate.