[AArch64] Gas add BFD_RELOC_AARCH64_LD64_GOTOFF_LO15 support
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 804c683b3cd8d88c6eff732599d90c40674a023e..ef760d1384759dd285c7346f3bba0dbe520b9dfc 100644 (file)
@@ -1,3 +1,342 @@
+2015-06-15  Renlin Li  <renlin.li@arm.com>
+
+       * reloc.c (BFD_RELOC_AARCH64_LD64_GOTOFF_LO15): New entry.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+       * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
+       BFD_RELOC_AARCH64_LD64_GOTOFF_LO15.
+
+2015-06-15  Alan Modra  <amodra@gmail.com>
+
+       * cofflink.c (_bfd_coff_generic_relocate_section): Revert
+       2014-03-26 change.  Call _bfd_clear_contents for relocs against
+       local and global symbols defined in discarded input sections.
+
+2015-06-05  Nick Clifton  <nickc@redhat.com>
+
+       * elf32-msp430.c (rl78_sym_diff_handler): New function.
+       (msp430_howto_table): Use the new function for the SYM_DIFF reloc.
+       (msp430x_howto_table): Likewise.
+
+2015-06-05  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc_elf_relocate_section): Move dynamic text
+       relocs with insns moved by --ppc476-workaround.  Correct
+       output of REL16 relocs.
+
+2015-06-01  Jiong Wang  <jiong.wang@arm.com>
+
+       * elfnn-aarch64.c (aarch64_reloc_got_type): Support
+       BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14.
+       (elfNN_aarch64_final_link_relocate): Ditto.
+       (elfNN_aarch64_gc_swap_hook): Ditto.
+       (elfNN_aarch64_check_relocs): Ditto.
+       * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto.
+
+2015-06-01  Jiong Wang  <jiong.wang@arm.com>
+
+       * reloc.c (BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14): New entry.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+       * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
+       BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14.
+
+2015-06-01  Jiong Wang  <jiong.wang@arm.com>
+
+       * elfnn-aarch64.c (elfNN_aarch64_howto_table): Set overflow type to
+       complain_overflow_unsigned for BFD_RELOC_AARCH64_TLSLE_ADD_LO12.
+       * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Don't use
+       PGOFF for BFD_RELOC_AARCH64_TLSLE_ADD_LO12.
+
+2015-06-01  Jiong Wang  <jiong.wang@arm.com>
+
+       * elfnn-aarch64.c (aarch64_reloc_got_type): Support
+       BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15.
+       (elfNN_aarch64_final_link_relocate): Ditto.
+       (elfNN_aarch64_gc_swap_hook): Ditto.
+       (elfNN_aarch64_check_relocs): Ditto.
+       * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto.
+
+2015-06-01  Jiong Wang  <jiong.wang@arm.com>
+
+       * reloc.c (BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15): New entry.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+       * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
+       BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15.
+
+2015-05-28  Catherine Moore  <clm@codesourcery.com>
+           Bernd Schmidt <bernds@codesourcery.com>
+           Paul Brook <paul@codesourcery.com>
+
+       bfd/
+       * bfd-in2.h: Regenerated.
+       * elf-bfd.h (DWARF2_EH_HDR, COMPACT_EH_HDR): Define.
+       (COMPACT_EH_CANT_UNWIND_OPCODE): Define.
+       (dwarf_eh_frame_hdr_info): Move dwarf-specific fields from
+       eh_frame_hdr_info.
+       (compact_eh_frame_hdr_info): Declare.
+       (eh_frame_hdr_info):  Redeclare with union for dwarf-specific
+       fields and compact-eh fields.
+       (elf_backend_data): Add cant_unwind_opcode and compact_eh_encoding.
+       (bfd_elf_section_data): Add eh_frame_entry_field.
+       (elf_section_eh_frame_entry): Define.
+       (bfd_elf_parse_eh_frame_entries): Declare.
+       (_bfd_elf_parse_eh_frame_entry): Declare.
+       (_bfd_elf_end_eh_frame_parsing): Declare.
+       (_bfd_elf_write_section_eh_frame_entry): Declare.
+       (_bfd_elf_eh_frame_entry_present): Declare.
+       (_bfd_elf_section_for_symbol): Declare.
+       * elf-eh-frame.c (bfd_elf_discard_eh_frame_entry): New function.
+       (bfd_elf_record_eh_frame_entry): New function.
+       (_bfd_elf_parse_eh_frame_entry): New function.
+       (_bfd_elf_parse_eh_frame): Update hdr_info field references.
+       (cmp_eh_frame_hdr): New function.
+       (add_eh_frame_hdr_terminator): New function.
+       (_bfd_elf_end_eh_frame_parsing): New function.
+       (find_merged_cie): Update hdr_info field references.
+       (_bfd_elf_discard_section_eh_frame): Likewise.
+       (_bfd_elf_discard_section_eh_frame_hdr): Add Compact EH support.
+       (_bfd_elf_eh_frame_entry_present): New function.
+       (_bfd_elf_maybe_strip_eh_frame_hdr): Add Compact EH support.
+       (_bfd_elf_write_section_eh_frame_entry): New function.
+       (_bfd_elf_write_section_eh_frame): Update hdr_info field references.
+       (_bfd_elf_fixup_eh_frame_hdr): New function.
+       (write_compact_eh_frame_hdr): New function.
+       (write_dwarf_eh_frame_hdr): New function.
+       (_bfd_elf_write_section_eh_frame_hdr): Add Compact EH support.
+       * elflink.c (_bfd_elf_section_for_symbol): New function.
+       (elf_section_ignore_discarded_relocs): Add Compact EH support.
+       (elf_link_input_bfd): Likewise.
+       (bfd_elf_final_link): Likewise.
+       (_bfd_elf_gc_mark): Likewise.
+       (bfd_elf_parse_eh_frame_entries): New function.
+       (bfd_elf_gc_sections): Add Compact EH support.
+       (bfd_elf_discard_info): Likewise.
+       * elfxx-mips.c: Include dwarf2.h.
+       (_bfd_mips_elf_compact_eh_encoding): New function.
+       (_bfd_mips_elf_cant_unwind_opcode): New function.
+       * elfxx-mips.h (_bfd_mips_elf_compact_eh_encoding): Declare.
+       (_bfd_mips_elf_cant_unwind_opcode): Declare.
+       (elf_backend_compact_eh_encoding): Define.
+       (elf_backend_cant_unwind_opcode): Define.
+       * elfxx-target.h (elf_backend_compact_eh_encoding): Provide default.
+       (elf_backend_cant_unwind_opcode): Provide default.
+       (elf_backend_data elfNN_bed): Add elf_backend_compact_eh_encoding and
+       elf_backend_cant_unwind_opcode.
+       * section.c (SEC_INFO_TYPE_EH_FRAME_ENTRY): Add definition.
+
+2015-05-27  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/18458
+       * elf32-i386.c (elf_i386_check_relocs): Create .plt.got section
+       for now binding only if pointer equality isn't needed.
+       (elf_i386_allocate_dynrelocs): Use .plt.got section for now
+       binding only if pointer equality isn't needed.
+       * elf64-x86-64.c (elf_x86_64_check_relocs): Create .plt.got
+       section for now binding only if pointer equality isn't needed.
+       (elf_x86_64_allocate_dynrelocs): Use .plt.got section for now
+       binding only if pointer equality isn't needed.
+
+2015-05-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/18437
+       * elf32-i386.c (elf_i386_get_plt_sym_val): Skip extra relocations
+       in .rel.plt/.rela.plt.
+       * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
+
+2015-05-19  Jiong Wang  <jiong.wang@arm.com>
+
+       * elfnn-aarch64.c (aarch64_tls_transition_without_check): Sort
+       relocation case labels alphabetically.
+       (elfNN_aarch64_final_link_relocate): Ditto.
+       (elfNN_aarch64_tls_relax): Ditto.
+       (elfNN_aarch64_relocate_section): Ditto.
+       (elfNN_aarch64_gc_sweep_hook): Ditto.
+       (elfNN_aarch64_check_relocs): Ditto.
+       * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto.
+       (_bfd_aarch64_elf_resolve_relocation): Ditto.
+
+2015-05-18  Jiong Wang  <jiong.wang@arm.com>
+
+       * elfnn-aarch64.c (elfNN_aarch64_adjust_dynamic_symbol): Rewrite
+       comments.
+
+2015-05-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf32-i386.c (elf_i386_check_relocs): Create .plt.got section
+       for now binding.
+       (elf_i386_allocate_dynrelocs): Use .plt.got section for now
+       binding.
+       * elf64-x86-64.c (elf_x86_64_check_relocs): Create .plt.got
+       section for now binding.
+       (elf_x86_64_allocate_dynrelocs): Use .plt.got section for now
+       binding.
+
+2015-05-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * bfd.c (bfd_update_compression_header): Also write the zlib
+       header if the SHF_COMPRESSED bit cleared..
+       (bfd_check_compression_header): Return the uncompressed size.
+       * compress.c (decompress_contents): Don't skip the zlib header.
+       (bfd_compress_section_contents): Properly handle ELFCOMPRESS_ZLIB,
+       which doesn't have the zlib header.
+       (bfd_init_section_decompress_status): Likewise.
+       (bfd_get_full_section_contents): Updated.
+       (bfd_is_section_compressed): Likewise.
+       (bfd_is_section_compressed_with_header): Return the uncompressed
+       size.
+       * elf.c (_bfd_elf_make_section_from_shdr): Updated.
+       * bfd-in2.h: Regenerated.
+
+2015-05-14  Jiong Wang  <jiong.wang@arm.com>
+
+       * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Remove overflow
+       check restrictions.
+
+2015-05-14  Max Filippov  <jcmvbkbc@gmail.com>
+
+       * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Treat PLT reference
+       as GOT reference when plt.refcount is not positive.
+
+2015-05-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate space
+       for the first .plt entry only if needed.
+       * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
+
+2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * Makefile.am (ALL_MACHINES): Add cpu-iamcu.lo.
+       (ALL_MACHINES_CFILES): Likewise.
+       * archures.c (bfd_mach_iamcu): New.
+       (bfd_mach_i386_iamcu): Likewise.
+       (bfd_mach_i386_iamcu_intel_syntax): Likewise.
+       (bfd_iamcu_arch): Likewise.
+       (bfd_archures_list): Add &bfd_iamcu_arch.
+       * config.bfd (targ_selvecs): Add iamcu_elf32_vec to
+       i386_elf32_vec.
+       (targ_archs): Add bfd_iamcu_arch if needed.
+       * configure.ac: Support iamcu_elf32_vec.
+       * cpu-iamcu.c: New file.
+       * elf32-i386.c (elf32_iamcu_elf_object_p): New function.
+       Add support for iamcu_elf32_vec and elf32_iamcu_bed.
+       * targets.c (iamcu_elf32_vec): New.
+       (_bfd_target_vector): Add iamcu_elf32_vec.
+       * Makefile.in: Regenerated.
+       * bfd-in2.h: Likewise.
+       * configure: Likewise.
+
+2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elfcode.h (elf_object_p): Replace EM_486 with EM_IAMCU.
+
+2015-05-10  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf32-i386.c (elf_i386_convert_mov_to_lea): Replace input_bfd
+       and output_bfd with abfd.
+       * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
+
+2015-05-06  Toni Spets  <toni.spets@iki.fi>
+
+       PR ld/18372
+       * peXXigen.c (rsrc_process_section): Skip discarded resource
+       sections.
+
+2015-05-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config.bfd: Support i[3-7]86-*-elf*.
+
+2015-04-30  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf32-i386.c (elf_backend_post_process_headers): Undef for
+       Solaris 2.
+
+2015-04-30  Nick Clifton  <nickc@redhat.com>
+
+       PR 18317
+       * elf32-mep.c (MEPREL): Use bfd_elf_generic_reloc instead of
+       mep_reloc.
+       (mep_reloc): Delete unused function.
+
+2015-04-29  Nick Clifton  <nickc@redhat.com>
+
+       PR 17099
+       * coff-i386.c (coff_i386_rtype_to_howto): Allow absolute PCRLONG
+       relocs.
+
+2015-04-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
+
+       * elf-s390-common.c (elf_s390_merge_obj_attributes): New function.
+       * elf32-s390.c (elf32_s390_merge_private_bfd_data): Call
+       elf_s390_merge_obj_attributes.
+       * elf64-s390.c (elf64_s390_merge_private_bfd_data): New function.
+
+2015-04-24  Jiong Wang  <jiong.wang@arm.com>
+
+       PR ld/18270
+       * elfnn-aarch64.c (elfNN_aarch64_size_dynamic): Count local symbol for
+       GOT_NORMAL for both sgot/srelgot section.
+       (elfNN_aarch64_final_link_relocate): Relocate against GOT entry address
+       and generate necessary runtime relocation for GOT entry.
+
+2015-04-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/18209
+       * archive.c (_bfd_get_elt_at_filepos): Copy is_linker_input.
+
+2015-04-24  Jiong Wang  <jiong.wang@arm.com>
+
+       * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Reject
+       PC-relative relocation for external symbol.
+
+2015-04-24  Nick Clifton  <nickc@redhat.com>
+
+       PR 18313
+       * compress.c (decompress_contents): Zero initialse the z_stream
+       structure.
+
+2015-04-24  Nick Clifton  <nickc@redhat.com>
+
+       * elf.c (_bfd_elf_is_local_label_name): Extend test for assembler
+       local labels to include local labels with a numeric suffix and
+       fake symbols.
+
+2015-04-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/18316
+       * section.c (SEC_MEP_VLIW): New.
+       * bfd-in2.h: Regenerated.
+
+2015-04-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/18277
+       * compress.c (bfd_compress_section_contents): Remove the
+       write_compress argument.
+       (bfd_init_section_compress_status): Updated.
+       (bfd_compress_section): Likewise.
+       * elf.c (_bfd_elf_set_reloc_sh_name): New.
+       (_bfd_elf_init_reloc_shdr): Add delay_st_name_p.  Set sh_name
+       to (unsigned int) -1 if delay_st_name_p is TRUE.  Use
+       _bfd_elf_set_reloc_sh_name.
+       (elf_fake_sections): Don't rename DWARF debug section for
+       linker output if it will be compressed.  Instead, set
+       delay_st_name_p to TRUE and pass it to _bfd_elf_init_reloc_shdr.
+       (assign_section_numbers): Call _bfd_elf_strtab_addref only if
+       sh_name != (unsigned int) -1.  Don't finalize nor assign
+       shstrtab section here.  Delay setting output section names to
+       _bfd_elf_write_object_contents.
+       (_bfd_elf_compute_section_file_positions): Update comments on
+       sh_offset for shstrtab section.
+       (assign_file_positions_for_non_load_sections): Set sh_offset to
+       -1 for shstrtab section.
+       (assign_file_positions_except_relocs): Likewise.
+       (_bfd_elf_assign_file_positions_for_non_load): Set up sh_name
+       when compressing DWARF debug sections.  Place shstrtab section
+       after DWARF debug sections have been compressed.
+       (_bfd_elf_write_object_contents): Setting sh_name for output
+       sections.
+
 2015-04-23  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR binutils/18209
        * elf64-ppc.c (TOC_BASE_ALIGN): Define.
        (ppc64_elf_next_toc_section): Align multi-got toc base.
        (ppc64_elf_set_toc): Likewise initial toc base and .TOC. symbol.
