12017-07-06 Han Shen <shenhan@google.com> 2 3 PR gold/21491 4 * aarch64.cc (Erratum_stub::invalidate_erratum_stub): New method. 5 (Erratum_stub::is_invalidated_erratum_stub): New method. 6 (Stub_table::relocate_reloc_stub): Renamed from "relocate_stub". 7 (Stub_table::relocate_reloc_stubs): Renamed from "relocate_stubs". 8 (Stub_table::relocate_erratum_stub): New method. 9 (AArch64_relobj::fix_errata_and_relocate_erratum_stubs): Renamed from 10 "fix_errata". 11 (Target_aarch64::relocate_reloc_stub): Renamed from "relocate_stub". 12 132017-06-21 Eric Christopher <echristo@gmail.com> 14 15 Apply from master 16 2017-06-20 Eric Christopher <echristo@gmail.com> 17 18 * aarch64.cc (scan_reloc_for_stub): Use plt_address_for_global to 19 calculate the symbol value. 20 (scan_reloc_section_for_stubs): Allow stubs to be created for 21 section symbols. 22 (maybe_apply_stub): Handle creating stubs for weak symbols to 23 match the code in scan_reloc_for_stub. 24 252017-06-21 Eric Christopher <echristo@gmail.com> 26 27 Apply from master 28 2017-06-15 Eric Christopher <echristo@gmail.com> 29 30 * aarch64.cc: Fix a few typos and grammar-os. 31 322017-06-21 Eric Christopher <echristo@gmail.com> 33 34 Apply from master 35 2017-06-07 Eric Christopher <echristo@gmail.com> 36 37 * aarch64.cc (maybe_apply_stub): Add debug logging for looking 38 up stubs to undefined symbols and early return rather than 39 fail to look them up. 40 (scan_reloc_for_stub): Add debug logging for no stub creation 41 for undefined symbols. 42 432017-06-21 Eric Christopher <echristo@gmail.com> 44 45 Apply from master 46 2017-05-15 Eric Christopher <echristo@gmail.com> 47 48 * layout.cc (Layout::segment_precedes): Add a case for testing 49 pointer equality when determining which segment precedes 50 another. 51 522017-06-20 James Clarke <jrtc27@jrtc27.com> 53 54 * powerpc.cc (Stub_table::define_stub_syms): Always include object's 55 uniq_ value. 56 572017-06-03 Alan Modra <amodra@gmail.com> 58 59 Apply from master 60 2017-05-23 Alan Modra <amodra@gmail.com> 61 PR 21503 62 * options.h: Add --emit-stub-syms option. 63 * powerpc.cc (object_id): New. 64 (Powerpc_relobj): Add uniq_ and accessor. Sort variables for 65 better packing. 66 (Powerpc_dynobj): Sort variables for better packing. 67 (Target_powerpc::define_local): New function. 68 (Target_powerpc::group_sections): Pass stub table size to 69 Stub_table constructor. 70 (Target_powerpc::do_relax): Define stub and glink symbols. 71 (Stub_table): Add uniq_ variable, and id param to constructor. 72 (Stub_table::Plt_stub_ent): Add indx_ variable. 73 (Stub_table::Branch_stub_entries): Move typedef earlier. 74 (Stub_table::branch_stub_size): Replace "to" parameter with a 75 Branch_stub_entries iterator. 76 (Stub_table::add_long_branch_entry): Adjust to suit. 77 (Stub_table::add_plt_call_entry): Set indx_. 78 (Stub_table::define_stub_syms): New function. 79 802017-05-13 James Clarke <jrtc27@jrtc27.com> 81 82 PR gold/21444 83 * gold.cc (Target_sparc::Relocate::relocate_tls): Local 84 variables are final for position-independent executables. This 85 has to be consistent with Target_sparc::Scan::local otherwise 86 they will disagree as to whether local-exec is used. 87 882017-02-22 Alan Modra <amodra@gmail.com> 89 90 * powerpc.cc (Target_powerpc::make_iplt_section): Check that 91 output_section exists before attempting add_output_section_data. 92 (Target_powerpc::make_brlt_section): Likewise. 93 942017-02-03 Alan Modra <amodra@gmail.com> 95 96 * powerpc.cc (Powerpc_relobj::make_toc_relative): Don't crash 97 when no .toc section exists. 98 992017-01-23 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com> 100 101 * mips.cc (Mips_output_data_plt::rel_plt): Remove const from return 102 type. 103 (Target_mips::make_plt_entry): Make the sh_info field of .rel.plt 104 point to .plt. 105 1062017-01-23 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com> 107 108 PR gold/21054 109 * mips.cc (Mips_got_info::record_global_got_symbol): Don't add symbol 110 to the dynamic symbol table if it is forced to local visibility. 111 (Target_mips::do_finalize_sections): Don't add __RLD_MAP symbol to the 112 dynamic symbol table if it is forced to local visibility. 113 1142017-01-13 H.J. Lu <hongjiu.lu@intel.com> 115 116 PR gold/21040 117 * powerpc.cc (Powerpc_relobj<size, big_endian>::make_toc_relative): 118 Cast 0x80008000 to uint64_t. 119 1202017-01-12 Cary Coutant <ccoutant@gmail.com> 121 122 * object.cc (Sized_relobj_file): Fix byte counts for calls to memmem. 123 1242017-01-11 Cary Coutant <ccoutant@gmail.com> 125 126 PR gold/21040 127 * x86_64.cc (Output_data_plt_x86_64_bnd::do_fill_first_plt_entry): 128 Remove unnecessary 'typename' keyword. 129 (Output_data_plt_x86_64_bnd::do_fill_plt_entry): Likewise. 130 (Output_data_plt_x86_64_bnd::fill_aplt_entry): Likewise. 131 (Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry): Likewise. 132 (Output_data_plt_x86_64_bnd::do_write): Likewise. 133 1342017-01-11 Cary Coutant <ccoutant@gmail.com> 135 136 PR gold/21040 137 * x86_64.cc (Output_data_plt_x86_64_bnd::do_fill_first_plt_entry): 138 Remove unnecessary 'typename' keyword. 139 (Output_data_plt_x86_64_bnd::do_fill_plt_entry): Likewise. 140 (Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry): Likewise. 141 (Output_data_plt_x86_64_bnd::fill_aplt_entry): Likewise. 142 * testsuite/copy_test_relro_1.cc (p, b, c, q): Add separate extern 143 declarations. 144 1452017-01-11 Cary Coutant <ccoutant@gmail.com> 146 147 PR gold/21039 148 * testsuite/script_test_13.sh: Adjust patterns to work for i386. 149 * testsuite/script_test_15a.sh: Likewise. 150 * testsuite/script_test_15b.sh: Likewise. 151 * testsuite/script_test_15c.sh: Likewise. 152 1532017-01-11 Alan Modra <amodra@gmail.com> 154 155 * powerpc.cc (class Powerpc_copy_relocs): New. 156 (Powerpc_copy_relocs::emit): New function. 157 (Powerpc_relobj::relatoc_, toc_, no_toc_opt_): New variables. 158 (Powerpc_relobj::toc_shndx, set_no_toc_opt, no_toc_opt): New inlines. 159 (Powerpc_relobj::do_relocate_sections): New function. 160 (Powerpc_relobj::make_toc_relative): Likewise. 161 (Powerpc_relobj::do_find_special_sections): Stash away .rela.toc 162 and .toc too. 163 (ok_lo_toc_insn): Move earlier, and handle more insns. 164 (Target_powerpc::Scan::local): If optimizing toc accesses, set 165 no_toc_opt for entries we can't edit. Check insn validity. 166 Emit "toc optimization is not supported" warning, downgraded 167 from error. 168 (Target_powerpc::Scan::global): Likewise. 169 (Target_powerpc::Relocate::relocate): Edit TOC indirect code 170 to TOC relative. Don't emit "toc optimization is not supported" 171 error here. 172 1732017-01-10 Cary Coutant <ccoutant@gmail.com> 174 175 * aarch64.cc (AArch64_relobj::do_relocate_sections): Call 176 Sized_relobj_file::relocate_section_range(). 177 * arm.cc (Arm_relobj::do_relocate_sections): Likewise. 178 * object.h (Sized_relobj_file::relocate_section_range): New method. 179 * reloc.cc (Sized_relobj_file::do_relocate_sections): Move 180 implementation... 181 (Sized_relobj_file::relocate_section_range): ...to new method. 182 1832017-01-10 Alan Modra <amodra@gmail.com> 184 185 * testsuite/ver_test_8.sh: Accept .TOC. in lieu of 186 _GLOBAL_OFFSET_TABLE_. Allow zero count. 187 * testsuite/copy_test_relro_1.cc (c, q): New vars. 188 * testsuite/copy_test_relro.cc: Rewrite to test read-only 189 status of variables directly. Reference new vars in 190 read-only data. 191 1922017-01-10 Alan Modra <amodra@gmail.com> 193 194 * options.h: Add --secure-plt option. 195 * powerpc.cc (Target_powerpc::Scan::local): Detect and error 196 on -fPIC -mbss-plt code. 197 (Target_powerpc::Scan::global): Likewise. 198 1992017-01-09 Alan Modra <amodra@gmail.com> 200 201 * powerpc.cc (Target_powerpc::make_plt_section): Point sh_info of 202 ".rela.plt" at ".plt". 203 2042017-01-07 Alan Modra <amodra@gmail.com> 205 206 * powerpc.cc: Use shorter equivalent elfcpp typedef for 207 Reltype and reloc_size throughout. 208 (Target_powerpc::symval_for_branch): Exclude dynamic symbols. 209 (Target_powerpc::Scan::local): Use local var r_sym. 210 (Target_powerpc::Scan::global: Likewise. 211 (Target_powerpc::Relocate::relocate): Delete shadowing r_sym. 212 2132017-01-02 Alan Modra <amodra@gmail.com> 214 215 Update year range in copyright notice of all files. 216 217For older changes see ChangeLog-2016 218 219Copyright (C) 2017 Free Software Foundation, Inc. 220 221Copying and distribution of this file, with or without modification, 222are permitted in any medium without royalty provided the copyright 223notice and this notice are preserved. 224 225Local Variables: 226mode: change-log 227left-margin: 8 228fill-column: 74 229version-control: never 230End: 231