bfd/
[binutils-gdb.git] / bfd / ChangeLog
index 8e0e011ef7bc417aab7a20ea46dc5e5c49dceba9..b2eff80b524f5d521fa46a355dfe2f7939b0d694 100644 (file)
-2007-02-05  Dave Brolley  <brolley@redhat.com>
+2007-04-10  Richard Henderson  <rth@redhat.com>
 
-       * elflink.h: Add support for Toshiba MeP.
-       * reloc.c: Likewise.
-       * Makefile.am:  Likewise.
-       * config.bfd: Likewise.
-       * configure.in: Likewise.
-       * archures.c: Likewise.
-       * targets.c: Likewise.
-       * elf.c: Likewise.
-       * mep-relocs.pl: New file.
-       * cpu-mep.c: New file.
-       * elf32-mep.c: New file.
+       * 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.
-       * po/POTFILES.in: Likewise.
        * 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: Regenerate.
+
+2007-03-23  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (spu_stub_name): Don't put input section in stub name.
+       Remove input_sec param.  Adjust all calls.
+       (write_one_stub): Adjust stub symbol.
+       (needs_ovl_stub): New function, extracted from..
+       (spu_elf_size_stubs): ..here.
+       (spu_elf_relocate_section): Use needs_ovl_stub.
+
+2007-03-22  Joseph Myers  <joseph@codesourcery.com>
+
+       * Makefile.am (bfdver.h): Only set VERSION_PACKAGE in bfdver.texi
+       if nonempty.
+       * configure.in (REPORT_BUGS_TO): Do not use "URL:" prefix.
+       * Makefile.in, configure, doc/Makefile.in: Regenerate.
+
+2007-03-22  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/4210
+       * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the virtual
+       address and virtual size of the last section for the image
+       size.
+
+2007-03-22  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/4007
+       * elf.c (assign_file_positions_for_load_sections): Check if
+       all sections are in the segment.
+
+2007-03-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/4208
+       * elfxx-mips.c (_bfd_mips_elf_relocate_section): Report missing
+       matching LO16 relocation for HI16 relocation.
+
+2007-03-20  Paul Brook  <paul@codesourcery.com>
+
+       * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
+       * bfd-in2.h: Regenerate.
+       * elf32-arm.c (elf32_arm_link_hash_table): Add pic_veneer.
+       (record_arm_to_thumb_glue): Use globals->pic_veneer.
+       (elf32_arm_create_thumb_stub): Ditto.
+       (bfd_elf32_arm_set_target_relocs): Set globals->pic_veneer.
+
+2007-03-18  Mark Shinwell  <shinwell@codesourcery.com>
+
+       * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add "bfd *"
+       argument and extra last argument.
+       * bfd-in2.h: Regenerate.
+       * elf32-arm.c (elf32_arm_obj_tdata): Add no_enum_size_warning
+       member.
+       (bfd_elf32_arm_set_target_relocs): Add "bfd *" argument and
+       extra last argument.  Set no_enum_size_warning appropriately.
+       (elf32_arm_merge_eabi_attributes): Improve enum sizes
+       diagnostic, suppressing it when no_enum_size_warning dictates.
+
+2007-03-20  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/3535
+       * elf.c (copy_private_bfd_data): Widen the scope of Solaris
+       specific conditions that need the program headers to be
+       rewritten.
+
+2007-03-19  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Store Magic,
+       MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
+       SizeOfInitializedData, SizeOfUninitializedData,
+       AddressOfEntryPoint, BaseOfCode and BaseOfData in internal
+       extra PE a.out header.
+       (IMAGE_NT_OPTIONAL_HDR_MAGIC): Defined as 0x10b if not defined.
+       (IMAGE_NT_OPTIONAL_HDR64_MAGIC): Defined as 0x20b if not
+       defined.
+       (IMAGE_NT_OPTIONAL_HDRROM_MAGIC): Defined as 0x107 if not
+       defined.
+       (_bfd_XX_print_private_bfd_data_common): Also print Magic,
+       MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
+       SizeOfInitializedData, SizeOfUninitializedData,
+       AddressOfEntryPoint, BaseOfCode and BaseOfData from internal
+       extra PE a.out header.
+
+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.
+
+2007-03-17  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (spu_elf_size_stubs): Always use an overlay stub
+       on setjmp calls.
+
+2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * doc/Makefile.in: Regenerated.
+
+2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * Makefile.am (bfdver.h): Substitute report_bugs_to.  Also
+       create doc/bfdver.texi.
+       * Makefile.in: Regenerated.
+
+       * configure.in (--with-bugurl): New option.
+       * configure: Regenerated.
+
+       * version.h (REPORT_BUGS_TO): New.
+
+2007-03-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/3826
+       * elf-bfd.h (elf_backend_data): Add elf_osabi.
+       (_bfd_elf_set_osabi): New.
+
+       * elf.c (_bfd_elf_set_osabi): New.
+
+       * elf32-hppa.c (elf32_hppa_post_process_headers): Removed.
+       (elf_backend_post_process_headers): Defined with
+       _bfd_elf_set_osabi.
+       (ELF_OSABI): Properly defined for each target.
+
+       * elf32-i370.c (i370_elf_post_process_headers): Removed.
+       (ELF_OSABI): Defined.
+       (elf_backend_post_process_headers): Defined with
+       _bfd_elf_set_osabi.
+
+       * elf32-i386.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
+       freebsd.
+       (elf_i386_post_process_headers): Set EI_OSABI with elf_osabi.
+
+       * elf32-msp430.c (elf32_msp430_post_process_headers): Removed.
+       (ELF_OSABI): Defined.
+       (elf_backend_post_process_headers): Defined with
+       _bfd_elf_set_osabi.
+
+       * elf64-alpha.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
+       freebsd.
+       (elf64_alpha_fbsd_post_process_headers): Set EI_OSABI with
+       elf_osabi.
+
+       * elf64-hppa.c (elf64_hppa_post_process_headers): Set EI_OSABI
+       with elf_osabi.
+       (ELF_OSABI): Properly defined for each target.
+       (elf_backend_post_process_headers): Defined with
+       _bfd_elf_set_osabi for Linux.
+
+       * elf64-sparc.c (elf64_sparc_fbsd_post_process_headers): Removed.
+       (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
+       (elf_backend_post_process_headers): Defined with
+       _bfd_elf_set_osabi.
+
+       * elf64-x86-64.c (elf64_x86_64_fbsd_post_process_headers): Removed.
+       (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
+       (elf_backend_post_process_headers): Defined with
+       _bfd_elf_set_osabi.
+
+       * elfcode.h (elf_object_p): Match the ELFOSABI_NONE ELF target
+       with any ELF target of the compatible machine for which we do not
+       have a specific backend.
+
+       * elfxx-ia64.c (elfNN_hpux_post_process_headers): Set EI_OSABI
+       with elf_osabi.
+
+       * elfxx-target.h (ELF_OSABI): Default to ELFOSABI_NONE.
+       (elfNN_bed): Initialize elf_osabi with ELF_OSABI.
+
+2007-03-08  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-v850.c (v850_elf_link_output_symbol_hook): Clean out
+       V850_OTHER_* bits.
+
+2007-03-08  Alan Modra  <amodra@bigpond.net.au>
+
+       * Makefile.am (BFD64_BACKENDS): Add efi-app-x86_64.lo.
+       (BFD64_BACKENDS_CFILES): Add efi-app-x86_64.c.
+       Run "make dep-am".
        * Makefile.in: Regenerate.
+       * po/SRC-POTFILES.in: Regenerate.
+
+2007-03-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config.bfd (x86_64-*-freebsd*): Add bfd_efi_app_x86_64_vec.
+       (x86_64-*-kfreebsd*-gnu): Likewise.
+       (x86_64-*-netbsd*): Likewise.
+       (x86_64-*-openbsd*): Likewise.
+       (x86_64-*-linux-*): Likewise.
+
+       * configure.in: Support bfd_efi_app_x86_64_vec.
+       * configure: Regenerated.
+
+       * efi-app-x86_64.c: New file.
+
+       * targets.c (bfd_efi_app_x86_64_vec): New.
+       (_bfd_target_vector): Add bfd_efi_app_x86_64_vec.
+
+2007-03-07  Kai Tietz   <kai.tietz@onevision.com>
+
+       * reloc.c (bfd_generic_get_relocated_section_contents): Remove
+       const for type reloc_howto_type.
+
+2007-03-07  Alan Modra  <amodra@bigpond.net.au>
+
+       PR 3958
+       * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): No error on relocatable link.
+       (elf_discarded_section): Move..
+       * bfd-in.h: ..to here.
+       * bfd-in2.h: Regenerate.
+       * elflink.c (elf_link_input_bfd): Don't zap relocs against symbols
+       from discarded sections before relocate_section has done its job.
+       * reloc.c (bfd_generic_get_relocated_section_contents): Handle
+       relocs against symbols from discarded sections.
+       * elf-hppa.h (elf_hppa_howto_table): Set size.  Set dst_mask on
+       SECREL32.
+       (elf_hppa_relocate_section): Handle relocatable link after setting
+       sec, sym, h etc. for final link.  Squash error messages for
+       relocatable link.  Clear section contents for relocs against
+       symbols in discarded sections, and zero reloc.  Remove existing
+       zero r_symndx code.
+       * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
+       * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
+       * elf32-arm.c (elf32_arm_relocate_section): Likewise.
+       * elf32-avr.c (elf32_avr_relocate_section): Likewise.
+       * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
+       (bfin_relocate_section): Likewise.
+       * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
+       * elf32-cris.c (cris_elf_relocate_section): Likewise.
+       * elf32-crx.c (elf32_crx_relocate_section): Likewise.
+       * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
+       * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
+       * elf32-frv.c (elf32_frv_relocate_section): Likewise.
+       * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
+       * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
+       * elf32-i370.c (i370_elf_relocate_section): Likewise.
+       * elf32-i386.c (elf_i386_relocate_section): Likewise.
+       * elf32-i860.c (elf32_i860_relocate_section): Likewise.
+       * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
+       * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
+       * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
+       * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
+       * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
+       * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
+       * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
+       * elf32-mep.c (mep_elf_relocate_section): Likewise.
+       * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
+       * elf32-mt.c (mt_elf_relocate_section): Likewise.
+       * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
+       * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
+       * elf32-s390.c (elf_s390_relocate_section): Likewise.
+       * elf32-score.c (_bfd_score_elf_relocate_section): Likewise.
+       * elf32-sh.c (sh_elf_relocate_section): Likewise.
+       * elf32-spu.c (spu_elf_relocate_section): Likewise.
+       * elf32-v850.c (v850_elf_relocate_section): Likewise.
+       * elf32-vax.c (elf_vax_relocate_section): Likewise.
+       * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
+       * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
+       * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
+       * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
+       (elf64_alpha_relocate_section): Likewise.
+       * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
+       * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
+       * elf64-s390.c (elf_s390_relocate_section): Likewise.
+       * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
+       * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
+       * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
+       * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
+       * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
+
+       * elf32-arm.c (elf32_arm_relocate_section): Always adjust section
+       symbols for relocatable link.  Don't use always-zero st_value.
+       (elf_backend_rela_normal): Don't define.
+       * elf32-bfin.c (bfinfdpic_relocate_section): Use
+       RELOC_FOR_GLOBAL_SYMBOL.
+       * elf32-frv.c (elf32_frv_relocate_section): Likewise.
+       * elf32-d10v.c (elf32_d10v_relocate_section): Combine SEC_MERGE
+       section symbol adjustments with same for relocatable link.
+       * elf32-i386.c (elf_i386_relocate_section): Likewise.
+       * elf32-m68hc1x.c (m68hc11_get_relocation_value): Move..
+       (elf32_m68hc11_check_relocs): ..to here.
+       * elf32-score.c (score_elf_final_link_relocate): Remove zero
+       r_symndx code.
+       * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
+
+2007-03-07  Alan Modra  <amodra@bigpond.net.au>
+
+       PR 4144
+       * elf.c (assign_file_positions_for_load_sections): Don't
+       adjust p_memsz for !SEC_LOAD section vma modulo page size.
+       Instead, use the same lma based adjustment for SEC_LOAD
+       sections.
+
+2007-03-01  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (analyze_relocations): Zero src_count if not relaxing.
+       (find_relaxable_sections): Do not increment src_count for unknown
+       opcodes.  Decode only once instead of calling is_l32r_relocation.
+       (compute_text_actions): Remove unused no_insn_move flag.  Assert that
+       src_next matches src_count in relax_info.
+
+2007-03-01  Joseph Myers  <joseph@codesourcery.com>
+
+       * Makefile.am (bfdver.h): Use "." not " " between version number
+       and date.
+       * Makefile.in: Regenerate.
+       * configure.in (PKGVERSION): Default to "(GNU Binutils) ".
        * configure: Regenerate.
 
-2007-02-05  Dave Brolley  <brolley@redhat.com>
+2007-02-28  Nathan Sidwell  <nathan@codesourcery.com>
 
-       * elflink.c (evaluate_complex_relocation_symbols): Check for
-       STT_SRELC for global symbols.
-       (perform_complex_relocations): Renamed to
-       perform_complex_relocation and now examines only one relocation.
-       (elf_link_input_bfd): Don't call perform_complex_relocations.
-       * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
-       * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
-       (OD,OS,OU): #undefs corrected to N, S and U repectively.
-       (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
-       (complex_reloc_installation_howto): Removed.
-       (mep_info_to_howto_rela): Remove special case for r_type==0xff.
-       (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
+       * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza.
 
-2007-02-05  Dave Brolley  <brolley@redhat.com>
+2007-02-27  Alan Modra  <amodra@bigpond.net.au>
 
-       * Contribute the following changes:
-       2004-07-23  Richard Sandiford  <rsandifo@redhat.com>
+       * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const.
+       * elf32-spu.c (ovl_mgr_pread): Add const to casts.
 
-       * elflink.c (perform_complex_relocation): Detect relocations against
-       undefined symbols.
+2007-02-23  Carlos O'Donell  <carlos@codesourcery.com>
 
-       2002-04-02  DJ Delorie  <dj@redhat.com>
+       * dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit
+       DWARF even with 64-bit addresses.
+       (_bfd_dwarf2_find_nearest_line): Likewise.
 
-       * elflink.h (resolve_symbol): Handle weak symbols.
+2007-02-23  Nick Clifton  <nickc@redhat.com>
 
-       2002-03-07  Graydon Hoare  <graydon@redhat.com>
+       PR binutils/3535
+       * elf.c (copy_private_bfd_data): Always rewrite the program
+       headers when a Solaris interpreter segment is involved.
 
-       * elflink.h (perform_complex_relocations): Minor debug message
-       touchup.
+2007-02-22  Paul Brook  <paul@codesourcery.com>
 
-       2002-01-23  Graydon Hoare  <graydon@redhat.com>
+       * elflink.c (gc_mark_hook_fn): Remove.
+       (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn.
+       (bfd_elf_gc_sections): Ditto.  Call gc_mark_extra_sections.
+       * elf-bfd.h (elf_gc_mark_hook_fn): Define.
+       (elf_backend_data): Add gc_mark_extra_sections.
+       * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default
+       definition.
+       (elfNN_bed): Add elf_backend_gc_mark_extra_sections.
+       * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function.
+       (elf_backend_gc_mark_extra_sections): Define.
 
-       * bfd-in2.h: Add signed RELC (SRELC) symbols.
-       * elf.c (swap_out_syms): Likewise.
-       * elfcode.h (elf_slurp_symbol_table): Likewise.
-       (elf_symbol_flags): Likewise.
-       * syms.c: Likewise.
-       * elflink.h (eval_symbol): Introduce signed RELC evaluation.
-       (evaluate_complex_relocation_symbols): Likewise.
-       (perform_complex_relocations): Remove sign-extension logic,
-       which was broken anyways.
+2007-02-21  Nick Clifton  <nickc@redhat.com>
 
-       2002-01-15  Graydon Hoare  <graydon@redhat.com>
+       * elf.c (_bfd_elf_map_sections_to_segments): If the
+       override_segment_assignment callback is defined then call it.
 
-       * elflink.h (decode_complex_addend): Add oplen, signed_p, trunc_p
-       params.
-       (perform_complex_relocations): Call decode with new args,
-       Sign extend leftmost signed fields, delegate overflow check to
-       bfd_check_overflow in reloc.c, enhance overflow error messages.
+2007-02-21  Alan Modra  <amodra@bigpond.net.au>
 
-       2002-01-08  Graydon Hoare  <graydon@redhat.com>
+       * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
 
-       * elflink.h (resolve_symbol): Fix symbol -> section relationship.
-       (resolve_symbol): Remove unused parameter.
-       (eval_symbol): Remove unused arg from resolve_symbol call.
+2007-02-19  Thiemo Seufer  <ths@mips.com>
 
-       2002-01-01  Graydon Hoare  <graydon@redhat.com>
+       * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
+       translation marker from untranslatable strings.
 
-       * elflink.h (perform_complex_relocations): Add overflow
-       checking for RELC fragments.
+2007-02-19  Alan Modra  <amodra@bigpond.net.au>
 
-       2001-12-15  Nick Clifton  <nickc@cambridge.redhat.com>
+       * elf-bfd.h (struct elf_backend_data): Add default_execstack.
+       * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
+       * elfxx-target.h (elf_backend_default_execstack): Define to 1.
+       (elfNN_bed): Init new field.
+       * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
 
-       * elflink.h (evaluate_complex_relocation_symbols): Formatting
-       tidy ups.  Process all symbols, even if an error is
-       encountered.
+2007-02-17  Mark Mitchell  <mark@codesourcery.com>
+            Nathan Sidwell  <nathan@codesourcery.com>
+            Vladimir Prus  <vladimir@codesourcery.com
+            Joseph Myers  <joseph@codesourcery.com>
 
-       2001-12-10  Graydon Hoare  <graydon@redhat.com>
+       * configure.in (--with-pkgversion): New option.
+       * configure: Regenerate.
+       * Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
+       * Makefile.in: Regenerate.
+       * version.h (BFD_VERSION_STRING): Define using
+       @bfd_version_package@.
 
-       * elflink.h (evaluate_complex_relocation_symbols): Resolve
-       global RELC symbols using separate logic from local symbols.
+2007-02-16  Carlos O'Donell  <carlos@codesourcery.com>
 
-       2001-12-10  Nick Clifton  <nickc@cambridge.redhat.com>
+       * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
+       Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
+       and EF_MIPS_UCODE.
 
-       Various formatting tidy ups and compile time warning removals,
-       plus:
+2007-02-15  Alan Modra  <amodra@bigpond.net.au>
 
-       * elflink.h (eval_symbol): Set bfd_error for failure returns.
-       (evaluate_complex_relocation_symbols): Only evaluate local
-       symbols.
+       * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
+       declare.
+       (_bfd_norelocs_canonicalize_reloc): Likewise.
+       * libbfd.h: Regenerate.
+       * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
+       (_bfd_norelocs_canonicalize_reloc): Likewise.
+       * binary.c (binary_bfd_reloc_type_lookup): Don't define.
+       (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
+       (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
+       * ihex.c: Similarly.
+       * mach-o-target.c: Similarly.
+       * mach-o.c: Similarly.
+       * mmo.c: Similarly.
+       * pef.c: Similarly.
+       * ppcboot.c: Similarly.
+       * srec.c: Similarly.
+       * xsym.c: Similarly.
 
-       2001-11-24  Graydon Hoare  <graydon@redhat.com>
+2007-02-14  H.J. Lu  <hongjiu.lu@intel.com>
 
-       * elflink.h.c (resolve_symbol): Skip non-local syms in
-       local lookup loop; get section offset from section
-       symbol occurs in (rather than reloc section); handle
-       common symbols.
+       PR ld/3953
+       * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
+       when adding default symbol.
 
-       2001-11-24  Graydon Hoare  <graydon@redhat.com>
+2007-02-13  Alan Modra  <amodra@bigpond.net.au>
 
-       * elflink.h.c (resolve_symbol): Use
-       bfd_elf_string_from_elf_section to look up local symbols in
-       current bfd.
-       (eval_symbol): Add input_bfd parameter for resolve_symbol's
-       use.
-       (evaluate_complex_relocation_symbols): Pass parameter.
-       (resolve_section) Fix silly typo.
+       * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
+       for branch lookup table.
 
-       2001-10-16  Jeff Holcomb  <jeffh@redhat.com>
+2007-02-12  Alan Modra  <amodra@bigpond.net.au>
 
-       * elflink.h (eval_symbol): Buffer size needs to be an integer for
-       Solaris cc.
+       * elf64-ppc.c (create_linkage_sections): Don't create
+       .rela.rodata.brlt for --emit-relocs.
+       (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
+       (ppc_size_one_stub): Count them.  Simplify test of stub type
+       when counting stub relocs.  Set SEC_RELOC too.
+       (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
+       (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
 
-       2001-11-15  graydon hoare  <graydon@redhat.com>
+2007-02-12  Alan Modra  <amodra@bigpond.net.au>
 
-       * elf32-mep.c (mep_info_to_howto_rela): Add complex reloc
-       howto.
-       * elflink.h (resolve_section): Add support for pseudo-sections
-       in complex symbols.
-       (evaluate_complex_relocation_symbols): Permit evaluating RELC
-       symbols on non-RELC relocs. They are distinct issues.
+       * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
+       with a zero symbol index.
 
-       2001-10-15  graydon hoare  <graydon@redhat.com>
+2007-02-12  Alan Modra  <amodra@bigpond.net.au>
 
-       * reloc.c (bfd_reloc_code_type): Define BFD_RELOC_RELC,
-       in the _correct_ place.
+       * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
 
-       2001-10-11  graydon hoare  <graydon@redhat.com>
+2007-02-05  Dave Brolley  <brolley@redhat.com>
+            Stan Cox  <scox@redhat.com>
 
-       * elflink.h (eval_symbol): Fix strtol calls with undefined
-       behavior.
+       PR ld/3972
+       * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
 
-       2001-10-03  graydon hoare  <graydon@redhat.com>
+2007-02-05  Dave Brolley  <brolley@redhat.com>
+           Richard Sandiford  <rsandifo@redhat.com>
+           Stan Cox  <scox@redhat.com>
+           Nick Clifton  <nickc@redhat.com>
+           DJ Delorie  <dj@redhat.com>
+           Frank Ch. Eigler  <fche@redhat.com>
+           Ben Elliston  <bje@redhat.com>
+           Richard Henderson  <rth@redhat.com>
+
+       * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
+       (ALL_MACHINES_CFILES): Add CPU_MEP.c.
+       (BFD32_BACKENDS): Add elf32-mep.lo.
+       (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
+       (cpu-mep.lo,elf32-mep.lo): New targets.
+       * archures.c (bfd_arch_mep): New enumerator.
+       (bfd_mach_mep, bfd_mach_mep_h1): New macros.
+       (bfd_mep_arch): New external variable.
+       (bfd_archures_list): Add bfd_mep_arch.
+       * config.bfd: Support mep-*-elf.
+       * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
+       * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
+       * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
+       declarations.
+       (_bfd_target_vector): Add bfd_elf32_mep_vec and
+       bfd_elf32_mep_little_vec.
+       * mep-relocs.pl: New file.
+       * cpu-mep.c: New file.
+       * elf32-mep.c: New file.
+       * bfd-in2.h: Regenerate.
+       * po/POTFILES.in: Regenerate.
+       * libbfd.h: Regenerate.
+       * Makefile.in: Regenerate.
+       * configure: Regenerate.
 
-       * elflink.h (set_symbol_value): New function for relc.
+2007-02-05  Dave Brolley  <brolley@redhat.com>
+
+       * elflink.c (evaluate_complex_relocation_symbols): Check for
+       STT_SRELC for global symbols.
+       (perform_complex_relocations): Renamed to
+       perform_complex_relocation and now examines only one relocation.
+       (elf_link_input_bfd): Don't call perform_complex_relocations.
+       * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
+       * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
+       (OD,OS,OU): #undefs corrected to N, S and U repectively.
+       (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
+       (complex_reloc_installation_howto): Removed.
+       (mep_info_to_howto_rela): Remove special case for r_type==0xff.
+       (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
+
+2007-02-05  Dave Brolley  <brolley@redhat.com>
+           Richard Sandiford  <rsandifo@redhat.com>
+           DJ Delorie  <dj@redhat.com>
+           Graydon Hoare  <graydon@redhat.com>
+           Nick Clifton  <nickc@cambridge.redhat.com>
+           Jeff Holcomb  <jeffh@redhat.com>
+           Frank Ch. Eigler  <fche@redhat.com>
+
+       * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
+       * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
+       * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
+       * elflink.c (set_symbolValue): New static function.
        (resolve_symbol): Likewise.
        (resolve_section): Likewise.
        (undefined_reference): Likewise.
        (evaluate_complex_relocation_symbols): Likewise.
        (put_value): Likewise.
        (get_value): Likewise.
-       (decode_complex_addend): Likewise.
-       (perform_complex_relocations): Likewise.
-       (elf_link_input_bfd): Insert hook into
-       evaluate_complex_relocation_symbols.
-       (elf_link_input_bfd): Insert hook into
-       perform_complex_relocations.
-
-       * bfd-in2.h: Define BFD_RELOC_RELC, BSF_RELC.
-
-       * elf.c (swap_out_syms): Add BSF_RELC / STT_RELC support.
-
-       * elfcode.h (elf_slurp_symbol_table): Likewise.
-       (elf_symbol_flags): Likewise.
-
-       * libbfd.h: Add "BFD_RELOC_RELC" to bfd_reloc_code_real_names
-       table.
-
-       2001-06-20  Frank Ch. Eigler  <fche@redhat.com>
-
-       * syms.c (BSF_RELC): New symbol flag.
-       * elf.c (swap_out_syms): Map BSF_RELC -> STT_RELC.
-       * elfcode.h (elf_slurp_symbol_table): Map STT_RELC -> BSF_RELC.
-       (elf_symbol_flags): Display BSF_RELC as "relc".
-       * bfd-in2.h: Regenerated.
+       (decode_complex_addend):
+       (bfd_elf_perform_complex_relocation): New function.
+       (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
+       * reloc.c (BFD_RELOC_RELC): New relocation number.
+       * syms.c (BSF_RELC,BSF_SRELC): New macros.
 
 2007-02-05  Bob Wilson  <bob.wilson@acm.org>