OSDN Git Service

* elf32-spu.c (spu_elf_fake_sections): New function.
[pf3gnuchains/pf3gnuchains4x.git] / bfd / ChangeLog
index a598833..e89264f 100644 (file)
@@ -1,3 +1,877 @@
+2007-06-29  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (spu_elf_fake_sections): New function.
+       (elf_backend_fake_sections): Define.
+
+2007-06-29  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (assign_file_positions_for_load_sections): Use elf
+       section header sh_size rather than bfd section size, simplifying
+       .tbss handling.
+
+2007-06-29  Alan Modra  <amodra@bigpond.net.au>
+
+       PR ld/4701
+       * elf.c (assign_file_positions_for_load_sections): Ensure bss
+       segments meet gABI alignment requirements.  Don't allocate
+       file space for bss sections in a segment also containing file
+       or program headers.
+
+2007-06-27  Alan Modra  <amodra@bigpond.net.au>
+
+       * bfd.c (struct bfd): Rename "next" to "archive_next".
+       * archive.c: Rename uses throughout file.
+       * archive64.c: Likewise.
+       * coff-rs6000.c: Likewise.
+       * ecoff.c: Likewise.
+       * som.c: Likewise.
+       * bfd-in2.h: Regenerate.
+
+       * elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over
+       input bfds.
+       * elf32-spu.c (spu_elf_create_sections): Likewise.
+
+2007-06-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * dwarf2.c (find_line): New.  Contains the duplicated code from:
+       (_bfd_dwarf2_find_nearest_line): Use it.
+       (_bfd_dwarf2_find_line): Use it.
+
+2007-06-26  Joseph Myers  <joseph@codesourcery.com>
+
+       * elf32-arm.c (copy_eabi_attributes): Copy type of attributes.
+
+2007-06-25  Richard Sandiford  <richard@codesourcery.com>
+
+       * elfxx-mips.c (mips_elf_calculate_relocation): Allow local stubs
+       to be used for calls from MIPS16 code.
+
+2007-06-23  Andreas Schwab  <schwab@suse.de>
+
+       * configure.in (--with-separate-debug-dir): New option.
+       * configure: Regenerate.
+       * Makefile.am (dwarf2.lo): Add rule to pass DEBUGDIR.
+       * Makefile.in: Regenerate.
+       * dwarf2.c (_bfd_dwarf2_find_nearest_line): Pass DEBUGDIR to
+       bfd_follow_gnu_debuglink.
+       (_bfd_dwarf2_find_line): Likewise.
+
+2007-06-22  Nick Clifton  <nickc@redhat.com>
+
+       * dwarf2.c: Add support for reading in debug information via a
+       .gnu_debuglink section:
+       (struct dwarf2_debug): Add bfd field to record the bfd containing
+       the debug info.
+       (parse_comp_unit): Remove ABFD parameter.  Instead use the bfd
+       field in the dwarf2_debug structure.
+       (_bfd_dwarf2_find_nearest_line): If a debug info section could not
+       be found in the current bfd call bfd_follow_gnu_debuglink to see
+       if another file contains the debug information.  If it does, open
+       it and continue.
+       (_bfd_dwarf2_find_line): Likewise.
+
+2007-06-19  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/4590
+       * elfxx-ia64.c (sort_dyn_sym_info): Keep the valid got_offset
+       when removing duplicated entries.
+       (get_dyn_sym_info): Initialize the got_offset field to -1.
+       Update call to sort_dyn_sym_info.
+       (elfNN_ia64_relocate_section): Call sort_dyn_sym_info to sort
+       array of addend and remove duplicates.
+
+2007-06-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * libpei.h (_bfd_XXi_final_link_postscript): Remove
+       duplication.
+       (bfd_target_pei_p): New.
+       (bfd_target_pei_arch): New
+       (bfd_target_efi_p): Likewise.
+       (bfd_target_efi_arch): New
+       (bfd_pe_executable_p): Use bfd_target_pei_p and
+       bfd_target_efi_p.
+
+       * peicode.h (arch_type): New enum.
+       (pe_arch): New function.
+       (pe_bfd_object_p): Don't match PE/EFI target with EFI/PE file
+       if there is an EFI/PE target.
+
+2007-06-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * Makefile.am (ACLOCAL_AMFLAGS): Add -I . -I ../config.
+
+       * acinclude.m4: Don't include m4 files. Remove libtool
+       kludge.
+
+       * Makefile.in: Regenerated.
+       * aclocal.m4: Likewise.
+       * configure: Likewise.
+
+2007-06-11  Sterling Augustine  <sterling@tensilica.com>
+           Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (extend_ebb_bounds_forward): Use renamed
+       XTENSA_PROP_NO_TRANSFORM flag instead of XTENSA_PROP_INSN_NO_TRANSFORM.
+       (extend_ebb_bounds_backward, compute_text_actions): Likewise.
+       (compute_ebb_proposed_actions, coalesce_shared_literal): Likewise.
+       (xtensa_get_property_predef_flags): Likewise.
+       (compute_removed_literals): Pass new arguments to is_removable_literal.
+       (is_removable_literal): Add sec, prop_table and ptblsize arguments.
+       Do not remove literal if the NO_TRANSFORM property flag is set.
+
+2007-05-31  Richard Sandiford  <rsandifo@nildram.co.uk>
+
+       * elfxx-mips.c (mips_elf_initialize_tls_index): When processing a
+       type (3) single-GOT entry, read tls_type from the hash table entry
+       rather than the GOT entry.
+
+2007-06-01  Alan Modra  <amodra@bigpond.net.au>
+
+       * simple.c (bfd_simple_get_relocated_section_contents): Init
+       input_bfds_tail.
+
+2007-05-30  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (elf_fake_sections): Adjust test for SHT_NOBITS sections
+       created by objcopy --only-keep-debug.
+       (_bfd_elf_init_private_section_data): Only change elf_section_type
+       if it is SHT_NULL.
+
+       * elf.c (assign_file_positions_for_load_sections): Correct sh_type
+       to SHT_NOBITS earlier.  Base actions in rest of function on sh_type
+       and sh_flags instead of bfd section flags.  Delete voff and code
+       keeping nobits segments aligned.
+
+2007-05-25  Eric Christopher  <echristo@apple.com>
+
+       * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame):
+       Check that sym_sec isn't NULL before accessing.
+
+2007-05-24  Steve Ellcey  <sje@cup.hp.com>
+
+       * Makefile.in: Regnerate.
+       * configure: Regenerate.
+       * aclocal.m4: Regenerate.
+       * doc/Makefile.in: Regenerate.
+
+2007-05-22  Paul Brook  <paul@codesourcery.com>
+
+       * elf32-arm.c (output_arch_syminfo): Replace plt_shndx and plt_offset
+       with sec and sec_shndx.
+       (elf32_arm_ouput_plt_map_sym): Use them.
+       (elf32_arm_output_arch_local_syms): Output mapping symbols for
+       interworking glue.
+
+2007-05-18  Paul Brook  <paul@codesourcery.com>
+
+       * elf32-arm.c (ARM2THUMB_V5_STATIC_GLUE_SIZE): Define.
+       (a2t1v5_ldr_insn, a2t1v5_ldr_insn): New.
+       (record_arm_to_thumb_glue): Add v5t non-pic glue.
+       (elf32_arm_create_thumb_stub): Ditto.
+
+2007-05-16  H.J. Lu  <hongjiu.lu@intel.com>
+           Alan Modra  <amodra@bigpond.net.au>
+
+       * elflink.c (_bfd_elf_adjust_dynamic_copy): Align dynamic bss
+       section to the minimum alignment.
+
+2007-05-15  H.J. Lu  <hongjiu.lu@intel.com>
+           Alan Modra  <amodra@bigpond.net.au>
+
+       PR ld/4504
+       * elf-bfd.h (_bfd_elf_adjust_dynamic_copy): New.
+       * elflink.c (_bfd_elf_adjust_dynamic_copy): New.
+
+       * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Call
+       _bfd_elf_adjust_dynamic_copy to adjust for the copy in dynamic
+       bss section.
+       * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
+       * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
+       * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
+       * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
+       * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
+       * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
+       * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
+       * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
+       * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
+       * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
+       * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
+       * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
+       * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
+       * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
+       * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
+       * elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Likewise.
+       * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
+
+2007-05-15  Richard Sandiford  <richard@codesourcery.com>
+
+       * elfxx-mips.c (mips_elf_create_local_got_entry): Remove
+       input_section argument.  Create .rela.dyn relocations against
+       symbol 0 rather than the section symbol.
+       (mips_elf_local_got_index): Remove input_section argument.
+       Update call to mips_elf_create_local_got_entry.
+       (mips_elf_got_page, mips_elf_got16_entry): Likewise.
+       (mips_elf_calculate_relocation): Update calls to
+       mips_elf_local_got_index, mips_elf_got16_entry and mips_elf_got_page.
+
+2007-05-15  Mark Shinwell  <shinwell@codesourcery.com>
+
+       * elf32-arm.c (elf32_arm_final_link_relocate): Correctly
+       handle the Thumb-2 JUMP19 relocation.
+
+2007-05-15  Alan Modra  <amodra@bigpond.net.au>
+
+       PR 4479
+       * elf.c (elf_fake_sections): Don't allow backend to change
+       SHT_NOBITS if called for strip/objcopy --only-keep-debug.
+       * elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove similar
+       fix from here.
+
+2007-05-14  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (bfd_elf_string_from_elf_section): Return NULL on
+       invalid shstrndx.
+       (bfd_elf_get_str_section): Likewise.
+
+2007-05-12  Alan Modra  <amodra@bigpond.net.au>
+
+       PR 4497
+       * elf-eh-frame.c (struct cie): Add "local_personality".  Make
+       "personality" a union.
+       (cie_eq): Compare local_personality too.  Adjust personality
+       comparison.
+       (_bfd_elf_discard_section_eh_frame): Check binding on personality
+       reloc sym to allow for bad symtab.  Use stashed local syms rather
+       than reading personality local sym.  Handle discarded sections.
+
+2007-05-12  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (elf_howto_table): Add howto for R_SPU_ADDR16X.
+
+2007-05-11  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype.
+       (enum ppc_elf_plt_type): Move from..
+       * elf32-ppc.c: ..here.
+       (struct ppc_elf_obj_tdata): Add makes_plt_call and has_rel16.
+       (struct ppc_elf_link_hash_table): Reorder.  Add old_bfd.  Delete
+       can_use_new_plt.  Make is_vxworks a bitfield.
+       (ppc_elf_link_hash_table_create): Don't clear is_vxworks (again).
+       (ppc_elf_check_relocs): Update setting of reloc flags.  Set old_bfd.
+       (ppc_elf_select_plt_layout): Modify parameters.  Use bfd reloc
+       flags to better detect object files needing old bss-style plt.
+       Allow secure plt to be used without rel16 relocs being detected.
+       Warn if secure plt request cannot be allowed.
+
+2007-05-11  Alan Modra  <amodra@bigpond.net.au>
+
+       * reloc.c (BFD_RELOC_SPU_PPU32, BFD_RELOC_SPU_PPU64): Define.
+       * elf-bfd.h (struct elf_backend_data): Change return type of
+       elf_backend_relocate_section to int.
+       * elf32-spu.c (elf_howto_table): Add howtos for R_SPU_PPU32 and
+       R_SPU_PPU64.
+       (spu_elf_bfd_to_reloc_type): Convert new relocs.
+       (spu_elf_count_relocs): New function.
+       (elf_backend_count_relocs): Define.
+       (spu_elf_relocate_section): Arrange to emit R_SPU_PPU32 and
+       R_SPU_PPU64 relocs.
+       * elflink.c (elf_link_input_bfd): Emit relocs if relocate_section
+       returns 2.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+
+2007-05-10  Richard Sandiford  <richard@codesourcery.com>
+
+       * elf32-arm.c (elf32_arm_check_relocs): Don't create PLT entries
+       for R_ARM_ABS12 relocs.
+       (elf32_arm_finish_dynamic_symbol): Fix the loop that creates
+       non-shared VxWorks PLT entries.
+
+2007-05-11  Alan Modra  <amodra@bigpond.net.au>
+
+       PR 4454
+       * elf-eh-frame.c (struct cie): Make "personality" a bfd_vma.
+       (_bfd_elf_discard_section_eh_frame): Handle local syms on
+       personality relocation.
+
+2007-05-10  Richard Sandiford  <richard@codesourcery.com>
+
+       * elf.c (assign_file_positions_for_load_sections): Use p_memsz
+       rather than p_filesz to calculate the LMA of the end of a segment.
+
+2007-05-10  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't do copyreloc
+       processing if symbol is defined in the executable.
+
+2007-05-10  Alexandre Oliva  <aoliva@redhat.com>
+
+       * elf32-frv.c (_frvfdpic_check_discarded_relocs): New.
+       (frvfdpic_elf_discard_info): New.
+       (elf_backend_discard_info): Define for FDPIC.
+
+2007-05-09  Mark Shinwell  <shinwell@codesourcery.com>
+
+       * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Don't
+       attempt to scan if the bfd doesn't correspond to an ELF image.
+       (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
+
+2007-05-08  Alexandre Oliva  <aoliva@redhat.com>
+
+       * elf32-frv.c (elf32_frv_relocate_section): Discard dynamic relocs
+       for which _bfd_elf_section_offset returns -1.
+
+2007-05-08  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (spu_elf_size_stubs): Use "void *" for psyms.
+       (mark_functions_via_relocs): Likewise.
+
+2007-05-07  Alan Modra  <amodra@bigpond.net.au>
+
+       * elflink.c (bfd_elf_final_link): Correct reloc handling for
+       elf_backend_count_relocs.
+       (bfd_elf_discard_info): Print an error if we can't read syms.
+
+2007-05-07  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (spu_elf_reloc_type_lookup): Return NULL on
+       invalid reloc code.
+       (spu_elf_gc_mark_hook, spu_elf_section_processing): Delete functions.
+       (elf_backend_gc_mark_hook, elf_backend_section_processing): Don't
+       define.
+
+2007-05-07  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (assign_file_positions_for_load_sections): Don't check
+       core segment.
+
+2007-05-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elflink.c (elf_link_sort_relocs): Return if both .rela.dyn
+       and .rel.dyn aren't present.
+
+2007-05-04  Nick Clifton  <nickc@redhat.com>
+
+       * elflink.c (elf_link_sort_relocs): If both .rela.dyn and .rel.dyn
+       sections are present examine the indirect sections in an attempt
+       to compute the correct relocation size.  If there is any
+       ambiguity, produce an error and refuse to sort.
+
+2007-05-03  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * elf32-arm.c (allocate_dynrelocs): Fix typo in comment.
+
+2007-05-03  Vincent Riviere  <vincent.riviere@freesbee.fr>
+           Nick Clifton  <nickc@redhat.com>
+
+       PR gas/3041
+       * aoutx.h (swap_std_reloc_out): Treat relocs against weak symbols
+       in the same way as relocs against external symbols.
+
+2007-05-02  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (assign_file_positions_for_load_sections): Set sh_offset
+       here.  Set sh_type to SHT_NOBITS if we won't be allocating
+       file space.  Don't bump p_memsz for non-alloc sections.  Adjust
+       section-in-segment check.
+       (assign_file_positions_for_non_load_sections): Don't set sh_offset
+       here for sections that have already been handled above.
+
+2007-04-30  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (struct spu_link_hash_table): Add stack_analysis
+       and emit_stack_syms bitfields.
+       (get_sym_h): Read all symbols if stack analysis will be done.
+       (spu_elf_create_sections): Add stack_analysis and emit_stack_syms
+       params, and stash in hash table.
+       (is_hint): Split off from..
+       (is_branch): ..here.  Adjust callers.
+       (spu_elf_size_stubs): Add stack_analysis param.  Arrange to read
+       and keep all syms.
+       (write_one_stub): Fix mem leak.
+       (find_function_stack_adjust): New function.
+       (sort_syms_syms, sort_syms_psecs): New vars.
+       (sort_syms): New function.
+       (struct call_info, struct function_info): New.
+       (struct spu_elf_stack_info): New.
+       (alloc_stack_info, maybe_insert_function, func_name): New functions.
+       (is_nop, insns_at_end, check_function_ranges): Likewise.
+       (find_function, insert_callee, mark_functions_via_relocs): Likewise.
+       (pasted_function, interesting_section, discover_functions): Likewise.
+       (mark_non_root, call_graph_traverse, build_call_tree): Likewise.
+       (sum_stack, spu_elf_stack_analysis, spu_elf_final_link): Likewise.
+       (bfd_elf32_bfd_final_link): Define.
+       * elf32-spu.h (struct _spu_elf_section_data): Add stack_info field.
+       (spu_elf_create_sections, spu_elf_size_stubs): Update prototypes.
+
+2007-04-28  Sergey Rogozhkin  <rogozhkin@niisi.msk.ru>
+
+       * elfxx-mips.c (mips_elf_create_dynamic_relocation): Don't access
+       memory which we might not own.
+
+2007-04-27  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (elf_xtensa_make_sym_local): Restore deleted function.
+       (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Likewise.
+       (elf_xtensa_allocate_dynrelocs): Use elf_xtensa_make_sym_local.
+
+2007-04-27  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (xtensa_read_table_entries): Step through table
+       contents and relocs in parallel.
+
+2007-04-27  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (relax_property_section): Remove extra irel increment.
+
+2007-04-27  Alan Modra  <amodra@bigpond.net.au>
+
+       * cpu-rs6000.c: Write Mimi's name in ASCII.
+       * coff-rs6000.c: Likewise.
+       * rs6000-core.c: Likewise.
+
+2007-04-27  Alan Modra  <amodra@bigpond.net.au>
+
+       * sysdep.h: Include config.h first.
+       Many files: Include sysdep.h before bfd.h.
+       * Makefile.am: Run "make dep-am".
+       * Makefile.in: Regenerate.
+
+2007-04-25  Alan Modra  <amodra@bigpond.net.au>
+
+       * sysdep.h: Revert last change.
+
+2007-04-24  Nick Clifton  <nickc@redhat.com>
+
+       * coffcode.h (coff_slurp_reloc_table): Initialise dst.r_offset.
+       * coff-m68k.c (m68kcoff_rtype_to_howto): Initialize relent.howto.
+
+2007-04-24  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Warn if
+       eh_frame_hdr table won't be created.
+
+2007-04-24  Alan Modra  <amodra@bigpond.net.au>
+
+       * acinclude.m4: Include config/stdint.m4.
+       * configure.in: Invoke GCC_HEADER_STDINT.
+       * sysdep.h: Don't include ansidecl.h here.
+       * configure: Regenerate.
+       * config.in: Regenerate.
+       * Makefile.in: Regenerate.
+
+2007-04-23  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * archures.c (bfd_mach_mcf_isa_c, bfd_mach_mcf_isa_c_mac,
+       bfd_mach_mcf_isa_c_emac): New.
+       * elf32-m68k.c (ISAC_PLT_ENTRY_SIZE, elf_isac_plt0_entry,
+       elf_isac_plt_entry, elf_isac_plt_info): New.
+       (elf32_m68k_object_p): Add ISA_C.
+       (elf32_m68k_print_private_bfd_data): Print ISA_C.
+       (elf32_m68k_get_plt_info): Detect ISA_C.
+       * cpu-m68k.c (arch_info): Add ISAC.
+       (m68k_arch_features): Likewise,
+       (bfd_m68k_compatible): ISAs B & C are not compatible.
+
+2007-04-21  Nick Clifton  <nickc@redhat.com>
+
+       * ecoff.c (_bfd_ecoff_write_armap): Initialise rehash.
+       (ecoff_link_add_archive_symbols): Likewise.
+       * coff-m68k.c (m68kcoff_common_addend_rtype_to_howto): Initialise
+       relent.howto.
+       * ieee.c (parse_int): Initialise x.
+       (must_parse_int): Initialise result.
+       (ieee_slurp_external_symbols): Initialise value.
+
+2007-04-21  Alan Modra  <amodra@bigpond.net.au>
+
+       * config.bfd (spu-*-elf): Delete targ_selvecs.
+
+2007-04-19  Nick Clifton  <nickc@redhat.com>
+
+       * coffcode.h (coff_rtype_to_howto): Initialise genrel.howto.
+
+2007-04-19  Alan Modra  <amodra@bigpond.net.au>
+
+       * bfd.c (bfd_demangle): New function.
+       * Makefile.am: Run "make dep-am".
+       * Makefile.in: Regenerate.
+       * bfd-in2.h: Regenerate.
+
+2007-04-18  Matthias Klose  <doko@ubuntu.com>
+
+       * Makefile.am (libbfd_la_LDFLAGS): Use bfd soversion.
+       (bfdver.h): Use the date in non-release builds for the soversion.
+       * Makefile.in: Regenerate.
+
+2007-04-17  Paul Brook  <paul@codesourcery.com>
+
+       * elf.c (_bfd_elf_is_function_type): New function.
+       * elflink.c (_bfd_elf_merge_symbol): Use bed->is_function_type.
+       (_bfd_elf_dynamic_symbol_p, _bfd_elf_symbol_refs_local_p,
+       is_global_data_symbol_definition, elf_link_add_object_symbols): Ditto.
+       * elf-bfd.h (elf_backend_data): Add is_function_type.
+       (_bfd_elf_is_function_type): Add prototype.
+       * elfxx-target.h (elf_backend_is_function_type): Add default
+       definition.
+       (elfNN_bed): Add elf_backend_is_function_type.
+       * elf32-arm.c (elf32_arm_is_function_type): New function.
+       (elf_backend_is_function_type): Define.
+
+2007-04-17  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Put
+       DT_MIPS_RLD_MAP before DT_DEBUG again.
+
+2007-04-14  Steve Ellcey  <sje@cup.hp.com>
+
+       * Makefile.am: Add ACLOCAL_AMFLAGS.
+       * configure.in: Change macro call order.
+       * Makefile.in: Regnerate.
+       * doc/Makefile.in: Regenerate.
+       * configure: Regenerate.
+
+2007-04-14  Jakub Jelinek  <jakub@redhat.com>
+
+       * elflink.c (bfd_elf_final_link): Don't free symbuf for
+       non-elf input bfds.
+       (bfd_elf_size_dynamic_sections): Don't access elf_section_data
+       for non-elf input bfds.
+
+2007-04-12  Richard Sandiford  <richard@codesourcery.com>
+
+       * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Don't add
+       DT_MIPS_RTLD_MAP for PIEs.
+
+2007-04-12  Richard Sandiford  <richard@codesourcery.com>
+
+       * elfxx-mips.c (mips_elf_calculate_relocation): Set DT_TEXTREL
+       when creating a __GOTT_BASE__ or __GOTT_INDEX__ relocation
+       in a read-only section.
+       (_bfd_mips_elf_check_relocs): Likewise.
+
+2007-04-12  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (xtensa_is_insntable_section): New.
+       (xtensa_is_proptable_section): New.
+       (elf_xtensa_discard_info_for_section): Handle "full" .xt.prop property
+       tables with 12-byte entries, as well as tables with 8-byte entries.
+       Sort the relocations before examining them.
+       (relax_property_section): Use xtensa_is_proptable_section and
+       xtensa_is_littable_section.  Rewrite code for combining table entries
+       to be more robust in case of unexpected relocations.  Do not set offset
+       of unused relocations to less than zero.
+       (xtensa_is_property_section): Use other functions instead of
+       duplicating section name comparisons.
+       (xtensa_is_littable_section): Use CONST_STRNEQ for ".gnu.linkonce.p.".
+       (xtensa_get_property_predef_flags): Use xtensa_is_insntable_section.
+
+2007-04-12  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (elf_xtensa_gc_mark_hook): Don't follow references
+       from Xtensa property sections.
+
+2007-04-12  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (needs_ovl_stub): Test that spu_elf_section_data
+       is non-NULL before dereferencing.
+
+2007-04-11  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot
+       relocs too.
+
+2007-04-10  Richard Henderson  <rth@redhat.com>
+
+       * elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip.
+       (elf64_alpha_size_got_sections): Remove unused something_changed local.
+       (elf64_alpha_size_plt_section): Return void.
+       (elf64_alpha_size_rela_got_section): Likewise.
+       (elf64_alpha_relax_section): Only regenerate got+plt if the
+       relax_trip counter has changed.
+
+2007-04-09  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * Makefile.am (bfdver.h): Do not generate doc/bfdver.texi.
+       * doc/Makefile.am (DOCFILES): Add bfdver.texi.
+       (bfdver.texi): New rule.
+       * Makefile.in, doc/Makefile.in: Regenerated.
+
+2007-04-03  Matt Thomas  <matt@netbsd.org>
+
+       * elf32-vax.c (elf_vax_relocate_section): Do not emit a PCREL reloc
+       in a shared object if it is not in a CODE section or if it is against
+       a section symbol.  This allows DWARF2 to use pcrel format.
+
+2007-04-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/4304
+       * elflink.c (bfd_elf_final_link): Call einfo callback in
+       bfd_link_info instead of _bfd_error_handler for DT_TEXTREL
+       warning.
+
+2007-04-05  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (spu_elf_output_symbol_hook): New function.
+       (elf_backend_link_output_symbol_hook): Define.
+
+2007-04-02  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/4292
+       * bfd.c (bfd_fprintf_vma): Do not print addresses of 32-bit
+       targets as 64-bit values, even if running on a 64-bit host.
+       * coffgen.c (coff_print_symbol): Likewise.
+
+2007-03-29  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/4110
+       * elf.c (IS_VALID_GROUP_SECTION_HEADER): New macro.
+       (setup_group): Use it.  Report corrupt group section headers.
+       (bfd_section_from_shdr): Use new macro.  Replace constant 4 with
+       GRP_ENTRY_SIZE.  Cope with NULLs in the group section table.
+       (elf_fake_section): Replace constant 4 with GRP_ENTRY_SIZE.
+
+2007-03-29  Alan Modra  <amodra@bigpond.net.au>
+
+       PR ld/4267
+       * elflink.c (evaluate_complex_relocation_symbols): Use bfd_vma
+       for rel->r_info values.
+       (bfd_elf_perform_complex_relocation): Likewise.
+       * elf32-ppc.c (allocate_dynrelocs): Set plt.offset to -1 for
+       unused entries.  Don't clear plt.plist in loop.
+
+2007-03-28  Richard Sandiford  <richard@codesourcery.com>
+
+       * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela.
+       * elfxx-sparc.c (sparc_elf_append_rela_64, sparc_elf_append_rela_32):
+       Merge into...
+       (sparc_elf_append_rela): ...this new function.
+       (SPARC_ELF_APPEND_RELA): Delete.
+       (_bfd_sparc_elf_link_hash_table_create): Don't initialize
+       the deleted append_rela field.
+       (_bfd_sparc_elf_relocate_section): Use sparc_elf_append_rela
+       instead of SPARC_ELF_APPEND_RELA.
+       (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.  Use the
+       elf_size_info structure to find the size of a RELA entry and
+       the associated swap-out function.
+       (sparc64_finish_dyn, sparc64_finish_dyn): Merge into...
+       (sparc_finish_dyn): ...this new function.
+       (_bfd_sparc_elf_finish_dynamic_sections): Update calls accordingly.
+
+2007-03-28  Richard Sandiford  <richard@codesourcery.com>
+           Phil Edwards  <phil@codesourcery.com>
+
+       * doc/bfd.texinfo: Put the contents after the title page rather
+       than at the end of the document.
+
+2007-03-27  Andreas Schwab  <schwab@suse.de>
+
+       * elfxx-ia64.c (elf_backend_default_execstack): Define to 0.
+
+2007-03-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * configure: Regenerated.
+
+2007-03-26  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (struct stubarr): Add stub_hash_table and err fields.
+       (allocate_spuear_stubs): New function.
+       (spu_elf_size_stubs): Call allocate_spuear_stubs.
+
+2007-03-26  Alan Modra  <amodra@bigpond.net.au>
+
+       * aout-adobe.c (aout_32_bfd_reloc_name_lookup): Define.
+       * aout-arm.c (MY_bfd_reloc_name_lookup): Define.
+       (MY (bfd_reloc_name_lookup)): New function.
+       * aout-ns32k.c (MY (bfd_reloc_name_lookup)): New function.
+       * aout-target.h (NAME (aout, reloc_name_lookup)): Declare.
+       (MY_bfd_reloc_name_lookup): Define.
+       * aout-tic30.c (tic30_aout_reloc_name_lookup): New function.
+       (MY_bfd_reloc_name_lookup): Define.
+       * aoutx.h (NAME (aout, reloc_type_lookup)): Don't declare.
+       (NAME (aout, reloc_name_lookup)): New function.
+       * bout.c (b_out_bfd_reloc_name_lookup): New function.
+       * coff-alpha.c (alpha_bfd_reloc_name_lookup): New function.
+       (_bfd_ecoff_bfd_reloc_name_lookup): Define.
+       * coff-arm.c (coff_arm_reloc_name_lookup): New function.
+       (coff_bfd_reloc_name_lookup): Define.
+       * coff-i386.c (coff_bfd_reloc_name_lookup): Define.
+       (coff_i386_reloc_name_lookup): New function.
+       * coff-i860.c (coff_i860_reloc_name_lookup): New function.
+       (coff_bfd_reloc_name_lookup): Define.
+       * coff-i960.c (coff_i960_reloc_name_lookup): New function.
+       (coff_bfd_reloc_name_lookup): Define.
+       * coff-m68k.c (m68k_reloc_name_lookup): New function.
+       (coff_bfd_reloc_name_lookup): Define.
+       * coff-maxq.c (maxq_reloc_name_lookup): New function.
+       (coff_bfd_reloc_name_lookup): Define.
+       * coff-mcore.c (mcore_coff_reloc_name_lookup): New function.
+       (coff_bfd_reloc_name_lookup): Define.
+       * coff-mips.c (mips_bfd_reloc_name_lookup): New function.
+       (_bfd_ecoff_bfd_reloc_name_lookup): Define.
+       * coff-ppc.c (ppc_coff_reloc_name_lookup): New function.
+       (coff_bfd_reloc_name_lookup): Define.
+       * coff-rs6000.c (coff_bfd_reloc_name_lookup): Define.
+       (_bfd_xcoff_reloc_name_lookup): New function.
+       (rs6000coff_vec, pmac_xcoff_vec): Init new field.
+       * coff-sh.c (coff_bfd_reloc_name_lookup): Define.
+       (sh_coff_reloc_name_lookup): New function.
+       * coff-sparc.c (coff_sparc_reloc_name_lookup): New function.
+       (coff_bfd_reloc_name_lookup): Define.
+       * coff-tic30.c (coff_bfd_reloc_name_lookup): Define.
+       (tic30_coff_reloc_name_lookup): New function.
+       * coff-tic4x.c (coff_bfd_reloc_name_lookup): Define.
+       (tic4x_coff_reloc_name_lookup): New function.
+       * coff-tic54x.c (coff_bfd_reloc_name_lookup): Define.
+       (tic54x_coff_reloc_name_lookup): New function.
+       * coff-x86_64.c (coff_bfd_reloc_name_lookup): Define.
+       (coff_amd64_reloc_name_lookup): New function.
+       * coff-z80.c (coff_z80_reloc_name_lookup): New function.
+       (coff_bfd_reloc_name_lookup): Define.
+       * coff-z8k.c (coff_z8k_reloc_name_lookup): New function.
+       (coff_bfd_reloc_name_lookup): Define.
+       * coff64-rs6000.c (coff_bfd_reloc_name_lookup): Define.
+       (xcoff64_reloc_name_lookup): New function.
+       (rs6000coff64_vec, aix5coff64_vec): Init new field.
+       * coffcode.h (coff_bfd_reloc_name_lookup): Define.
+       * elf-hppa.h (elf_hppa_reloc_name_lookup): New function.
+       * elf-m10200.c (bfd_elf32_bfd_reloc_name_lookup): New function.
+       * elf-m10300.c (bfd_elf32_bfd_reloc_name_lookup): New function.
+       * elf32-arc.c (bfd_elf32_bfd_reloc_name_lookup): New function.
+       * elf32-arm.c (elf32_arm_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-avr.c (bfd_elf32_bfd_reloc_name_lookup): New function.
+       * elf32-bfin.c (bfin_bfd_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-cr16c.c (elf_cr16c_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-cris.c (cris_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-crx.c (elf_crx_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-d10v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
+       * elf32-d30v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
+       * elf32-dlx.c (elf32_dlx_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-fr30.c (fr30_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-frv.c (frv_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-gen.c (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-h8300.c (elf32_h8_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-hppa.c (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-i370.c (i370_elf_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-i386.c (elf_i386_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-i860.c (elf32_i860_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-i960.c (elf32_i960_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-ip2k.c (ip2k_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-iq2000.c (iq2000_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-m32c.c (m32c_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-m32r.c (bfd_elf32_bfd_reloc_name_lookup): New function.
+       * elf32-m68hc11.c (bfd_elf32_bfd_reloc_name_lookup): New function.
+       * elf32-m68hc12.c (bfd_elf32_bfd_reloc_name_lookup): New function.
+       * elf32-m68k.c (reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-m88k.c (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-mcore.c (mcore_elf_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-mep.c (mep_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
+       (mips_vxworks_bfd_reloc_name_lookup): Likewise.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-msp430.c (bfd_elf32_bfd_reloc_name_lookup): New function.
+       * elf32-mt.c (mt_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-openrisc.c (openrisc_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-or32.c (bfd_elf32_bfd_reloc_name_lookup): New function.
+       * elf32-pj.c (pj_elf_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-ppc.c (ppc_elf_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-s390.c (elf_s390_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-score.c (elf32_score_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-sh.c (sh_elf_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-sparc.c (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-spu.c (spu_elf_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-v850.c (v850_elf_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-vax.c (reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-xc16x.c (xc16x_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-xstormy16.c (xstormy16_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf32-xtensa.c (elf_xtensa_reloc_name_lookup): New function.
+       (bfd_elf32_bfd_reloc_name_lookup): Define.
+       * elf64-alpha.c (elf64_alpha_bfd_reloc_name_lookup): New function.
+       (bfd_elf64_bfd_reloc_name_lookup): Define.
+       * elf64-gen.c (bfd_elf64_bfd_reloc_name_lookup): Define.
+       * elf64-hppa.c (bfd_elf64_bfd_reloc_name_lookup): Define.
+       * elf64-mips.c (bfd_elf64_bfd_reloc_name_lookup): New function.
+       * elf64-mmix.c (bfd_elf64_bfd_reloc_name_lookup): New function.
+       * elf64-ppc.c (ppc64_elf_reloc_name_lookup): New function.
+       (bfd_elf64_bfd_reloc_name_lookup): Define.
+       * elf64-s390.c (elf_s390_reloc_name_lookup): New function.
+       (bfd_elf64_bfd_reloc_name_lookup): Define.
+       * elf64-sh64.c (sh_elf64_reloc_name_lookup): New function.
+       (bfd_elf64_bfd_reloc_name_lookup): Define.
+       * elf64-sparc.c (bfd_elf64_bfd_reloc_name_lookup): Define.
+       * elf64-x86-64.c (elf64_x86_64_reloc_name_lookup): New function.
+       (bfd_elf64_bfd_reloc_name_lookup): Define.
+       * elfn32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
+       * elfxx-ia64.c (elfNN_ia64_reloc_name_lookup): New function.
+       (bfd_elfNN_bfd_reloc_name_lookup): Define.
+       * elfxx-sparc.c (_bfd_sparc_elf_reloc_name_lookup): New function.
+       * elfxx-sparc.h (_bfd_sparc_elf_reloc_name_lookup): Declare.
+       * i386msdos.c (msdos_bfd_reloc_name_lookup): Define.
+       * i386os9k.c (aout_32_bfd_reloc_name_lookup): Define.
+       * ieee.c (ieee_bfd_reloc_name_lookup): Define.
+       * libaout.h (NAME (aout, reloc_name_lookup)): Declare.
+       * libbfd-in.h (_bfd_norelocs_bfd_reloc_name_lookup): Declare.
+       * mipsbsd.c (MY_bfd_reloc_name_lookup): Define.
+       (MY(reloc_type_lookup)): Rename from MY(reloc_howto_type_lookup).
+       (MY(reloc_name_lookup)): New function.
+       * nlm-target.h (nlm_bfd_reloc_name_lookup): Define.
+       * oasys.c (oasys_bfd_reloc_name_lookup): Define.
+       * pdp11.c (NAME (aout, reloc_name_lookup)): New function.
+       * pe-mips.c (coff_mips_reloc_name_lookup): New function.
+       (coff_bfd_reloc_name_lookup): Define.
+       * reloc.c (bfd_reloc_name_lookup): New function.
+       * riscix.c (riscix_reloc_name_lookup): New function.
+       (MY_bfd_reloc_name_lookup): Define.
+       * som.c (som_bfd_reloc_name_lookup): New function.
+       * targets.c (struct bfd_target): Add reloc_name_lookup.
+       (BFD_JUMP_TABLE_RELOCS): Add NAME##_bfd_reloc_name_lookup.
+       * versados.c (versados_bfd_reloc_name_lookup): Define.
+       * vms.c (vms_bfd_reloc_name_lookup): New function.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+
+2007-03-26  Thiemo Seufer  <ths@mips.com>
+
+       PR ld/4208
+       * elfxx-mips.c (mips_elf_next_relocation): Don't signal an error if no
+       matching relocation is found.
+       (_bfd_mips_elf_relocate_section): Only warn about missing relocations.
+
+2007-03-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * configure: Regenerated.
+
 2007-03-23  Joseph Myers  <joseph@codesourcery.com>
 
        * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
        * configure.in (REPORT_BUGS_TO): Do not use "URL:" prefix.
        * Makefile.in, configure, doc/Makefile.in: Regenerate.
 
-2003-03-22  H.J. Lu  <hongjiu.lu@intel.com>
+2007-03-22  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/4210
        * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the virtual
        * elf.c (assign_file_positions_for_load_sections): Check if
        all sections are in the segment.
 
-2003-03-20  H.J. Lu  <hongjiu.lu@intel.com>
+2007-03-20  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/4208
        * elfxx-mips.c (_bfd_mips_elf_relocate_section): Report missing
        specific conditions that need the program headers to be
        rewritten.
 
-2003-03-19  H.J. Lu  <hongjiu.lu@intel.com>
+2007-03-19  H.J. Lu  <hongjiu.lu@intel.com>
 
        * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Store Magic,
        MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
        AddressOfEntryPoint, BaseOfCode and BaseOfData from internal
        extra PE a.out header.
 
-2003-03-18  H.J. Lu  <hongjiu.lu@intel.com>
+2007-03-18  H.J. Lu  <hongjiu.lu@intel.com>
 
        * targets.c (_bfd_target_vector): Add bfd_efi_app_x86_64_vec
        only if BFD64 is defined.