Add elf_x86_64_relocs_compatible.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 5604a3d514a8ed2d3d3a82004920e2cd28917dca..fc4e5a39a7b1012cd763a934e842c5d01f92e079 100644 (file)
@@ -1,3 +1,200 @@
+2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf64-x86-64.c (elf_x86_64_relocs_compatible): New.
+       (elf_backend_relocs_compatible): Defined to
+       elf_x86_64_relocs_compatible.
+
+2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * archures.c (bfd_mach_x64_32): New.
+       (bfd_mach_x64_32_intel_syntax): Likewise.
+       * bfd-in2.h: Regenerated.
+
+       * config.bfd (targ64_selvecs): Add bfd_elf32_x86_64_vec for
+       i[3-7]86-*-linux-*.
+       (targ_selvecs): Add bfd_elf32_x86_64_vec for x86_64-*-linux-*.
+
+       * configure.in: Support bfd_elf32_x86_64_vec.
+       * configure: Regenerated.
+
+       * cpu-i386.c (bfd_x64_32_arch_intel_syntax): New.
+       (bfd_x64_32_arch): Likewise.
+
+       * elf-bfd.h (elf_append_rela): New prototype.
+       (elf_append_rel): Likewise.
+       (elf64_r_info): Likewise.
+       (elf32_r_info): Likewise.
+       (elf64_r_sym): Likewise.
+       (elf32_r_sym): Likewise.
+
+       * elf64-x86-64.c (ABI_64_P): New.
+       (elf_x86_64_info_to_howto): Replace ELF64_R_TYPE with
+       ELF32_R_TYPE.  Replace ELF64_ST_TYPE with ELF_ST_TYPE.
+       (elf_x86_64_check_tls_transition):Likewise.
+       (elf_x86_64_check_relocs): Likewise.
+       (elf_x86_64_gc_mark_hook):Likewise.
+       (elf_x86_64_gc_sweep_hook): Likewise.
+       (elf_x86_64_relocate_section): Likewise.
+       (elf_x86_64_reloc_type_class): Likewise.
+       (ELF_DYNAMIC_INTERPRETER): Renamed to ...
+       (ELF64_DYNAMIC_INTERPRETER): This.
+       (ELF32_DYNAMIC_INTERPRETER): New.
+       (elf_x86_64_link_hash_table): Add r_info, r_sym, swap_reloca_out,
+       dynamic_interpreter and dynamic_interpreter_size.
+       (elf_x86_64_get_local_sym_hash): Replace ELF64_R_SYM with
+       htab->r_sym.  Replace ELF64_R_INFO with htab->r_info.
+       (elf_x86_64_get_local_sym_hash): Likewise.
+       (elf_x86_64_check_tls_transition):Likewise.
+       (elf_x86_64_check_relocs): Likewise.
+       (elf_x86_64_gc_mark_hook):Likewise.
+       (elf_x86_64_gc_sweep_hook): Likewise.
+       (elf_x86_64_relocate_section): Likewise.
+       (elf_x86_64_finish_dynamic_symbol): Likewise.
+       (elf_x86_64_finish_local_dynamic_symbol): Likewise.
+       (elf_x86_64_link_hash_table_create): Initialize r_info, r_sym,
+       swap_reloca_out, dynamic_interpreter and dynamic_interpreter_size.
+       (elf_x86_64_check_relocs): Check ABI_64_P when requesting for
+       PIC.
+       (elf_x86_64_relocate_section): Likewise.
+       (elf64_x86_64_adjust_dynamic_symbol): Replace sizeof
+       (Elf64_External_Rela) with bed->s->sizeof_rela.
+       (elf64_x86_64_allocate_dynrelocs): Likewise.
+       (elf64_x86_64_size_dynamic_sections): Likewise.
+       (elf64_x86_64_finish_dynamic_symbol): Likewise.
+       (elf64_x86_64_append_rela): Removed.
+       (elf32_x86_64_elf_object_p): New.
+       Add bfd_elf32_x86_64_vec.
+
+       * elf64-x86-64.c (elf64_x86_64_xxx): Renamed to ...
+       (elf_x86_64_xxx): This.
+
+       * elflink.c (bfd_elf_final_link): Check ELF file class on error.
+       (elf_append_rela): New.
+       (elf_append_rel): Likewise.
+       (elf64_r_info): Likewise.
+       (elf32_r_info): Likewise.
+       (elf64_r_sym): Likewise.
+       (elf32_r_sym): Likewise.
+
+       * targets.c (bfd_elf32_x86_64_vec): New.
+       (_bfd_target_vector): Add bfd_elf32_x86_64_vec.
+
+2010-12-24  Alan Modra  <amodra@gmail.com>
+
+       * compress.c (decompress_contents): Style.
+       (bfd_get_full_section_contents): Do not decompress directly into
+       caller buffer or directly return cached section contents.
+       Check malloc return for compressed_buffer.
+
+2010-12-21  Kai Tietz  <kai.tietz@onevision.com>
+
+       * peXXigen.c (_bfd_XXi_final_link_postscript): Use
+       bfd_get_symbol_leading_char to determine "_tls_used" name.
+
+2010-12-21  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * peXXigen.c (_bfd_XXi_final_link_postscript): Use correct size
+       for windows 64-bit TLS table size.
+
+2010-12-16  DJ Delorie  <dj@redhat.com>
+
+       * reloc.c (BFD_RELOC_RX_ABS16_REV): Add.
+       (BFD_RELOC_RX_ABS32_REV): Add.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+       * elf32-rx.c (rx_reloc_map): Add them.
+
+2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf.c (_bfd_elf_new_section_hook): Special handling for
+       .init_array/.fini_array output sections.
+
+2010-12-13  Alan Modra  <amodra@gmail.com>
+
+       * aoutx.h (aout_link_check_ar_symbols): Formatting.
+       * cofflink.c (coff_link_check_ar_symbols): Likewise.
+       * elflink.c (elf_link_add_archive_symbols): Likewise.
+       * pdp11.c (aout_link_check_ar_symbols): Likewise.
+       * xcofflink.c (xcoff_link_check_dynamic_ar_symbols,
+       xcoff_link_check_dynamic_ar_symbols): Likewise.
+
+       * aoutx.h (aout_link_check_archive_element): Simplify code dealing
+       with add_archive_element substitute BFD.
+       * cofflink.c (coff_link_check_archive_element): Likewise.
+       * ecoff.c (ecoff_link_check_archive_element): Likewise.
+       (ecoff_link_add_archive_symbols): Likewise.
+       * linker.c (generic_link_check_archive_element): Likewise.
+       * pdp11.c (aout_link_check_archive_element): Likewise.
+       * vms-alpha.c (alpha_vms_link_add_archive_symbols): Likewise.
+       * xcofflink.c (xcoff_link_check_archive_element): Likewise.
+
+       * aoutx.h (aout_link_check_archive_element): Free symbols from old
+       bfd if !keep_memory.
+       * cofflink.c (coff_link_check_archive_element): Likewise.
+       * pdp11.c (aout_link_check_archive_element): Likewise.
+       * xcofflink.c (xcoff_link_check_archive_element): Likewise.
+
+2010-12-13  Alan Modra  <amodra@gmail.com>
+
+       * plugin.c (bfd_plugin_mkobject): Delete.
+       (plugin_vec): Use bfd_false instead.
+
+2010-12-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elflink.c (elf_link_add_archive_symbols): Remove subsbfd.
+
+2010-12-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf.c (special_sections_g): Add ".gnu.lto_".
+
+2010-12-10  Alan Modra  <amodra@gmail.com>
+
+       * config.bfd: Configure rs6000-*-aix* as for powerpc-*-aix*.
+       Add aix5coff64_vec to powerpc ELF entries.
+
+2010-12-09  Mike Frysinger  <vapier@gentoo.org>
+
+       * .gitignore: New file.
+
+2010-12-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
+
+       PR ld/12288
+       * plugin.c (message): Add putchar for the trailing `\n'.
+
+2010-12-04  Mike Frysinger  <vapier@gentoo.org>
+
+       * Makefile.am (!INSTALL_LIBBFD/bfdinclude_HEADERS): Set to nothing.
+       (PLUGINS/bfdinclude_HEADERS): Append plugin-api.h.
+       * Makefile.in: Regenerated.
+
+2010-12-04  Alan Modra  <amodra@gmail.com>
+
+       PR ld/12277
+       * elflink.c (elf_link_output_extsym): Set bfd_error on symbol
+       and section errors.  Allow better translation of error messages.
+
+2010-12-02  Richard Sandiford  <richard.sandiford@linaro.org>
+
+       * elf32-arm.c (elf32_arm_link_hash_table): Remove sgot, sgotplt,
+       srelgot, splt, srelplt.
+       (create_got_section, elf32_arm_link_hash_table_create): Don't set them.
+       (elf32_arm_create_dynamic_sections): Likewise.  Use htab->root
+       fields instead.
+       (arm_type_of_stub): Use the root fields instead of the removed ones.
+       (cortex_a8_erratum_scan, elf32_arm_size_stubs): Likewise.
+       (bfd_elf32_arm_process_before_allocation): Likewise.
+       (elf32_arm_check_relocs, allocate_dynrelocs): Likewise.
+       (elf32_arm_size_dynamic_sections): Likewise.
+       (elf32_arm_output_arch_local_syms): Likewise.
+       (elf32_arm_final_link_relocate): Set sgot, splt and srelgot from the
+       htab fields instead of looking them up by name.  Consistently use
+       these local variables instead of htab fields.
+       (elf32_arm_finish_dynamic_symbol): Likewise sgot, splt and srel.
+       Use srelbss instead of looking it up by name.
+       (elf32_arm_finish_dynamic_sections): Use sgotplt, splt and srelplt
+       instead of looking up the symbols by name.  Use the root fields
+       instead of the removed ones.
+
 2010-12-02  Richard Sandiford  <richard.sandiford@linaro.org>
 
        * elf32-arm.c (elf32_arm_relocs_copied): Delete.
This page took 0.024856 seconds and 4 git commands to generate.