X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gold%2FChangeLog;h=b0ea313e88b85cd6861fa82dc6dd748585eb85cd;hb=128e85e3ab36b8e30f6612fb50de3cbb4ede6824;hp=d6bae2bd6a73d8f7996c1062dc95351159cecd03;hpb=8032ac03390ca5bc33f8efe29447d0a4bc492950;p=deliverable%2Fbinutils-gdb.git diff --git a/gold/ChangeLog b/gold/ChangeLog index d6bae2bd6a..b0ea313e88 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,365 @@ +2016-11-22 Cary Coutant + + PR gold/20346 + * options.cc (One_option::print): Print "(default)" when appropriate. + * options.h: Clean up and re-sort options. + (One_option::is_default): New data member. + (One_option::One_option): Add is_default parameter; adjust all calls. + (DEFINE_var): Add is_default__ parameter; adjust all calls. + (DEFINE_bool): Set is_default based on default_value__. + (DEFINE_bool_ignore): New macro. + (--no-eh-frame-hdr): New option. + (--enable-new-dtags): Remove mention of DT_FLAGS. + +2016-11-22 Ambrogino Modigliani + + * configure: Regenerate. + +2016-11-21 Cary Coutant + + PR gold/20693 + * gold.cc (queue_middle_tasks): Force valid target earlier. + +2016-11-21 Igor Kudrin + + * layout.cc: Include windows.h and rpcdce.h (for MinGW32). + (Layout::create_build_id): Generate uuid using UuidCreate(). + +2016-11-04 Loïc Yhuel + + * configure.ac: add missing '$'. + * configure: Regenerate. + +2016-10-21 Gergely Nagy + + PR gold/17704 + * icf.cc (match_sections): Add new parameter section_addraligns. + Check section alignment and keep the section with the strictest + alignment. + (find_identical_sections): New local variable section_addraligns. + Store each section's alignment. + * testsuite/pr17704a_test.s: New file. + * testsuite/Makefile.am (pr17704a_test): New test. + * testsuite/Makefile.in: Regenerate. + +2016-10-06 Alan Modra + + * powerpc.cc (Target_powerpc::Relocate::relocate): Add fall + through comment. + * tilegx.cc (Target_tilegx::Relocate::relocate): Likewise. + +2016-10-06 Alan Modra + + * aarch64.cc: Spell fall through comments as "// Fall through.". + * arm.cc: Likewise. + * mips.cc: Likewise. + * powerpc.cc: Likewise. + * s390.cc: Likewise. + * sparc.cc: Likewise. + * x86_64.cc: Likewise. + * powerpc.cc (Target_powerpc::Relocate::relocate): Add missing + fall through comments. + * sparc.cc: (Target_sparc::Scan::global): Likewise. + (Target_sparc::Relocate::relocate): Likewise. + * tilegx.cc (Target_tilegx::Relocate::relocate): Likewise. + * resolve.cc (symbol_to_bits): Add missing break. + +2016-09-26 Cary Coutant + + PR gold/20238 + * symtab.cc (Symbol_table::define_default_version): Check that + unversioned symbol is defined. + +2016-09-26 Vlad Zakharov + + * Makefile.in: Regenerate. + * configure: Likewise. + * testsuite/Makefile.in: Likewise. + +2016-09-26 Alan Modra + + * aarch64.cc (Target_aarch64::is_erratum_835769_sequence): Avoid + compiler warning. + * output.cc (Output_segment::set_section_addresses): Likewise. + * testsuite/Makefile.in: Regenerate. + +2016-09-02 Doug Kwan + + * arm.cc (Target_arm::Target_arm): Move method definition outside of + class definition. Add code to handle --target1-rel, --target1-abs + and --target2= options. + (Target_arm::get_reloc_reloc_type): Change method to be non-static + and const. + (Target_arm::target1_is_rel_, Target_arm::target2_reloc_): New data + member declaration. + (Target_arm::Scan::local, Target_arm::Scan::global, + Target_arm::Relocate::relocate, + Target_arm::Relocatable_size_for_reloc::get_size_for_reloc): Adjust + call to Target_arm::get_real_reloc_type. + (Target_arm::get_real_reloc_type): Use command line options to + determine real types of R_ARM_TARGET1 and R_ARM_TARGET2. + * options.h (--target1-rel, --target1-abs, --target2): New ARM-only + options. + +2016-08-31 Alan Modra + + * powerpc.cc (class Stub_control): Delete stub14_group_size_ + and has14_. Add group_size_. + (Stub_control::can_add_to_stub_group): Adjust to suit. Print + debug info when switching to adding sections before stubs. + +2016-08-31 Alan Modra + + * 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 + + 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 + + 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 + + * 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 + + * 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 + + * 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 + + PR gold/20462 + * script-sections.cc (Script_sections::release_segments): + Reset this->segments_created_. + +2016-08-12 Roland McGrath + + * yyscript.y (HIDDEN): New %token. + (assignment): Handle HIDDEN(string = expr) syntax. + * script.cc (script_keyword_parsecodes): Add HIDDEN. + +2016-08-10 Cary Coutant + + 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 + + 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 + + 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 + + PR gold/20441 + * sparc.cc (Target_sparc::Scan::check_non_pic): Allow R_SPARC_32 on + sparc64. + +2016-06-29 Cary Coutant + + PR gold/20310 + * testsuite/dynamic_list.sh: Remove check for _ZdlPv. + +2016-06-29 Cary Coutant + + * testsuite/Makefile.am (MOSTLYCLEANFILES): Add eh_test_2. + * testsuite/Makefile.in: Regenerate. + +2016-06-30 Alan Modra + + * 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 + + 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 + + PR gold/20216 + * configure.ac (DEFAULT_TARGET_X86_64_OR_X32): New + AM_CONDITIONAL. + * configure: Regenerated. + * x86_64.cc (Target_x86_64::Relocate::relocate): Allow + R_X86_64_GOTPCRELX relocation against __tls_get_addr. + (Target_x86_64::Relocate::tls_gd_to_ie): Support indirect + call to __tls_get_addr. + (Target_x86_64::Relocate::tls_gd_to_le): Likewise. + (Target_x86_64::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 + + * script_test_12.t: Delete .plt, specify 64k page size. + * script_test_12i.t: Likewise. + +2016-06-29 Alan Modra + + * testsuite/plugin_layout_with_alignment.c: Explicitly align all + variables. + +2016-06-29 Alan Modra + + * testsuite/Makefile.am (copy_test_protected): Disable for powerpc. + * testsuite/Makefile.in: Regenerate. + +2016-06-28 Igor Kudrin + + * 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 + + * 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::Scan::global): Refactor. + (Target_x86_64::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 * aarch64.cc (Target_aarch64::Scan::local): Move the call to got_section