Workaround GCC 7 bug with debug line numbers causing debug_msg.sh failure.
[deliverable/binutils-gdb.git] / gold / ChangeLog
CommitLineData
0af4ccfc
CC
12017-12-01 Cary Coutant <ccoutant@gmail.com>
2
3 PR gold/21841
4 * testsuite/debug_msg.sh: Adjust expected line numbers.
5 * testsuite/odr_violation2.cc (DummyFunction): New function.
6
059256c7
CC
72017-12-01 Cary Coutant <ccoutant@gmail.com>
8
9 PR gold/22309
10 * testsuite/Makefile.am (two_file_test_1_v1_ndebug.o): Compile with
11 no EH information.
12 (two_file_test_1_ndebug.o): Likewise.
13 * testsuite/Makefile.in: Regenerate.
14 * testsuite/two_file_test_1.cc: Touch to force recompilation with new
15 flags.
16 * testsuite/two_file_test_1_v1.cc: Likewise.
17
7ef67ba5
CC
182017-12-01 Cary Coutant <ccoutant@gmail.com>
19
20 PR gold/22042
21 * options.h (-fuse-ld): Use NULL instead of empty string.
22
bd2e3511
BP
232017-12-01 Benjamin Peterson <bp@benjamin.pe>
24
25 PR gold/22406
26 * gold.cc (queue_initial_tasks) Check for number of real input files.
27 * options.cc (Command_line::process) Check for unterminated --start-lib
28 options.
29 * testsuite/Makefile.am: Add new test script.
30 * testsuite/Makefile.in: Regenerate.
31 * testsuite/check_empty_command_lines.sh: New test script.
32
71739b69
SC
332017-11-17 Stephen Crane <sjc@immunant.com>
34
35 PR gold/22448
36 * symtab.cc (Symbol_table::add_from_object): Only rescan for
37 undefined symbols in regular, not dynamic, objects.
38
fd6798fa
PS
392017-11-30 Peter Smith <peter.smith@linaro.org>
40
41 PR gold/20765
42 * aarch64.cc (Aarch64_relobj::update_erratum_address): New method.
43 (AArch64_relobj::scan_errata): Update addresses in stub table after
44 relaxation pass.
45
e0feb133
CC
462017-11-30 Peter Smith <peter.smith@linaro.org>
47 Cary Coutant <ccoutant@gmail.com>
48
49 PR gold/20765
50 * aarch64.cc (Erratum_stub::invalidate_erratum_stub): Use erratum_insn_
51 instead of relobj_ to invalidate the stub.
52 (Erratum_stub::is_invalidated_erratum_stub): Likewise.
53
036aae79
PS
542017-11-30 Peter Smith <peter.smith@linaro.org>
55
56 PR gold/22233
57 * aarch64.cc (AArch64_relobj::fix_errata_and_relocate_erratum_stubs):
58 Fix calculation of stub address.
59
ca39c2f4
SS
602017-11-29 Stefan Stroe <stroestefan@gmail.com>
61
62 * po/Make-in (datadir): Define as @datadir@.
63 (localedir): Define as @localedir@.
64 (gnulocaledir, gettextsrcdir): Use @datarootdir@.
65
5dc824ed
CC
662017-11-28 Cary Coutant <ccoutant@gmail.com>
67
68 * resolve.cc (Symbol_table::resolve): Allow multiply-defined absolute
69 symbols when they have the same value.
70
8de0e07b
CC
712017-11-28 Cary Coutant <ccoutant@gmail.com>
72
73 * object.h (class Sized_relobj_file): Remove discarded_eh_frame_shndx_.
74 * object.cc (Sized_relobj_file::Sized_relobj_file): Likewise.
75 (Sized_relobj_file::layout_eh_frame_section): Likewise.
76 (Sized_relobj_file::do_count_local_symbols): Check for optimized
77 .eh_frame section by other means.
78 (Sized_relobj_file::compute_final_local_value_internal): Likewise.
79
ff174d3f
L
802017-11-28 H.J. Lu <hongjiu.lu@intel.com>
81
82 * testsuite/pr22266_a.c: Add a newline at end of file.
83
033bfb73
CC
842017-11-27 Cary Coutant <ccoutant@gmail.com>
85
86 PR gold/19291
87 PR gold/22266
88 * object.cc (Sized_relobj_file::compute_final_local_value_internal):
89 Revert changes from 2017-11-08 patch. Adjust symbol value in
90 relocatable links for non-section symbols.
91 (Sized_relobj_file::compute_final_local_value): Revert changes from
92 2017-11-08 patch.
93 (Sized_relobj_file::do_finalize_local_symbols): Likewise.
94 (Sized_relobj_file::write_local_symbols): Revert changes from
95 2015-11-25 patch.
96 * object.h (Sized_relobj_file::compute_final_local_value_internal):
97 Revert changes from 2017-11-08 patch.
98 * powerpc.cc (Target_powerpc::relocate_relocs): Adjust addend for
99 relocatable links.
100 * target-reloc.h (relocate_relocs): Adjust addend for relocatable links.
101 * testsuite/pr22266_a.c (hello): New function.
102 * testsuite/pr22266_main.c (main): Add test for merge sections.
103 * testsuite/pr22266_script.t: Add rule for .rodata.
104
20dd9c21
CC
1052017-11-19 Ian Lance Taylor <iant@google.com>
106 Cary Coutant <ccoutant@gmail.com>
107
9c512d88 108 * dwarf_reader.h (class Dwarf_info_reader): Add ref_addr_size
20dd9c21 109 method.
9c512d88 110 * dwarf_reader.cc (Dwarf_die::read_attributes): Use ref_addr_size
20dd9c21
CC
111 for DW_FORM_ref_addr_size.
112 (Dwarf_die::skip_attributes): Likewise.
113
dc8d2d90
L
1142017-11-08 H.J. Lu <hongjiu.lu@intel.com>
115
116 PR gold/22291
117 * layout.cc (Layout::define_section_symbols): Use STV_PROTECTED
118 for __start and __stop symbols.
119 * symtab.cc (Symbol_table::define_special_symbol): Add an
120 argument, visibility. Ignore definition and reference from
121 a dynamic object, depending on visibility.
122 (Symbol_table::do_define_in_output_data): Pass visibility to
123 define_special_symbol.
124 (Symbol_table::do_define_in_output_segment): Likewise.
125 (Symbol_table::do_define_as_constant): Likewise.
126 (Symbol_table::add_undefined_symbol_from_command_line): Pass
127 STV_DEFAULT to define_special_symbol.
128 * symtab.h (Symbol_table::define_special_symbol): Add an
129 argument, visibility.
130
333d0055
JC
1312017-11-08 James Clarke <jrtc27@jrtc27.com>
132
133 PR gold/22266
134 * object.cc (Sized_relobj_file::compute_final_local_value_internal):
135 Drop relocatable parameter and stop adjusting output value based on
136 it.
137 (Sized_relobj_file::compute_final_local_value): Stop passing
138 relocatable to compute_final_local_value_internal.
139 (Sized_relobj_file::do_finalize_local_symbols): Ditto.
140 * object.h (Sized_relobj_file::compute_final_local_value_internal):
141 Drop relocatable parameter.
142
08228b11
EC
1432017-11-08 Kyle Butt <iteratee@google.com>
144
145 * object.cc (do_find_special_sections): Fix a thinko with memmem return
146 values and check for != NULL rather than == 0.
147
6003e27e
AM
1482017-11-07 Alan Modra <amodra@gmail.com>
149
150 * system.h (textdomain, bindtextdomain): Use safer "do nothing".
151 (ngettext, dngettext, dcngettext): Define when !ENABLE_NLS.
152
e601d38b
AM
1532017-10-25 Alan Modra <amodra@gmail.com>
154
155 * symtab.cc (Symbol_table::add_from_relobj): Match "__gnu_lto_slim"
156 optionally prefixed with "_".
157
d6361359 1582017-10-20 Sriraman Tallam <tmsriram@google.com>
3b4190cc
ST
159
160 * options.h (-z,text_unlikely_segment): New option.
161 * layout.cc (Layout::layout): Create new output section
162 for .text.unlikely sections with the new option.
163 (Layout::segment_precedes): Check for the new option
164 when segment flags match.
165 * testsuite/text_unlikely_segment.cc: New test source.
166 * testsuite/text_unlikely_segment.sh: New test script.
167 * testsuite/Makefile.am (text_unlikely_segment): New test.
168 * testsuite/Makefile.in: Regenerate.
169
36862fc0
UK
1702017-10-19 Umesh Kalappa <ukalappa@cisco.com>
171
172 * arm.cc (Stub::do_fixed_endian_write):Far call stubs support for arm
173 in the be8 mode.
174 * testsuite/Makefile.am: New test cases.
175 * testsuite/Makefile.in: Regenerate.
176 * testsuite/arm_farcall_arm_arm_be8.sh: New script for arm to arm far
177 call stubs.
178 * testsuite/arm_farcall_thumb_thumb_be8.sh: New script for thumb to
179 thumb far call stubs.
180
412294da
AM
1812017-10-18 Kyle Butt <iteratee@google.com>
182 Alan Modra <amodra@gmail.com>
183
184 * powerpc.cc (Target_powerpc::Scan::local): Correct dst_off
185 calculation for TOC16 relocs.
186 (Target_powerpc::Scan::global): Likewise.
187
00956d3a
CC
1882017-09-26 Cary Coutant <ccoutant@gmail.com>
189
190 PR gold/22213
191 * sparc.cc (Target_sparc): Fix incorrect register mask.
192
0cf44ec8
JW
1932017-09-22 Jim Wilson <jim.wilson@linaro.org>
194
195 * aarch64.cc (Target_aarch64::aarch64_info): Set
196 is_default_stack_executable to false.
197
7790bd6c
AM
1982017-09-22 Alan Modra <amodra@gmail.com>
199
200 * resolve.cc (clone): Fix got_offset_list test.
201
ec769010
AM
2022017-09-22 Alan Modra <amodra@gmail.com>
203
204 * powerpc.cc (Target_powerpc<64,*>::powerpc_info): Set
205 is_default_stack_executable false.
206
ca464aac
TJ
2072017-09-20 Teresa Johnson <tejohnson@google.com>
208
209 * plugin.cc (is_visible_from_outside): Check for export dynamic symbol
210 option and list.
211 * testsuite/Makefile.am (plugin_test_12): New test.
212 * testsuite/Makefile.in: Regenerate.
213 * testsuite/export_dynamic_plugin.cc: New test source.
214 * testsuite/plugin_test_12.sh: New test script.
215
64b5d6d7
AM
2162017-09-20 Alan Modra <amodra@gmail.com>
217
218 * powerpc.cc (Target_powerpc::Branch_info::make_stub): Put
219 stubs for ppc32 non-branch relocs in first stub table.
220 (Target_powerpc::Relocate::relocate): Resolve similarly.
221
ab502e63
AM
2222017-09-19 Alan Modra <amodra@gmail.com>
223
224 * options.h (stub-group-multi): Default to true. Add
225 --no-stub-group-multi.
226
9a23f96e
AM
2272017-08-30 Alan Modra <amodra@gmail.com>
228
229 * powerpc.cc (Target_powerpc::Relocate::relocate): Nop addis on
230 TPREL16_HA, and convert insn on TPREL16_LO and TPREL16_LO_DS
231 relocs to use r2/r13 when addis would add zero.
232
34e0882b
AM
2332017-08-29 Alan Modra <amodra@gmail.com>
234
235 * options.h (tls_get_addr_optimize): New option.
236 * symtab.h (Symbol::clear_in_reg, clone): New functions.
237 (Sized_symbol::clone): New function.
238 (Symbol_table::clone): New function.
239 * resolve.cc (Symbol::clone, Sized_symbol::clone): New functions.
240 * powerpc.cc (Target_powerpc::has_tls_get_addr_opt_,
241 tls_get_addr_, tls_get_addr_opt_): New vars.
242 (Target_powerpc::tls_get_addr_opt, tls_get_addr,
243 is_tls_get_addr_opt, replace_tls_get_addr,
244 set_has_tls_get_addr_opt, stk_linker): New functions.
245 (Target_powerpc::Track_tls::maybe_skip_tls_get_addr_call): Add
246 target param. Update callers. Compare symbols rather than names.
247 (Target_powerpc::do_define_standard_symbols): Init tls_get_addr_
248 and tls_get_addr_opt_.
249 (Target_powerpc::Branch_info::mark_pltcall): Translate tls_get_addr
250 sym to tls_get_addr_opt.
251 (Target_powerpc::Branch_info::make_stub): Likewise.
252 (Stub_table::define_stub_syms): Likewise.
253 (Target_powerpc::Scan::global): Likewise.
254 (Target_powerpc::Relocate::relocate): Likewise.
255 (add_3_12_2, add_3_12_13, bctrl, beqlr, cmpdi_11_0, cmpwi_11_0,
256 ld_11_1, ld_11_3, ld_12_3, lwz_11_3, lwz_12_3, mr_0_3, mr_3_0,
257 mtlr_11, std_11_1): New constants.
258 (Stub_table::eh_frame_added_): Delete.
259 (Stub_table::tls_get_addr_opt_bctrl_, plt_fde_len_, plt_fde_): New vars.
260 (Stub_table::init_plt_fde): New functions.
261 (Stub_table::add_eh_frame, replace_eh_frame): Move definition out
262 of line. Init and use plt_fde_.
263 (Stub_table::plt_call_size): Return size for tls_get_addr stub.
264 Extract alignment code to..
265 (Stub_table::plt_call_align): ..this new function. Adjust all callers.
266 (Stub_table::add_plt_call_entry): Set has_tls_get_addr_opt and
267 tls_get_addr_opt_bctrl, and align after that.
268 (Stub_table::do_write): Write out tls_get_addr stub.
269 (Target_powerpc::do_finalize_sections): Emit DT_PPC_OPT
270 PPC_OPT_TLS/PPC64_OPT_TLS bit.
271 (Target_powerpc::Relocate::relocate): Don't check for or modify
272 nop following bl for tls_get_addr stub.
273
34ca2bd7
AM
2742017-08-29 Alan Modra <amodra@gmail.com>
275
276 * symtab.h (Symbol): Split u_ into u1_ and u2_. Adjust accessors
277 to suit. Move plt_offset_ before got_offsets_.
278 * symtab.cc (Symbol::init_fields): Adjust for union change.
279 (Symbol::init_base_output_data): Likewise.
280 (Symbol::init_base_output_segment): Likewise.
281 (Symbol::allocate_base_common): Likewise.
282 (Symbol::output_section): Likewise.
283 (Symbol::set_output_section): Likewise.
284 (Symbol::set_output_segment): Likewise.
285 * resolve.cc (Symbol::override_base): Likewise.
286 (Symbol::override_base_with_special): Likewise.
287
cefdd1cd
IK
2882017-08-28 Igor Kudrin <ikudrin@accesssoftek.com>
289
290 * aarch64.cc (Target_aarch64::Relocate::relocate_tls):
291 Make got_tlsdesc_offset signed and fix its calculation.
292 * testsuite/Makefile.am (aarch64_tlsdesc): New test.
293 * testsuite/Makefile.in: Regenerate.
294 * testsuite/aarch64_tlsdesc.s: New test source file.
295 * testsuite/aarch64_tlsdesc.sh: New test script.
296 * testsuite/aarch64_tlsdesc.t: New test linker script.
297
565ed01a
AM
2982017-08-28 Alan Modra <amodra@gmail.com>
299
300 PR 21847
301 * powerpc.cc (Target_powerpc::is_elfv2_localentry0): Test
302 non_zero_localentry.
303 (Target_powerpc::resolve): New function.
304 (powerpc_info): Set has_resolve for 64-bit.
305 * target.h (Sized_target::resolve): Return bool.
306 * resolve.cc (Symbol_table::resolve): Continue with normal
307 processing when target resolve returns false.
308 * symtab.h (Symbol::non_zero_localentry, set_non_zero_localentry):
309 New accessors.
310 (Symbol::non_zero_localentry_): New flag bit.
311 * symtab.cc (Symbol::init_fields): Init non_zero_localentry_.
312
2760f24c
RG
3132017-08-08 Romain Geissler <romain.geissler@gmail.com>
314 Alan Modra <amodra@gmail.com>
315
316 * configure.ac: Add --enable-default-hash-style option.
317 * options.h (hash_style): Use DEFAULT_HASH_STYLE as default value.
318 * configure: Regenerate.
319 * config.in: Regenerate.
320
223b97ba
JC
3212017-08-03 James Clarke <jrtc27@jrtc27.com>
322
323 * options.h (General_options): Set a non-NULL second help string
324 argument for relax to allow --no-relax.
325
be897fb7
AM
3262017-08-01 Alan Modra <amodra@gmail.com>
327
328 * ehframe.cc (Fde::operator==): New.
329 (Cie::remove_fde, Eh_frame::remove_ehframe_for_plt): New.
330 * ehframe.h (Fde::operator==): Declare.
331 (Cie::remove_fde, Eh_frame::remove_ehframe_for_plt): Likewise.
332 * layout.cc (Layout::remove_eh_frame_for_plt): New.
333 * layout.h (Layout::remove_eh_frame_for_plt): Declare.
334 * powerpc.cc (Target_powerpc::do_relax): Remove old eh_frame FDEs.
335 (Stub_table::add_eh_frame): Delete eh_frame_added_ condition.
336 Don't add eh_frame for empty stub section.
337 (Stub_table::remove_eh_frame): New.
338
aacb3b6d
AM
3392017-07-31 Alan Modra <amodra@gmail.com>
340
341 * options.h (no_tls_optimize): New powerpc option.
342 * powerpc.cc (Target_powerpc::abiversion, set_abiversion): Formatting.
343 (Target_powerpc::stk_toc): Formatting, fix comment.
344 (Target_powerpc::Track_tls::tls_get_addr_state): Rename from
345 tls_get_addr.
346 (Target_powerpc::optimize_tls_gd, optimize_tls_ld, optimize_tls_ie):
347 Return TLSOPT_NONE when !tls_optimize.
348 (Target_powerpc::add_global_pair_with_rel): Check
349 for existing reloc before reserving.
350 (Target_powerpc::add_local_tls_pair): Likewise.
351
d44c746a
AM
3522017-07-31 Alan Modra <amodra@gmail.com>
353
565ed01a 354 PR 21847
d44c746a
AM
355 * powerpc.cc (Target_powerpc::scan_relocs): Warn on --plt-localentry
356 without ld.so checks.
357
8b5f1ed8
AM
3582017-07-29 Alan Modra <amodra@gmail.com>
359
360 PR 21847
361 * powerpc.cc (Target_powerpc::scan_relocs): Default to
362 --no-plt-localentry.
363
49ba15a2
L
3642017-07-28 H.J. Lu <hongjiu.lu@intel.com>
365
366 PR gold/21857
367 * compressed_output.cc (Output_compressed_section::set_final_data_size):
368 Call put_ch_reserved to clear the reserved field for 64-bit ELF.
369
104f0515
L
3702017-07-26 H.J. Lu <hongjiu.lu@intel.com>
371
372 * mips.cc (Mips_relocate_functions): Add "llu" suffix to
373 0x800080008000.
374
15a3a14f
AM
3752017-07-23 Alan Modra <amodra@gmail.com>
376
377 * powerpc.cc (glink_eh_frame_fde_64v2): Correct advance to
378 restore of LR.
379 (glink_eh_frame_fde_64v1): Advance to restore of LR at latest
380 possible insn.
381
de194d85
YC
3822017-07-18 Nick Clifton <nickc@redhat.com>
383
384 PR 21775
385 * aarch64.cc: Fix spelling typos.
386 * arm.cc: Likewise.
387 * layout.cc: Likewise.
388 * powerpc.cc: Likewise.
389 * x86_64.cc: Likewise.
390
429d795d
AM
3912017-07-12 Alan Modra <amodra@gmail.com>
392
393 * po/es.po: Update from translationproject.org/latest/gold/.
394 * po/fi.po: Likewise.
395 * po/fr.po: Likewise.
396 * po/id.po: Likewise.
397 * po/it.po: Likewise.
398 * po/vi.po: Likewise.
399 * po/zh_CN.po: Likewise.
400 * po/ja.po: New file from translationproject.org.
401 * po/sv.po: Likewise.
402 * po/uk.po: Likewise.
403
b7d7d459
CC
4042017-07-06 Han Shen <shenhan@google.com>
405
406 PR gold/21491
407 * aarch64.cc (Erratum_stub::invalidate_erratum_stub): New method.
408 (Erratum_stub::is_invalidated_erratum_stub): New method.
409 (Stub_table::relocate_reloc_stub): Renamed from "relocate_stub".
410 (Stub_table::relocate_reloc_stubs): Renamed from "relocate_stubs".
411 (Stub_table::relocate_erratum_stub): New method.
412 (AArch64_relobj::fix_errata_and_relocate_erratum_stubs): Renamed from
413 "fix_errata".
414 (Target_aarch64::relocate_reloc_stub): Renamed from "relocate_stub".
415
7ee7ff70
AM
4162017-06-23 Alan Modra <amodra@gmail.com>
417
418 * options.h (General_options): Add plt_localentry.
419 * powerpc.cc (Target_powerpc::st_other): New function.
420 (Target_powerpc::plt_localentry0_, plt_localentry0_init_,
421 has_localentry0_): New vars.
422 (Target_powerpc::plt_localentry0, set_has_localentry0,
423 is_elfv2_localentry0): New functions.
424 (Target_powerpc::Branch_info::mark_pltcall): Don't set tocsave or
425 return true for localentry:0 calls.
426 (Stub_table::Plt_stub_ent::localentry0_): New var.
427 (Stub_table::add_plt_call_entry): Set localentry0_ and has_localentry0_.
428 Don't set r2save_ for localentry:0 calls.
429 (Output_data_glink::do_write): Save r2 in __glink_PLTresolve for elfv2.
430 (Target_powerpc::scan_relocs): Default plt_localentry0_.
431 (Target_powerpc::do_finalize_sections): Set DT_PPC64_OPT.
432 (Target_powerpc::Relocate::relocate): Don't require nop following
433 calls for localentry:0 plt calls, and don't change nop.
434
7e57d19e
AM
4352017-06-23 Alan Modra <amodra@gmail.com>
436
437 * powerpc.cc (Target_powerpc::tocsave_loc_): New var.
438 (Target_powerpc::mark_pltcall, add_tocsave, tocsave_loc): New functions.
439 (Target_powerpc::Branch_info::tocsave_): New var.
440 (Target_powerpc::Branch_info::mark_pltcall): New function.
441 (Target_powerpc::Branch_info::make_stub): Pass tocsave_ to
442 add_plt_call_entry.
443 (Stub_table::Plt_stub_ent): Make public. Add r2save_.
444 (Stub_table::add_plt_call_entry): Add bool tocsave_ param. Set
445 r2save_.
446 (Stub_table::find_plt_call_entry): Return Plt_stub_ent*. Adjust
447 use throughout.
448 (Stub_table::do_write): Conditionally output r2 save in plt stubs.
449 (Target_powerpc::Scan::local): Handle R_PPC64_TOCSAVE.
450 (Target_powerpc::Scan::global): Likewise.
451 (Target_powerpc::Relocate::relocate): Skip r2 save in plt call stub
452 with tocsave reloc. Replace header tocsave nop with r2 save.
453 * symtab.h (struct Symbol_location_hash): Make public.
454
bdab445c
AM
4552017-06-21 Alan Modra <amodra@gmail.com>
456
457 * powerpc.cc (Plt_stub_key): Rename from Plt_stub_ent. Remove indx_.
458 (Plt_stub_key_hash): Rename from Plt_stub_ent_hash.
459 (struct Plt_stub_ent): New.
460 (Plt_stub_entries): Map from Plt_stub_key to Plt_stub_ent. Adjust
461 use throughout file.
462
69431bab
EC
4632017-06-20 Eric Christopher <echristo@gmail.com>
464
465 * aarch64.cc (scan_reloc_for_stub): Use plt_address_for_global to
466 calculate the symbol value.
467 (scan_reloc_section_for_stubs): Allow stubs to be created for
468 section symbols.
469 (maybe_apply_stub): Handle creating stubs for weak symbols to
470 match the code in scan_reloc_for_stub.
471
94de2a2c
JC
4722017-06-20 James Clarke <jrtc27@jrtc27.com>
473
474 * powerpc.cc (Stub_table::define_stub_syms): Always include object's
475 uniq_ value.
476
c092b67b
EC
4772017-06-15 Eric Christopher <echristo@gmail.com>
478
479 * aarch64.cc: Fix a few typos and grammar-os.
480
37de058a
JW
4812017-06-15 Jiong Wang <jiong.wang@arm.com>
482
483 * aarch64.cc (Insn_utilities::is_mrs_tpidr_el0): New method.
484 (AArch64_relobj<size, big_endian>::try_fix_erratum_843419_optimized):
485 Return ture for some TLS relaxed sequences.
486
81b6fe3b
EC
4872017-06-07 Eric Christopher <echristo@gmail.com>
488
489 * aarch64.cc (maybe_apply_stub): Add debug logging for looking
490 up stubs to undefined symbols and early return rather than
491 fail to look them up.
492 (scan_reloc_for_stub): Add debug logging for no stub creation
493 for undefined symbols.
494
590b87ff
AM
4952017-05-23 Alan Modra <amodra@gmail.com>
496
497 PR 21503
498 * options.h: Add --emit-stub-syms option.
499 * powerpc.cc (object_id): New.
500 (Powerpc_relobj): Add uniq_ and accessor. Sort variables for
501 better packing.
502 (Powerpc_dynobj): Sort variables for better packing.
503 (Target_powerpc::define_local): New function.
504 (Target_powerpc::group_sections): Pass stub table size to
505 Stub_table constructor.
506 (Target_powerpc::do_relax): Define stub and glink symbols.
507 (Stub_table): Add uniq_ variable, and id param to constructor.
508 (Stub_table::Plt_stub_ent): Add indx_ variable.
509 (Stub_table::Branch_stub_entries): Move typedef earlier.
510 (Stub_table::branch_stub_size): Replace "to" parameter with a
511 Branch_stub_entries iterator.
512 (Stub_table::add_long_branch_entry): Adjust to suit.
513 (Stub_table::add_plt_call_entry): Set indx_.
514 (Stub_table::define_stub_syms): New function.
515
0c38a3d1
EC
5162017-05-15 Eric Christopher <echristo@gmail.com>
517
518 * layout.cc (Layout::segment_precedes): Add a case for testing
519 pointer equality when determining which segment precedes
520 another.
521
67f46fed
JC
5222017-05-13 James Clarke <jrtc27@jrtc27.com>
523
524 PR gold/21444
525 * gold.cc (Target_sparc::Relocate::relocate_tls): Local
526 variables are final for position-independent executables. This
527 has to be consistent with Target_sparc::Scan::local otherwise
528 they will disagree as to whether local-exec is used.
529
6bf56e74
IK
5302017-05-12 Igor Kudrin <ikudrin@accesssoftek.com>
531
532 PR gold/21430
533 * aarch64.cc
534 (AArch64_relobj::convert_input_section_to_relaxed_section):
535 Set the section offset to -1ULL.
536 (Target_aarch64::relocate_section): Adjust the view in case
537 of a relaxed input section.
538 * testsuite/Makefile.am (pr21430): New test.
539 * testsuite/Makefile.in: Regenerate
540 * testsuite/pr21430.s: New test source file.
541 * testsuite/pr21430.sh: New test script.
542
a61d92b7
AM
5432017-04-27 Alan Modra <amodra@gmail.com>
544
545 * testsuite/plugin_section_order.c (onload): Add missing break.
546
aab2c177
VR
5472017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
548
549 * mips.cc (Mips_got_entry::hash()): Shift addend to reduce
550 possibility of collisions.
551 (Mips_got_entry::equals): Fix case for GOT_TLS_LDM
552 entries.
553
4d78db49
VR
5542017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
555
556 * mips.cc (Mips_relobj::merge_processor_specific_data_): New data
557 member.
558 (Mips_relobj::merge_processor_specific_data): New method.
559 (Mips_relobj::do_read_symbols): Set merge_processor_specific_data_
560 to false, only if the input file is a binary or if object has no
561 contents except the section name string table and an empty symbol
562 table with the undefined symbol.
563 (Target_mips::do_finalize_sections): Refactor. Skip empty object files
564 for merging processor-specific data.
565
152c92b2
VR
5662017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
567
568 * mips.cc (Target_mips::Relocate::calculated_value_): New data
569 member.
570 (Target_mips::Relocate::calculate_only_): Likewise.
571 (Target_mips::Relocate::relocate): Handle multiple consecutive
572 relocations with the same offset.
573
1728969e
VR
5742017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
575
1e1247c8
VR
576 * mips.cc (Target_mips::Relocate::relocate): Remove redundant
577 checks for relocatable link.
578 (Mips_relocate_functions::reljalr): Likewise.
1728969e 579
c3847462
VR
5802017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
581
1e1247c8
VR
582 * mips.cc (class Mips_output_section_options): New class.
583 (Target_mips::do_make_output_section): New method.
c3847462 584
453018bf
VR
5852017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
586
1e1247c8
VR
587 * mips.cc (Mips_relocate_functions::rel26): Don't print relocation
588 overflow error message.
589 (Target_mips::relocate_special_relocatable): Improve relocation
590 overflow error message.
591 (Target_mips::Relocate::relocate): Likewise.
592
5932017-03-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
594
595 * mips.cc (symbol_refs_local): Return false if a symbol
596 is from a dynamic object.
597 (Target_mips::got_section): Make _GLOBAL_OFFSET_TABLE_ STV_HIDDEN.
598 (Target_mips::set_gp): Refactor. Make _gp STT_NOTYPE and
599 STB_LOCAL.
600 (Target_mips::do_finalize_sections): Set _gp after all the checks
601 for creating .got are done.
602 (Target_mips::Scan::global): Remove unused code.
453018bf 603
6528b6eb
AM
6042017-02-22 Alan Modra <amodra@gmail.com>
605
606 * powerpc.cc (Target_powerpc::make_iplt_section): Check that
607 output_section exists before attempting add_output_section_data.
608 (Target_powerpc::make_brlt_section): Likewise.
609
f9029569
VR
6102017-02-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
611
612 * mips.cc (Target_mips::Scan::get_reference_flags): Remove
613 gold_unreachable from default case.
614
e242ece1
VR
6152017-02-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
616
617 PR gold/21111
f9029569
VR
618 * mips.cc (Mips_relocate_functions::relhigher): New method.
619 (Mips_relocate_functions::relhighest): Likewise.
620 (mips_get_size_for_reloc): Add support for relocs: R_MIPS_HIGHER and
621 R_MIPS_HIGHEST.
622 (Target_mips::Scan::local): Add support for relocs: R_MIPS_HIGHER,
623 R_MIPS_HIGHEST, R_MICROMIPS_HIGHER and R_MICROMIPS_HIGHEST.
624 (Target_mips::Scan::global): Likewise.
625 (Target_mips::Scan::get_reference_flags): Likewise.
626 (Target_mips::Relocate::relocate): Call static methods for resolving
627 HIGHER and HIGHEST relocations.
e242ece1 628
4aebb631
RC
6292017-02-03 Rahul Chaudhry <rahulchaudhry@google.com>
630
631 * x86_64.cc (Target_x86_64::do_can_check_for_function_pointers):
632 Return true even when building pie binaries.
633 (Target_x86_64::possible_function_pointer_reloc): Check opcode
634 for R_X86_64_PC32 relocations.
635 (Target_x86_64::local_reloc_may_be_function_pointer): Pass
636 extra arguments to local_reloc_may_be_function_pointer.
637 (Target_x86_64::global_reloc_may_be_function_pointer): Likewise.
638 * gc.h (gc_process_relocs): Add check for STT_FUNC.
639 * testsuite/Makefile.am (icf_safe_pie_test): New test case.
640 * testsuite/Makefile.in: Regenerate.
641 * testsuite/icf_safe_pie_test.sh: New shell script.
642
e666304e
AM
6432017-02-03 Alan Modra <amodra@gmail.com>
644
645 * powerpc.cc (Powerpc_relobj::make_toc_relative): Don't crash
646 when no .toc section exists.
647
ed35cc4a
CC
6482017-01-31 Cary Coutant <ccoutant@gmail.com>
649
650 PR gold/21090
651 * x86_64.cc (Target_x86_64::can_convert_mov_to_lea): Add check
652 for predefined symbol.
653 (Target_x86_64::Relocate::relocate): Fix formatting.
654
741bcbe9
RC
6552017-01-23 Rahul Chaudhry <rahulchaudhry@google.com>
656
657 * testsuite/icf_safe_so_test.sh: Use "set -e".
658 * testsuite/icf_safe_test.sh: Likewise.
659 * testsuite/icf_test.sh: Likewise.
660
04bc2a28
VR
6612017-01-23 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
662
663 * mips.cc (Mips_output_data_plt::rel_plt): Remove const from return
664 type.
665 (Target_mips::make_plt_entry): Make the sh_info field of .rel.plt
666 point to .plt.
667
c1f59f8f
VR
6682017-01-23 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
669
670 PR gold/21054
671 * mips.cc (Mips_got_info::record_global_got_symbol): Don't add symbol
672 to the dynamic symbol table if it is forced to local visibility.
673 (Target_mips::do_finalize_sections): Don't add __RLD_MAP symbol to the
674 dynamic symbol table if it is forced to local visibility.
675
a24df305
NC
6762017-01-20 Nick Clifton <nickc@redhat.com>
677
678 * aarch64.cc (Stub_template_repertoire): Change ST_E_835769_INSNS
679 from a pointer to an array.
680
857e829e
L
6812017-01-13 H.J. Lu <hongjiu.lu@intel.com>
682
683 PR gold/21040
684 * powerpc.cc (Powerpc_relobj<size, big_endian>::make_toc_relative):
685 Cast 0x80008000 to uint64_t.
686
aca5eec6
CC
6872017-01-12 Cary Coutant <ccoutant@gmail.com>
688
689 * object.cc (Sized_relobj_file): Fix byte counts for calls to memmem.
690
6624f3a1
CC
6912017-01-11 Cary Coutant <ccoutant@gmail.com>
692
693 PR gold/21040
694 * x86_64.cc (Output_data_plt_x86_64_bnd::do_fill_first_plt_entry):
695 Remove unnecessary 'typename' keyword.
696 (Output_data_plt_x86_64_bnd::do_fill_plt_entry): Likewise.
697 (Output_data_plt_x86_64_bnd::fill_aplt_entry): Likewise.
698 (Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry): Likewise.
699 (Output_data_plt_x86_64_bnd::do_write): Likewise.
700
976e204b
CC
7012017-01-11 Cary Coutant <ccoutant@gmail.com>
702
703 PR gold/21040
704 * x86_64.cc (Output_data_plt_x86_64_bnd::do_fill_first_plt_entry):
705 Remove unnecessary 'typename' keyword.
706 (Output_data_plt_x86_64_bnd::do_fill_plt_entry): Likewise.
707 (Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry): Likewise.
708 (Output_data_plt_x86_64_bnd::fill_aplt_entry): Likewise.
709 * testsuite/copy_test_relro_1.cc (p, b, c, q): Add separate extern
710 declarations.
711
1fa5f68b
CC
7122017-01-11 Cary Coutant <ccoutant@gmail.com>
713
714 PR gold/21039
715 * testsuite/script_test_13.sh: Adjust patterns to work for i386.
716 * testsuite/script_test_15a.sh: Likewise.
717 * testsuite/script_test_15b.sh: Likewise.
718 * testsuite/script_test_15c.sh: Likewise.
719
5edad15d
AM
7202017-01-11 Alan Modra <amodra@gmail.com>
721
722 * powerpc.cc (class Powerpc_copy_relocs): New.
723 (Powerpc_copy_relocs::emit): New function.
724 (Powerpc_relobj::relatoc_, toc_, no_toc_opt_): New variables.
725 (Powerpc_relobj::toc_shndx, set_no_toc_opt, no_toc_opt): New inlines.
726 (Powerpc_relobj::do_relocate_sections): New function.
727 (Powerpc_relobj::make_toc_relative): Likewise.
728 (Powerpc_relobj::do_find_special_sections): Stash away .rela.toc
729 and .toc too.
730 (ok_lo_toc_insn): Move earlier, and handle more insns.
731 (Target_powerpc::Scan::local): If optimizing toc accesses, set
732 no_toc_opt for entries we can't edit. Check insn validity.
733 Emit "toc optimization is not supported" warning, downgraded
734 from error.
735 (Target_powerpc::Scan::global): Likewise.
736 (Target_powerpc::Relocate::relocate): Edit TOC indirect code
737 to TOC relative. Don't emit "toc optimization is not supported"
738 error here.
739
98461510
CC
7402017-01-10 Cary Coutant <ccoutant@gmail.com>
741
742 * aarch64.cc (AArch64_relobj::do_relocate_sections): Call
743 Sized_relobj_file::relocate_section_range().
744 * arm.cc (Arm_relobj::do_relocate_sections): Likewise.
745 * object.h (Sized_relobj_file::relocate_section_range): New method.
746 * reloc.cc (Sized_relobj_file::do_relocate_sections): Move
747 implementation...
748 (Sized_relobj_file::relocate_section_range): ...to new method.
749
f7fd19e2
AM
7502017-01-10 Alan Modra <amodra@gmail.com>
751
752 * testsuite/ver_test_8.sh: Accept .TOC. in lieu of
753 _GLOBAL_OFFSET_TABLE_. Allow zero count.
754 * testsuite/copy_test_relro_1.cc (c, q): New vars.
755 * testsuite/copy_test_relro.cc: Rewrite to test read-only
756 status of variables directly. Reference new vars in
757 read-only data.
758
f159cdb6
AM
7592017-01-10 Alan Modra <amodra@gmail.com>
760
761 * options.h: Add --secure-plt option.
762 * powerpc.cc (Target_powerpc::Scan::local): Detect and error
763 on -fPIC -mbss-plt code.
764 (Target_powerpc::Scan::global): Likewise.
765
3254d32c
AM
7662017-01-09 Alan Modra <amodra@gmail.com>
767
768 * powerpc.cc (Target_powerpc::make_plt_section): Point sh_info of
769 ".rela.plt" at ".plt".
770
0e123f69
AM
7712017-01-07 Alan Modra <amodra@gmail.com>
772
773 * powerpc.cc: Use shorter equivalent elfcpp typedef for
774 Reltype and reloc_size throughout.
775 (Target_powerpc::symval_for_branch): Exclude dynamic symbols.
776 (Target_powerpc::Scan::local): Use local var r_sym.
777 (Target_powerpc::Scan::global: Likewise.
778 (Target_powerpc::Relocate::relocate): Delete shadowing r_sym.
779
2571583a
AM
7802017-01-02 Alan Modra <amodra@gmail.com>
781
782 Update year range in copyright notice of all files.
783
5c1ad6b5 784For older changes see ChangeLog-2016
3499769a 785\f
5c1ad6b5 786Copyright (C) 2017 Free Software Foundation, Inc.
3499769a
AM
787
788Copying and distribution of this file, with or without modification,
789are permitted in any medium without royalty provided the copyright
790notice and this notice are preserved.
791
792Local Variables:
793mode: change-log
794left-margin: 8
795fill-column: 74
796version-control: never
797End:
This page took 0.154477 seconds and 4 git commands to generate.