2003-03-23 H.J. Lu <hongjiu.lu@intel.com>
[binutils-gdb.git] / bfd / ChangeLog
index a59681dc358a7a3b22614dcc791876cf64e0e98a..3ab392582a7f1d58bcc712c1122dc668ca38c574 100644 (file)
@@ -1,3 +1,308 @@
+2003-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.
+
+2003-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.
+
+2003-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.
+
+2003-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.
+
+2003-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