+2016-08-31 Alan Modra <amodra@gmail.com>
+
+ * debug.h (DEBUG_TARGET): New.
+ (DEBUG_ALL): Add DEBUG_TARGET.
+ (gold_debug): Delete FORMAT param.
+ * powerpc.cc (Stub_control::can_add_to_stub_group): Print debug ourput.
+
+2016-08-30 Alan Modra <amodra@gmail.com>
+
+ PR 20523
+ * powerpc.cc (class Stub_control): Add has14_. Comment owner_.
+ (Stub_control::can_add_to_stub_group): Correct grouping of
+ sections containing 14-bit external branches. When returning
+ false, set state_ to reflect the fact that we have one section
+ for the next group. Rewrite most of function for clarity.
+ Add and expand comments.
+ (Target_powerpc::do_relax): Print stub group size retry in hex.
+
+2016-08-26 Han Shen <shenhan@google.com>
+
+ PR gold/20529 - relaxing loop never ends.
+
+ * powerpc.cc (Stub_table::min_size_threshold_): New member to
+ limit size.
+ (Stub_table::set_min_size_threshold): New member function.
+ (Stub_table::set_address_and_size): Add code to only allow size
+ increase.
+ (Target_powerpc::do_relax): Add code to record last size.
+
+2016-08-23 Roland McGrath <roland@hack.frob.com>
+
+ * options.h (General_options): Grok -z stack-size.
+ * output.h (Output_segment::set_size): New method.
+ * layout.cc (Layout::create_executable_stack_info): Renamed to ...
+ (Layout::create_stack_segment): ... this. Always create the
+ segment if -z stack-size was used.
+ (Layout::set_segment_offsets): Don't call ->set_offset on the
+ PT_GNU_STACK segment.
+
+2016-08-15 Bharathi Seshadri <bseshadr@cisco.com>
+
+ * options.h (General_options): Add --be8 option.
+ * arm.cc (Arm_relobj::do_relocate_sections): Add code to swap for be8.
+ (Output_data_plt_arm_standard::do_fill_first_plt_entry): Likewise.
+ (Output_data_plt_arm_short::do_fill_plt_entry): Likewise.
+ (Output_data_plt_arm_long::do_fill_plt_entry): Likewise.
+ (Target_arm::do_adjust_elf_header): Do EF_ARM_BE8 adjustment.
+
+2016-08-17 Cary Coutant <ccoutant@gmail.com>
+
+ * i386.cc (Target_i386): Reset skip_call_tls_get_addr_ after printing
+ error message.
+ * testsuite/Makefile.am (pr20216a): Add missing dependencies.
+ (pr20308a): Add -Bgcctestdir/ to compile rules.
+ * testsuite/Makefile.in: Regenerate.
+
+2016-08-12 Roland McGrath <roland@hack.frob.com>
+
+ PR gold/20462
+ * script-sections.cc (Script_sections::release_segments):
+ Reset this->segments_created_.
+
+2016-08-12 Roland McGrath <roland@hack.frob.com>
+
+ * yyscript.y (HIDDEN): New %token.
+ (assignment): Handle HIDDEN(string = expr) syntax.
+ * script.cc (script_keyword_parsecodes): Add HIDDEN.
+
+2016-08-10 Cary Coutant <ccoutant@gmail.com>
+
+ PR gold/20216
+ * x86_64.cc (Target_x86_64::Relocate::relocate): Add check for
+ R_X86_64_GOTPCREL. Reset skip_call_tls_get_addr_ after printing
+ error message.
+ * testsuite/Makefile.am (pr20216_gd.o): Add -Bgcctestdir/.
+ (pr20216_ld.o): Likewise.
+ * testsuite/Makefile.in: Regenerate.
+
+2016-08-10 James Clarke <jrtc27@jrtc27.com>
+
+ PR gold/20443
+ * symtab.cc (Symbol_table::add_from_relobj): Handle NULL symbols,
+ which will be present for STT_SPARC_REGISTER.
+ (Symbol_table::add_from_pluginobj): Likewise.
+ (Symbol_table::add_from_dynobj): Likewise.
+ (Symbol_table::add_from_incrobj): Removed dead code.
+
+2016-08-10 James Clarke <jrtc27@jrtc27.com>
+
+ PR gold/20442
+ * sparc.cc (Target_sparc::Relocate::relocate): R_SPARC_GOTDATA_OP_LOX10
+ should fall back on R_SPARC_GOT10, not R_SPARC_GOT13.
+
+2016-08-10 James Clarke <jrtc27@jrtc27.com>
+
+ PR gold/20441
+ * sparc.cc (Target_sparc::Scan::check_non_pic): Allow R_SPARC_32 on
+ sparc64.
+
+2016-06-29 Cary Coutant <ccoutant@gmail.com>
+
+ PR gold/20310
+ * testsuite/dynamic_list.sh: Remove check for _ZdlPv.
+
+2016-06-29 Cary Coutant <ccoutant@gmail.com>
+
+ * testsuite/Makefile.am (MOSTLYCLEANFILES): Add eh_test_2.
+ * testsuite/Makefile.in: Regenerate.
+
+2016-06-30 Alan Modra <amodra@gmail.com>
+
+ * testsuite/Makefile.am (memory_test, memory_test_2): Pass
+ -Wl,-z to gcc, not plain -z.
+ * testsuite/Makefile.in: Regenerate.
+
+2016-06-29 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gold/20308
+ * i386.cc (Target_i386::Relocate::relocate): Allow
+ R_386_GOT32X relocation against ___tls_get_addr.
+ (Target_i386::Relocate::tls_gd_to_ie): Support indirect
+ call to __tls_get_addr.
+ (Target_i386::Relocate::tls_gd_to_le): Likewise.
+ (Target_i386::Relocate::tls_ld_to_le): Likewise.
+ * testsuite/Makefile.am (check_PROGRAMS): Add pr20308a_test,
+ pr20308b_test, pr20308c_test, pr20308d_test, pr20308e_test.
+ (pr20308a_test_SOURCES): New.
+ (pr20308a_test_DEPENDENCIES): Likewise.
+ (pr20308a_test_CFLAGS): Likewise.
+ (pr20308a_test_LDFLAGS): Likewise.
+ (pr20308a_test_LDADD): Likewise.
+ (pr20308b_test_SOURCES): Likewise.
+ (pr20308b_test_DEPENDENCIES): Likewise.
+ (pr20308b_test_CFLAGS): Likewise.
+ (pr20308b_test_LDFLAGS): Likewise.
+ (pr20308b_test_LDADD): Likewise.
+ (pr20308c_test_SOURCES): Likewise.
+ (pr20308c_test_DEPENDENCIES): Likewise.
+ (pr20308c_test_CFLAGS): Likewise.
+ (pr20308c_test_LDFLAGS): Likewise.
+ (pr20308c_test_LDADD): Likewise.
+ (pr20308d_test_SOURCES): Likewise.
+ (pr20308d_test_DEPENDENCIES): Likewise.
+ (pr20308d_test_CFLAGS): Likewise.
+ (pr20308d_test_LDFLAGS): Likewise.
+ (pr20308d_test_LDADD): Likewise.
+ (pr20308e_test_SOURCES): Likewise.
+ (pr20308e_test_DEPENDENCIES): Likewise.
+ (pr20308e_test_CFLAGS): Likewise.
+ (pr20308e_test_LDFLAGS): Likewise.
+ (pr20308e_test_LDADD): Likewise.
+ (pr20308a.so): Likewise.
+ (pr20308b.so): Likewise.
+ (pr20308_gd.o): Likewise.
+ (pr20308_ld.o): Likewise.
+ (MOSTLYCLEANFILES): Add pr20308a.so pr20308b.so.
+ * testsuite/Makefile.in: Regenerated.
+ * testsuite/pr20308_def.c: New file.
+ * testsuite/pr20308_gd.S: Likewise.
+ * testsuite/pr20308_ld.S: Likewise.
+ * testsuite/pr20308_main.c: Likewise.
+
+2016-06-29 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gold/20216
+ * configure.ac (DEFAULT_TARGET_X86_64_OR_X32): New
+ AM_CONDITIONAL.
+ * configure: Regenerated.
+ * x86_64.cc (Target_x86_64<size>::Relocate::relocate): Allow
+ R_X86_64_GOTPCRELX relocation against __tls_get_addr.
+ (Target_x86_64<size>::Relocate::tls_gd_to_ie): Support indirect
+ call to __tls_get_addr.
+ (Target_x86_64<size>::Relocate::tls_gd_to_le): Likewise.
+ (Target_x86_64<size>::Relocate::tls_ld_to_le): Likewise.
+ * testsuite/Makefile.am (check_PROGRAMS): Add pr20216a_test,
+ pr20216b_test, pr20216c_test, pr20216d_test, pr20216e_test.
+ (pr20216a_test_SOURCES): New.
+ (pr20216a_test_DEPENDENCIES): Likewise.
+ (pr20216a_test_CFLAGS): Likewise.
+ (pr20216a_test_LDFLAGS): Likewise.
+ (pr20216a_test_LDADD): Likewise.
+ (pr20216b_test_SOURCES): Likewise.
+ (pr20216b_test_DEPENDENCIES): Likewise.
+ (pr20216b_test_CFLAGS): Likewise.
+ (pr20216b_test_LDFLAGS): Likewise.
+ (pr20216b_test_LDADD): Likewise.
+ (pr20216c_test_SOURCES): Likewise.
+ (pr20216c_test_DEPENDENCIES): Likewise.
+ (pr20216c_test_CFLAGS): Likewise.
+ (pr20216c_test_LDFLAGS): Likewise.
+ (pr20216c_test_LDADD): Likewise.
+ (pr20216d_test_SOURCES): Likewise.
+ (pr20216d_test_DEPENDENCIES): Likewise.
+ (pr20216d_test_CFLAGS): Likewise.
+ (pr20216d_test_LDFLAGS): Likewise.
+ (pr20216d_test_LDADD): Likewise.
+ (pr20216e_test_SOURCES): Likewise.
+ (pr20216e_test_DEPENDENCIES): Likewise.
+ (pr20216e_test_CFLAGS): Likewise.
+ (pr20216e_test_LDFLAGS): Likewise.
+ (pr20216e_test_LDADD): Likewise.
+ (pr20216a.so): Likewise.
+ (pr20216b.so): Likewise.
+ (pr20216_gd.o): Likewise.
+ (pr20216_ld.o): Likewise.
+ (MOSTLYCLEANFILES): Add pr20216a.so pr20216b.so.
+ * testsuite/Makefile.in: Regenerated.
+ * testsuite/pr20216_def.c: New file.
+ * testsuite/pr20216_gd.S: Likewise.
+ * testsuite/pr20216_ld.S: Likewise.
+ * testsuite/pr20216_main.c: Likewise.
+
+2016-06-29 Alan Modra <amodra@gmail.com>
+
+ * script_test_12.t: Delete .plt, specify 64k page size.
+ * script_test_12i.t: Likewise.
+
+2016-06-29 Alan Modra <amodra@gmail.com>
+
+ * testsuite/plugin_layout_with_alignment.c: Explicitly align all
+ variables.
+
+2016-06-29 Alan Modra <amodra@gmail.com>
+
+ * testsuite/Makefile.am (copy_test_protected): Disable for powerpc.
+ * testsuite/Makefile.in: Regenerate.
+
+2016-06-28 Igor Kudrin <ikudrin@accesssoftek.com>
+
+ * aarch64-reloc.def (NONE): New relocation.
+ * aarch64.cc (Target_aarch64::Scan::local): Handle R_AARCH64_NONE.
+ (Target_aarch64::Scan::global): Likewise.
+ * testsuite/Makefile.am (aarch64_reloc_none): New test.
+ * testsuite/Makefile.in: Regenerate.
+ * testsuite/aarch64_reloc_none.s: New test source file.
+ * testsuite/aarch64_reloc_none.sh: New test script.
+
+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.