+2016-06-28 Sriraman Tallam <tmsriram@google.com>
+
+ * x86_64.cc (Lazy_view): New class.
+ (can_convert_mov_to_lea): Templatize function. Make the function
+ check for appropriate relocation types and use the view parameter
+ to get section contents.
+ (can_convert_callq_to_direct): New function.
+ (Target_x86_64<size>::Scan::global): Refactor.
+ (Target_x86_64<size>::Relocate::relocate): Refactor. Change any indirect
+ call via GOT that can be converted.
+ * testsuite/Makefile.am (x86_64_indirect_call_to_direct.sh): New test.
+ * testsuite/Makefile.in: Regenerate.
+ * testsuite/x86_64_indirect_call_to_direct1.s: New file.
+ * testsuite/x86_64_indirect_jump_to_direct1.s: New file.
+
+2016-06-28 Igor Kudrin <ikudrin@accesssoftek.com>
+
+ * aarch64.cc (Target_aarch64::Scan::local): Move the call to got_section
+ from the top level to the places of its use.
+
+2016-06-28 Igor Kudrin <ikudrin@accesssoftek.com>
+
+ PR gold/18098
+ * script-c.h (Sort_wildcard): Add SORT_WILDCARD_BY_INIT_PRIORITY.
+ * script-sections.cc (Input_section_sorter::get_init_priority): New method.
+ (Input_section_sorter::operator()): Handle SORT_WILDCARD_BY_INIT_PRIORITY.
+ (Output_section_element_input::print): Likewise.
+ * script.cc (script_keyword_parsecodes): Add entry SORT_BY_INIT_PRIORITY.
+ * yyscript.y (SORT_BY_INIT_PRIORITY): New token.
+ (wildcard_section): Handle SORT_BY_INIT_PRIORITY.
+
+ * testsuite/Makefile.am (script_test_14): New test.
+ * testsuite/Makefile.in: Regenerate.
+ * testsuite/script_test_14.s: New test source file.
+ * testsuite/script_test_14.sh: New test script.
+ * testsuite/script_test_14.t: New test linker script.
+
+2016-06-28 James Clarke <jrtc27@jrtc27.com>
+
+ * sparc.cc (Target_sparc::Scan::local): Don't convert R_SPARC_32
+ to R_SPARC_RELATIVE if class is ELFCLASS64.
+ (Target_sparc::Scan::global): Likewise.
+
+2016-06-23 Cary Coutant <ccoutant@gmail.com>
+ Igor Kudrin <ikudrin@accesssoftek.com>
+
+ PR gold/15370
+ * script-sections.cc
+ (Output_section_element_input::set_section_addresses): Keep bin_count
+ separate from input_pattern_count.
+ * testsuite/script_test_12.t: Add another section .x4.
+ * testsuite/script_test_12i.t: Likewise.
+ * testsuite/script_test_12a.c: Likewise.
+ * testsuite/script_test_12b.c: Likewise.
+
+2016-06-23 Igor Kudrin <ikudrin@accesssoftek.com>
+
+ * gold-threads.cc (impl_threads::Lock_impl_threads): Fix typos.
+
+2016-06-22 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/20283
+ * NEWS: Mention --enable-relro.
+ * configure.ac: Add --enable-relro.
+ (DEFAULT_LD_Z_RELRO): New. Set by --enable-relro and default
+ to 1.
+ * config.in: Regenerated.
+ * configure: Likewise.
+ * options.h (General_options::relro): Default to
+ DEFAULT_LD_Z_RELRO.
+
+2016-06-20 Cary Coutant <ccoutant@gmail.com>
+
+ * NEWS: Add new features in 1.12.
+ * version.cc (version_string): Bump to 1.12.
+
+2016-06-20 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gold/20245
+ * i386.cc (Target_i386::first_plt_entry_offset): Return 0 if
+ plt_ is NULL.
+ (Target_i386::plt_entry_size): Likewise.
+ (Target_x86_64<size>::first_plt_entry_offset): Likewise.
+ (Target_x86_64<size>::plt_entry_size): Likewise.
+
+2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
+
+ * mips.cc (Target_mips::Target_mips): Initialize rld_map_.
+ (Target_mips::rld_map_): New data member.
+ (Target_mips::do_finalize_sections): Add support for
+ DT_MIPS_RLD_MAP and DT_MIPS_RLD_MAP_REL dynamic tags,
+ .rld_map section, and __RLD_MAP symbol.
+ (Target_mips::do_dynamic_tag_custom_value): Add support for
+ DT_MIPS_RLD_MAP_REL dynamic tag.
+ * output.cc (Output_data_dynamic::get_entry_offset): New method
+ definition.
+ * output.h (Output_data_dynamic::get_entry_offset): New method
+ declaration.
+
+2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
+
+ * mips.cc (Mips_relocate_functions::relpc16): Add unaligned check.
+
+2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
+
+ * mips.cc (relocation_needs_la25_stub): Add support for relocs:
+ R_MIPS_PC21_S2 and R_MIPS_PC26_S2.
+ (hi16_reloc): Add support for R_MIPS_PCHI16 relocation.
+ (is_matching_lo16_reloc): Likewise.
+ (lo16_reloc): Add support for R_MIPS_PCLO16 relocation.
+ (Mips_output_data_plt::plt_entry_r6): New static data member for
+ R6 PLT entry.
+ (Target_mips::is_output_r6): New method.
+ (Target_mips::Mips_mach): Add new enum constants.
+ (Mips_relocate_functions::Status): Likewise.
+ (Mips_relocate_functions::pchi16_relocs): New static data member.
+ (Mips_relocate_functions::relpc21): New method.
+ (Mips_relocate_functions::relpc26): Likewise.
+ (Mips_relocate_functions::relpc18): Likewise.
+ (Mips_relocate_functions::relpc19): Likewise.
+ (Mips_relocate_functions::relpchi16): Likewise.
+ (Mips_relocate_functions::do_relpchi16): Likewise.
+ (Mips_relocate_functions::relpclo16): Likewise.
+ (Mips_output_data_plt::do_write): Add support for Mips r6 plt
+ entry.
+ (Target_mips::mips_32bit_flags): Add E_MIPS_ARCH_32R6 support.
+ (Target_mips::elf_mips_mach): Add E_MIPS_ARCH_32R6 and
+ E_MIPS_ARCH_64R6 support.
+ (Target_mips::update_abiflags_isa): Likewise.
+ (mips_get_size_for_reloc): Add support for relocs: R_MIPS_PCHI16,
+ R_MIPS_PCLO16, R_MIPS_PC21_S2, R_MIPS_PC26_S2, R_MIPS_PC18_S3 and
+ R_MIPS_PC19_S2.
+ (Target_mips::Scan::local): Add support for relocs: R_MIPS_PCHI16
+ and R_MIPS_PCLO16.
+ (Target_mips::Scan::global): Add support for relocs:
+ R_MIPS_PC21_S2 and R_MIPS_PC26_S2.
+ (Target_mips::Relocate::relocate): Call functions for resolving
+ Mips32r6 and Mips64r6 relocations, and print error message for
+ STATUS_PCREL_UNALIGNED.
+ (Target_mips::Scan::get_reference_flags): Add support for relocs:
+ R_MIPS_PCHI16, R_MIPS_PCLO16, R_MIPS_PC21_S2, R_MIPS_PC26_S2,
+ R_MIPS_PC18_S3 and R_MIPS_PC19_S2.
+ (Target_mips::elf_mips_mach_name): Add E_MIPS_ARCH_32R6 and
+ E_MIPS_ARCH_64R6 support.
+
+2016-06-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gold/20246
+ * testsuite/script_test_2.t: Add .got.plt after .got.
+
+2016-06-10 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
+
+ * mips.cc (struct Mips_abiflags): New struct.
+ (Mips_relobj::Mips_relobj): Initialize attributes_section_data_
+ and abiflags_.
+ (Mips_relobj::~Mips_relobj): Delete object pointed by
+ attributes_section_data_.
+ (Mips_relobj::abiflags): New method.
+ (Mips_relobj::attributes_section_data): Likewise.
+ (Mips_relobj::attributes_section_data_): New data member.
+ (Mips_relobj::abiflags_): Likewise.
+ (class Mips_output_section_abiflags): New class.
+ (Target_mips::Target_mips): Initialize attributes_section_data_,
+ abiflags_ and has_abiflags_section_.
+ (Target_mips::do_should_include_section): Don't emit input
+ .MIPS.abiflags sections to output .MIPS.abiflags.
+ (Target_mips::Mips_mach): Add new enum constants.
+ (Target_mips::mips_isa_ext_mach): New method.
+ (Target_mips::mips_isa_ext): Likewise.
+ (Target_mips::update_abiflags_isa): Likewise.
+ (Target_mips::infer_abiflags): Likewise.
+ (Target_mips::create_abiflags): Likewise.
+ (Target_mips::fp_abi_string): Likewise.
+ (Target_mips::select_fp_abi): Likewise.
+ (Target_mips::merge_obj_attributes): Likewise.
+ (Target_mips::merge_obj_abiflags): Likewise.
+ (Target_mips::level_rev): Likewise.
+ (Target_mips::merge_obj_e_flags): Rename from
+ merge_processor_specific_flags. Remove dyn_obj argument,
+ call update_abiflags_isa when needed, compare NaN encodings and
+ compare FP64 state.
+ (Target_mips::add_machine_extensions): Add two machine extensions
+ and fix one.
+ (Target_mips::attributes_section_data_): New data member.
+ (Target_mips::abiflags_): Likewise.
+ (Target_mips::has_abiflags_section_): Likewise.
+ (Mips_relobj::do_read_symbols): Read .gnu.attributes and
+ .MIPS.abiflags sections if they exists.
+ (Target_mips::elf_mips_mach): Add E_MIPS_MACH_5900 and
+ E_MIPS_MACH_OCTEON3 support.
+ (Target_mips::do_adjust_elf_header): Setup EI_ABIVERSION flag.
+ (Target_mips::do_finalize_sections): Merge .gnu.attributes and
+ .MIPS.abiflags sections from input. Create these sections if
+ needed.
+ (Target_mips::elf_mips_mach_name): Add E_MIPS_MACH_5900 and
+ E_MIPS_MACH_OCTEON3 support, and change strings for
+ E_MIPS_MACH_LS2E, E_MIPS_MACH_LS2F and E_MIPS_MACH_LS3A just
+ to match bfd.
+
+2016-06-10 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
+
+ * mips.cc (Mips_relobj::Mips_relobj): Initialize
+ has_reginfo_section_.
+ (Mips_relobj::has_reginfo_section_): New data member.
+ (Mips_relobj::has_reginfo_section): New method.
+ (class Mips_output_section_reginfo): Change base class to
+ Output_section_data, and set masks of the output .reginfo section
+ in constructor.
+ (Mips_output_section_reginfo::as_mips_output_section_reginfo):
+ Remove.
+ (Mips_output_section_reginfo::set_masks): Likewise.
+ (Mips_output_section_reginfo::set_final_data_size): Likewise.
+ (Mips_output_section_reginfo::do_print_to_mapfile): New method.
+ (Target_mips::do_make_output_section): Remove.
+ (Mips_relobj::do_read_symbols): Set has_reginfo_section_ to true
+ if the object contains a .reginfo section.
+ (Target_mips::do_finalize_sections): Create a .reginfo output
+ section if needed.
+
+2016-06-09 Artemiy Volkov <artemiyv@acm.org>
+
+ * mips.cc (Mips_output_data_got::do_write): Add missing template
+ args via typedef.
+
+2016-05-30 Marcin KoĆcielnicki <koriakin@0x04.net>
+
+ PR/19960
+ * s390.cc (Target_s390::ss_code_st_r14): Removed.
+ (Target_s390::ss_code_l_r14): Removed.
+ (Target_s390::ss_code_ear): Removed.
+ (Target_s390::ss_code_c): Removed.
+ (Target_s390::ss_match_st_r14): New function.
+ (Target_s390::ss_match_l_r14): New function.
+ (Target_s390::ss_match_mcount): Call ss_match_{l,st}_r14 instead
+ of matching code directly.
+ (Target_s390::ss_match_ear): New function.
+ (Target_s390::ss_match_c): New function.
+ (Target_s390::do_calls_non_split): Call ss_match_{ear,c} instead
+ of matching code directly.
+
+2016-05-19 Cary Coutant <ccoutant@gmail.com>
+
+ PR gold/19823
+ * copy-relocs.cc (Copy_relocs::make_copy_reloc): Add object
+ parameter; check for protected symbol.
+ * copy-relocs.h (Copy_relocs::make_copy_reloc): Add object parameter.
+ * mips.cc (Mips_copy_relocs): Adjust call to make_copy_reloc.
+ * symtab.cc (Symbol::init_fields): Initialize is_protected_.
+ (Symbol_table::add_from_dynobj): Mark protected symbols.
+ * symtab.h (Symbol::is_protected): New method.
+ (Symbol::set_is_protected): New method.
+ (Symbol::is_protected_): New data member.
+
+ * testsuite/Makefile.am (copy_test_protected): New test.
+ * testsuite/Makefile.in: Regenerate.
+ * testsuite/copy_test.cc (main): Add legal reference to protected
+ symbol.
+ * testsuite/copy_test_v1.cc (main): Likewise.
+ * testsuite/copy_test_2.cc (ip): Add protected symbol.
+ * testsuite/copy_test_protected.cc: New test source file.
+ * testsuite/copy_test_protected.sh: New test script.
+
2016-05-19 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
* mips.cc (Mips_got_entry::Mips_got_entry): Remove object argument