Correct eh_frame info for __glink_PLTresolve
[deliverable/binutils-gdb.git] / gold / ChangeLog
1 2017-07-23 Alan Modra <amodra@gmail.com>
2
3 * powerpc.cc (glink_eh_frame_fde_64v2): Correct advance to
4 restore of LR.
5 (glink_eh_frame_fde_64v1): Advance to restore of LR at latest
6 possible insn.
7
8 2017-07-18 Nick Clifton <nickc@redhat.com>
9
10 PR 21775
11 * aarch64.cc: Fix spelling typos.
12 * arm.cc: Likewise.
13 * layout.cc: Likewise.
14 * powerpc.cc: Likewise.
15 * x86_64.cc: Likewise.
16
17 2017-07-12 Alan Modra <amodra@gmail.com>
18
19 * po/es.po: Update from translationproject.org/latest/gold/.
20 * po/fi.po: Likewise.
21 * po/fr.po: Likewise.
22 * po/id.po: Likewise.
23 * po/it.po: Likewise.
24 * po/vi.po: Likewise.
25 * po/zh_CN.po: Likewise.
26 * po/ja.po: New file from translationproject.org.
27 * po/sv.po: Likewise.
28 * po/uk.po: Likewise.
29
30 2017-07-06 Han Shen <shenhan@google.com>
31
32 PR gold/21491
33 * aarch64.cc (Erratum_stub::invalidate_erratum_stub): New method.
34 (Erratum_stub::is_invalidated_erratum_stub): New method.
35 (Stub_table::relocate_reloc_stub): Renamed from "relocate_stub".
36 (Stub_table::relocate_reloc_stubs): Renamed from "relocate_stubs".
37 (Stub_table::relocate_erratum_stub): New method.
38 (AArch64_relobj::fix_errata_and_relocate_erratum_stubs): Renamed from
39 "fix_errata".
40 (Target_aarch64::relocate_reloc_stub): Renamed from "relocate_stub".
41
42 2017-06-23 Alan Modra <amodra@gmail.com>
43
44 * options.h (General_options): Add plt_localentry.
45 * powerpc.cc (Target_powerpc::st_other): New function.
46 (Target_powerpc::plt_localentry0_, plt_localentry0_init_,
47 has_localentry0_): New vars.
48 (Target_powerpc::plt_localentry0, set_has_localentry0,
49 is_elfv2_localentry0): New functions.
50 (Target_powerpc::Branch_info::mark_pltcall): Don't set tocsave or
51 return true for localentry:0 calls.
52 (Stub_table::Plt_stub_ent::localentry0_): New var.
53 (Stub_table::add_plt_call_entry): Set localentry0_ and has_localentry0_.
54 Don't set r2save_ for localentry:0 calls.
55 (Output_data_glink::do_write): Save r2 in __glink_PLTresolve for elfv2.
56 (Target_powerpc::scan_relocs): Default plt_localentry0_.
57 (Target_powerpc::do_finalize_sections): Set DT_PPC64_OPT.
58 (Target_powerpc::Relocate::relocate): Don't require nop following
59 calls for localentry:0 plt calls, and don't change nop.
60
61 2017-06-23 Alan Modra <amodra@gmail.com>
62
63 * powerpc.cc (Target_powerpc::tocsave_loc_): New var.
64 (Target_powerpc::mark_pltcall, add_tocsave, tocsave_loc): New functions.
65 (Target_powerpc::Branch_info::tocsave_): New var.
66 (Target_powerpc::Branch_info::mark_pltcall): New function.
67 (Target_powerpc::Branch_info::make_stub): Pass tocsave_ to
68 add_plt_call_entry.
69 (Stub_table::Plt_stub_ent): Make public. Add r2save_.
70 (Stub_table::add_plt_call_entry): Add bool tocsave_ param. Set
71 r2save_.
72 (Stub_table::find_plt_call_entry): Return Plt_stub_ent*. Adjust
73 use throughout.
74 (Stub_table::do_write): Conditionally output r2 save in plt stubs.
75 (Target_powerpc::Scan::local): Handle R_PPC64_TOCSAVE.
76 (Target_powerpc::Scan::global): Likewise.
77 (Target_powerpc::Relocate::relocate): Skip r2 save in plt call stub
78 with tocsave reloc. Replace header tocsave nop with r2 save.
79 * symtab.h (struct Symbol_location_hash): Make public.
80
81 2017-06-21 Alan Modra <amodra@gmail.com>
82
83 * powerpc.cc (Plt_stub_key): Rename from Plt_stub_ent. Remove indx_.
84 (Plt_stub_key_hash): Rename from Plt_stub_ent_hash.
85 (struct Plt_stub_ent): New.
86 (Plt_stub_entries): Map from Plt_stub_key to Plt_stub_ent. Adjust
87 use throughout file.
88
89 2017-06-20 Eric Christopher <echristo@gmail.com>
90
91 * aarch64.cc (scan_reloc_for_stub): Use plt_address_for_global to
92 calculate the symbol value.
93 (scan_reloc_section_for_stubs): Allow stubs to be created for
94 section symbols.
95 (maybe_apply_stub): Handle creating stubs for weak symbols to
96 match the code in scan_reloc_for_stub.
97
98 2017-06-20 James Clarke <jrtc27@jrtc27.com>
99
100 * powerpc.cc (Stub_table::define_stub_syms): Always include object's
101 uniq_ value.
102
103 2017-06-15 Eric Christopher <echristo@gmail.com>
104
105 * aarch64.cc: Fix a few typos and grammar-os.
106
107 2017-06-15 Jiong Wang <jiong.wang@arm.com>
108
109 * aarch64.cc (Insn_utilities::is_mrs_tpidr_el0): New method.
110 (AArch64_relobj<size, big_endian>::try_fix_erratum_843419_optimized):
111 Return ture for some TLS relaxed sequences.
112
113 2017-06-07 Eric Christopher <echristo@gmail.com>
114
115 * aarch64.cc (maybe_apply_stub): Add debug logging for looking
116 up stubs to undefined symbols and early return rather than
117 fail to look them up.
118 (scan_reloc_for_stub): Add debug logging for no stub creation
119 for undefined symbols.
120
121 2017-05-23 Alan Modra <amodra@gmail.com>
122
123 PR 21503
124 * options.h: Add --emit-stub-syms option.
125 * powerpc.cc (object_id): New.
126 (Powerpc_relobj): Add uniq_ and accessor. Sort variables for
127 better packing.
128 (Powerpc_dynobj): Sort variables for better packing.
129 (Target_powerpc::define_local): New function.
130 (Target_powerpc::group_sections): Pass stub table size to
131 Stub_table constructor.
132 (Target_powerpc::do_relax): Define stub and glink symbols.
133 (Stub_table): Add uniq_ variable, and id param to constructor.
134 (Stub_table::Plt_stub_ent): Add indx_ variable.
135 (Stub_table::Branch_stub_entries): Move typedef earlier.
136 (Stub_table::branch_stub_size): Replace "to" parameter with a
137 Branch_stub_entries iterator.
138 (Stub_table::add_long_branch_entry): Adjust to suit.
139 (Stub_table::add_plt_call_entry): Set indx_.
140 (Stub_table::define_stub_syms): New function.
141
142 2017-05-15 Eric Christopher <echristo@gmail.com>
143
144 * layout.cc (Layout::segment_precedes): Add a case for testing
145 pointer equality when determining which segment precedes
146 another.
147
148 2017-05-13 James Clarke <jrtc27@jrtc27.com>
149
150 PR gold/21444
151 * gold.cc (Target_sparc::Relocate::relocate_tls): Local
152 variables are final for position-independent executables. This
153 has to be consistent with Target_sparc::Scan::local otherwise
154 they will disagree as to whether local-exec is used.
155
156 2017-05-12 Igor Kudrin <ikudrin@accesssoftek.com>
157
158 PR gold/21430
159 * aarch64.cc
160 (AArch64_relobj::convert_input_section_to_relaxed_section):
161 Set the section offset to -1ULL.
162 (Target_aarch64::relocate_section): Adjust the view in case
163 of a relaxed input section.
164 * testsuite/Makefile.am (pr21430): New test.
165 * testsuite/Makefile.in: Regenerate
166 * testsuite/pr21430.s: New test source file.
167 * testsuite/pr21430.sh: New test script.
168
169 2017-04-27 Alan Modra <amodra@gmail.com>
170
171 * testsuite/plugin_section_order.c (onload): Add missing break.
172
173 2017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
174
175 * mips.cc (Mips_got_entry::hash()): Shift addend to reduce
176 possibility of collisions.
177 (Mips_got_entry::equals): Fix case for GOT_TLS_LDM
178 entries.
179
180 2017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
181
182 * mips.cc (Mips_relobj::merge_processor_specific_data_): New data
183 member.
184 (Mips_relobj::merge_processor_specific_data): New method.
185 (Mips_relobj::do_read_symbols): Set merge_processor_specific_data_
186 to false, only if the input file is a binary or if object has no
187 contents except the section name string table and an empty symbol
188 table with the undefined symbol.
189 (Target_mips::do_finalize_sections): Refactor. Skip empty object files
190 for merging processor-specific data.
191
192 2017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
193
194 * mips.cc (Target_mips::Relocate::calculated_value_): New data
195 member.
196 (Target_mips::Relocate::calculate_only_): Likewise.
197 (Target_mips::Relocate::relocate): Handle multiple consecutive
198 relocations with the same offset.
199
200 2017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
201
202 * mips.cc (Target_mips::Relocate::relocate): Remove redundant
203 checks for relocatable link.
204 (Mips_relocate_functions::reljalr): Likewise.
205
206 2017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
207
208 * mips.cc (class Mips_output_section_options): New class.
209 (Target_mips::do_make_output_section): New method.
210
211 2017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
212
213 * mips.cc (Mips_relocate_functions::rel26): Don't print relocation
214 overflow error message.
215 (Target_mips::relocate_special_relocatable): Improve relocation
216 overflow error message.
217 (Target_mips::Relocate::relocate): Likewise.
218
219 2017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
220
221 * mips.cc (symbol_refs_local): Return false if a symbol
222 is from a dynamic object.
223 (Target_mips::got_section): Make _GLOBAL_OFFSET_TABLE_ STV_HIDDEN.
224 (Target_mips::set_gp): Refactor. Make _gp STT_NOTYPE and
225 STB_LOCAL.
226 (Target_mips::do_finalize_sections): Set _gp after all the checks
227 for creating .got are done.
228 (Target_mips::Scan::global): Remove unused code.
229
230 2017-02-22 Alan Modra <amodra@gmail.com>
231
232 * powerpc.cc (Target_powerpc::make_iplt_section): Check that
233 output_section exists before attempting add_output_section_data.
234 (Target_powerpc::make_brlt_section): Likewise.
235
236 2017-02-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
237
238 * mips.cc (Target_mips::Scan::get_reference_flags): Remove
239 gold_unreachable from default case.
240
241 2017-02-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
242
243 PR gold/21111
244 * mips.cc (Mips_relocate_functions::relhigher): New method.
245 (Mips_relocate_functions::relhighest): Likewise.
246 (mips_get_size_for_reloc): Add support for relocs: R_MIPS_HIGHER and
247 R_MIPS_HIGHEST.
248 (Target_mips::Scan::local): Add support for relocs: R_MIPS_HIGHER,
249 R_MIPS_HIGHEST, R_MICROMIPS_HIGHER and R_MICROMIPS_HIGHEST.
250 (Target_mips::Scan::global): Likewise.
251 (Target_mips::Scan::get_reference_flags): Likewise.
252 (Target_mips::Relocate::relocate): Call static methods for resolving
253 HIGHER and HIGHEST relocations.
254
255 2017-02-03 Rahul Chaudhry <rahulchaudhry@google.com>
256
257 * x86_64.cc (Target_x86_64::do_can_check_for_function_pointers):
258 Return true even when building pie binaries.
259 (Target_x86_64::possible_function_pointer_reloc): Check opcode
260 for R_X86_64_PC32 relocations.
261 (Target_x86_64::local_reloc_may_be_function_pointer): Pass
262 extra arguments to local_reloc_may_be_function_pointer.
263 (Target_x86_64::global_reloc_may_be_function_pointer): Likewise.
264 * gc.h (gc_process_relocs): Add check for STT_FUNC.
265 * testsuite/Makefile.am (icf_safe_pie_test): New test case.
266 * testsuite/Makefile.in: Regenerate.
267 * testsuite/icf_safe_pie_test.sh: New shell script.
268
269 2017-02-03 Alan Modra <amodra@gmail.com>
270
271 * powerpc.cc (Powerpc_relobj::make_toc_relative): Don't crash
272 when no .toc section exists.
273
274 2017-01-31 Cary Coutant <ccoutant@gmail.com>
275
276 PR gold/21090
277 * x86_64.cc (Target_x86_64::can_convert_mov_to_lea): Add check
278 for predefined symbol.
279 (Target_x86_64::Relocate::relocate): Fix formatting.
280
281 2017-01-23 Rahul Chaudhry <rahulchaudhry@google.com>
282
283 * testsuite/icf_safe_so_test.sh: Use "set -e".
284 * testsuite/icf_safe_test.sh: Likewise.
285 * testsuite/icf_test.sh: Likewise.
286
287 2017-01-23 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
288
289 * mips.cc (Mips_output_data_plt::rel_plt): Remove const from return
290 type.
291 (Target_mips::make_plt_entry): Make the sh_info field of .rel.plt
292 point to .plt.
293
294 2017-01-23 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
295
296 PR gold/21054
297 * mips.cc (Mips_got_info::record_global_got_symbol): Don't add symbol
298 to the dynamic symbol table if it is forced to local visibility.
299 (Target_mips::do_finalize_sections): Don't add __RLD_MAP symbol to the
300 dynamic symbol table if it is forced to local visibility.
301
302 2017-01-20 Nick Clifton <nickc@redhat.com>
303
304 * aarch64.cc (Stub_template_repertoire): Change ST_E_835769_INSNS
305 from a pointer to an array.
306
307 2017-01-13 H.J. Lu <hongjiu.lu@intel.com>
308
309 PR gold/21040
310 * powerpc.cc (Powerpc_relobj<size, big_endian>::make_toc_relative):
311 Cast 0x80008000 to uint64_t.
312
313 2017-01-12 Cary Coutant <ccoutant@gmail.com>
314
315 * object.cc (Sized_relobj_file): Fix byte counts for calls to memmem.
316
317 2017-01-11 Cary Coutant <ccoutant@gmail.com>
318
319 PR gold/21040
320 * x86_64.cc (Output_data_plt_x86_64_bnd::do_fill_first_plt_entry):
321 Remove unnecessary 'typename' keyword.
322 (Output_data_plt_x86_64_bnd::do_fill_plt_entry): Likewise.
323 (Output_data_plt_x86_64_bnd::fill_aplt_entry): Likewise.
324 (Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry): Likewise.
325 (Output_data_plt_x86_64_bnd::do_write): Likewise.
326
327 2017-01-11 Cary Coutant <ccoutant@gmail.com>
328
329 PR gold/21040
330 * x86_64.cc (Output_data_plt_x86_64_bnd::do_fill_first_plt_entry):
331 Remove unnecessary 'typename' keyword.
332 (Output_data_plt_x86_64_bnd::do_fill_plt_entry): Likewise.
333 (Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry): Likewise.
334 (Output_data_plt_x86_64_bnd::fill_aplt_entry): Likewise.
335 * testsuite/copy_test_relro_1.cc (p, b, c, q): Add separate extern
336 declarations.
337
338 2017-01-11 Cary Coutant <ccoutant@gmail.com>
339
340 PR gold/21039
341 * testsuite/script_test_13.sh: Adjust patterns to work for i386.
342 * testsuite/script_test_15a.sh: Likewise.
343 * testsuite/script_test_15b.sh: Likewise.
344 * testsuite/script_test_15c.sh: Likewise.
345
346 2017-01-11 Alan Modra <amodra@gmail.com>
347
348 * powerpc.cc (class Powerpc_copy_relocs): New.
349 (Powerpc_copy_relocs::emit): New function.
350 (Powerpc_relobj::relatoc_, toc_, no_toc_opt_): New variables.
351 (Powerpc_relobj::toc_shndx, set_no_toc_opt, no_toc_opt): New inlines.
352 (Powerpc_relobj::do_relocate_sections): New function.
353 (Powerpc_relobj::make_toc_relative): Likewise.
354 (Powerpc_relobj::do_find_special_sections): Stash away .rela.toc
355 and .toc too.
356 (ok_lo_toc_insn): Move earlier, and handle more insns.
357 (Target_powerpc::Scan::local): If optimizing toc accesses, set
358 no_toc_opt for entries we can't edit. Check insn validity.
359 Emit "toc optimization is not supported" warning, downgraded
360 from error.
361 (Target_powerpc::Scan::global): Likewise.
362 (Target_powerpc::Relocate::relocate): Edit TOC indirect code
363 to TOC relative. Don't emit "toc optimization is not supported"
364 error here.
365
366 2017-01-10 Cary Coutant <ccoutant@gmail.com>
367
368 * aarch64.cc (AArch64_relobj::do_relocate_sections): Call
369 Sized_relobj_file::relocate_section_range().
370 * arm.cc (Arm_relobj::do_relocate_sections): Likewise.
371 * object.h (Sized_relobj_file::relocate_section_range): New method.
372 * reloc.cc (Sized_relobj_file::do_relocate_sections): Move
373 implementation...
374 (Sized_relobj_file::relocate_section_range): ...to new method.
375
376 2017-01-10 Alan Modra <amodra@gmail.com>
377
378 * testsuite/ver_test_8.sh: Accept .TOC. in lieu of
379 _GLOBAL_OFFSET_TABLE_. Allow zero count.
380 * testsuite/copy_test_relro_1.cc (c, q): New vars.
381 * testsuite/copy_test_relro.cc: Rewrite to test read-only
382 status of variables directly. Reference new vars in
383 read-only data.
384
385 2017-01-10 Alan Modra <amodra@gmail.com>
386
387 * options.h: Add --secure-plt option.
388 * powerpc.cc (Target_powerpc::Scan::local): Detect and error
389 on -fPIC -mbss-plt code.
390 (Target_powerpc::Scan::global): Likewise.
391
392 2017-01-09 Alan Modra <amodra@gmail.com>
393
394 * powerpc.cc (Target_powerpc::make_plt_section): Point sh_info of
395 ".rela.plt" at ".plt".
396
397 2017-01-07 Alan Modra <amodra@gmail.com>
398
399 * powerpc.cc: Use shorter equivalent elfcpp typedef for
400 Reltype and reloc_size throughout.
401 (Target_powerpc::symval_for_branch): Exclude dynamic symbols.
402 (Target_powerpc::Scan::local): Use local var r_sym.
403 (Target_powerpc::Scan::global: Likewise.
404 (Target_powerpc::Relocate::relocate): Delete shadowing r_sym.
405
406 2017-01-02 Alan Modra <amodra@gmail.com>
407
408 Update year range in copyright notice of all files.
409
410 For older changes see ChangeLog-2016
411 \f
412 Copyright (C) 2017 Free Software Foundation, Inc.
413
414 Copying and distribution of this file, with or without modification,
415 are permitted in any medium without royalty provided the copyright
416 notice and this notice are preserved.
417
418 Local Variables:
419 mode: change-log
420 left-margin: 8
421 fill-column: 74
422 version-control: never
423 End:
This page took 0.039981 seconds and 5 git commands to generate.