+=======
+2015-05-04  Catherine Moore  <clm@codesourcery.com>
+
+       * elfxx-target.h: Add missing #endif.
+
+2015-04-22  Catherine Moore  <clm@codesourcery.com>
+
+       * elf-eh-frame.c (_bfd_elf_write_section_eh_frame_entry):  Don't write
+       the .eh_frame_entry section if the corresponding text section is marked
+       with SEC_EXCLUDE.
+
+2015-04-22  Catherine Moore  <clm@codesourcery.com>
+           Bernd Schmidt <bernds@codesourcery.com>
+           Paul Brook <paul@codesourcery.com>
+
+       * bfd-in2.h (SEC_INFO_TYPE_EH_FRAME_ENTRY): Define.
+       * elf-bfd.h (DWARF2_EH_HDR, COMPACT_EH_HDR): Define.
+       (COMPACT_EH_CANT_UNWIND_OPCODE): Define.
+       (dwarf_eh_frame_hdr_info): New struct.
+       (compact_eh_frame_hdr_info): New struct.
+       (eh_frame_hdr_info): Separate dwarf and compact fields.
+       (elf_backend_data): Add compact_eh_encoding and cant_unwind_opcode
+       fields.
+       (bfd_elf_section_data): Add eh_frame_entry field.
+       (elf_section_eh_frame_entry): Define.
+       (bfd_elf_parse_eh_frame_entries): Declare.
+       (_bfd_elf_parse_eh_frame_entry): Declare.
+       (_bfd_elf_end_eh_frame_parsing): Declare.
+       (_bfd_elf_write_section_eh_frame_entry): Declare.
+       (_bfd_elf_fixup_eh_frame_hdr): Declare.
+       (_bfd_elf_eh_frame_entry_present): Declare.
+       (_bfd_elf_section_for_symbol): Declare.
+       * elf-eh-frame.c (bfd_elf_discard_eh_frame_entry): New function.
+       (bfd_elf_record_eh_frame_entry): New function.
+       (_bfd_elf_parse_eh_frame_entry): New function.
+       (_bfd_elf_parse_eh_frame): Update hdr_info field references.
+       (cmp_eh_frame_hdr): New function.
+       (add_eh_frame_hdr_terminator): New function.
+       (_bfd_elf_end_eh_frame_parsing): New function.
+       (find_merged_cie): Update hdr_info field references.
+       (_bfd_elf_discard_section_eh_frame): Likewise.
+       (_bfd_elf_discard_section_eh_frame_hdr): Likewise.
+       Add Compact EH support.
+       (_bfd_elf_eh_frame_entry_present): New function.
+       (_bfd_elf_maybe_strip_eh_frame_hdr): Add Compact EH support.
+       (_bfd_elf_write_section_eh_frame_entry): New function.
+       (_bfd_elf_write_section_eh_frame): Update hdr_info field references.
+       (_bfd_elf_write_section_eh_frame): Likewise.
+       (_bfd_elf_fixup_eh_frame_hdr): New function.
+       (write_compact_eh_frame_hdr): New function.
+       (_bfd_elf_write_section_eh_frame_hdr): Compact EH support.  Update
+       hdr_info field references.
+       * elflink.c (_bfd_elf_section_for_symbol): New function.
+       (elf_section_ignore_discarded_relocs, elf_link_input_bfd):
+       Handle SEC_INFO_TYPE_EH_FRAME_ENTRY.
+       (bfd_elf_final_link): Call _bfd_elf_fixup_eh_frame_hdr.
+       (_bfd_elf_gc_mark):  Support Compact EH.
+       (bfd_elf_parse_eh_frame_entries): New function.
+       (bfd_elf_gc_sections): Support Compact EH.
+       (bfd_elf_discard_info): Likewise.
+       * elfxx-mips.c (_bfd_mips_elf_compact_eh_encoding): New function.
+       (_bfd_mips_elf_cant_unwind_opcode): New function.
+       * elfxx-mips.h (_bfd_mips_elf_compact_eh_encoding): Declare.
+       (_bfd_mips_elf_cant_unwind_opcode): Declare.
+       (elf_backend_compact_eh_encoding): Define.
+       (elf_backend_cant_unwind_opcode): Define.
+       * elfxx-target.h (elf_backend_compact_eh_encoding):
+       Provide default definition.
+       (elf_backend_cant_unwind_opcode): Provide default definition.
+       * section.c (SEC_INFO_TYPE_EH_FRAME_ENTRY): Define.
+>>>>>>> 2015-05-04  Catherine Moore  <clm@codesourcery.com>
 
 2015-04-22  H.J. Lu  <hongjiu.lu@intel.com>
 
This page took 0.034372 seconds and 4 git commands to generate.