[GOLD] PR26936 test
[deliverable/binutils-gdb.git] / gold / ChangeLog
1 2020-12-03 Alan Modra <amodra@gmail.com>
2
3 * testsuite/Makefile.am (pr26936a.o): Pass -mx86-used-note=yes.
4 (pr26936b.o, pr26936c.o, pr26936d.o): Likewise.
5 * testsuite/Makefile.in: Regenerate.
6
7 2020-11-29 H.J. Lu <hongjiu.lu@intel.com>
8
9 PR ld/26972
10 * x86_64.cc (Output_data_plt_x86_64_ibt::tlsdesc_plt_entry): Add
11 endbr64.
12 (Output_data_plt_x86_64_ibt::do_fill_tlsdesc_entry): Adjusted.
13
14 2020-11-29 H.J. Lu <hongjiu.lu@intel.com>
15
16 PR gold/26939
17 * x86_64.cc (Target_x86_64<size>::Scan::local): Check
18 get_r_addend() == -4 for GOTPCRELX conversion.
19 (Target_x86_64<size>::Scan::global): Likewise.
20 (Target_x86_64<size>::Relocate::relocate): Likewise.
21 * testsuite/Makefile.am (check_DATA): Add
22 x86_64_mov_to_lea15.stdout and x86_64_mov_to_lea16.stdout.
23 (MOSTLYCLEANFILES): Add x86_64_mov_to_lea15 and
24 x86_64_mov_to_lea16.
25 (x86_64_mov_to_lea9.o): New target.
26 (x86_64_mov_to_lea10.o): Likewise.
27 (x86_64_mov_to_lea15): Likewise.
28 (x86_64_mov_to_lea16): Likewise.
29 (x86_64_mov_to_lea15.stdout): Likewise.
30 (x86_64_mov_to_lea16.stdout): Likewise.
31 * testsuite/Makefile.in: Regenerated.
32 * testsuite/x86_64_mov_to_lea.sh: Updated.
33 * testsuite/x86_64_mov_to_lea5.s: New file.
34
35 2020-11-29 H.J. Lu <hongjiu.lu@intel.com>
36
37 PR gold/26937
38 * object.cc (Sized_relobj_file::map_to_kept_section): Get the
39 section index for linkonce section. Also check the single
40 comdat section.
41 * testsuite/Makefile.am (check_SCRIPTS): Add pr26936.sh.
42 (check_DATA): Add pr26936a.stdout and pr26936b.stdout.
43 (MOSTLYCLEANFILES): Add pr26936a and pr26936b.
44 (pr26936a.stdout): New target.
45 (pr26936a): Likewise.
46 (pr26936b.stdout): Likewise.
47 (pr26936b): Likewise.
48 (pr26936a.o): Likewise.
49 (pr26936b.o): Likewise.
50 (pr26936c.o): Likewise.
51 (pr26936d.o): Likewise.
52 * testsuite/Makefile.in: Regenerated.
53 * testsuite/pr26936.sh: New file.
54 * testsuite/pr26936a.s: Likewise.
55 * testsuite/pr26936b.s: Likewise.
56 * testsuite/pr26936c.s: Likewise.
57 * testsuite/pr26936d.s: Likewise.
58
59 2020-11-17 Alan Modra <amodra@gmail.com>
60
61 * powerpc.cc (Target_powerpc::no_tprel_opt_): Rename from tprel_opt_.
62 Init to false.
63 (Target_powerpc::tprel_opt): Test parameters->options().tls_optimize().
64 (Target_powerpc::set_tprel_opt): Delete.
65 (Target_powerpc::set_no_tprel_opt): New function. Update all uses
66 of set_tprel_opt.
67
68 2020-11-16 Michael Hudson-Doyle <michael.hudson@canonical.com>
69
70 PR 26902
71 * powerpc.cc (Relocate::relocate): Do not include local entry
72 offset of target function when computing the address of a stub.
73
74 2020-11-08 H.J. Lu <hongjiu.lu@intel.com>
75
76 PR gold/26200
77 * plugin.cc (Plugin_manager::claim_file): Don't share Plugin_list
78 iterator.
79 (Plugin_manager::all_symbols_read): Likewise.
80 (Plugin_manager::cleanup): Likewise.
81
82 2020-11-03 Alan Modra <amodra@gmail.com>
83
84 * powerpc.cc (Target_powerpc::tocsave_loc): Return a pointer.
85 (Target_powerpc::Relocate::relocate): Avoid -Wdangling-gsl error.
86
87 2020-11-03 Nick Gasson <nick.gasson@arm.com>
88
89 PR 26827
90 * fileread.cc (File_read::open): Ensure file_counts_lock is
91 initialized.
92 * testsuite/Makefile.am (check_PROGRAMS): Add a test that passes
93 -Wl,--threads.
94 * testsuite/Makefile.in: Regenerate.
95
96 2020-10-30 H.J. Lu <hongjiu.lu@intel.com>
97
98 * testsuite/gnu_property_test.sh: Updated.
99
100 2020-10-22 H.J. Lu <hongjiu.lu@intel.com>
101
102 * Makefile.am (bootstrap-test): Skip for LTO build.
103 (bootstrap-test-r): Likewise.
104
105 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
106
107 PR gold/23539
108 * configure.ac: Check for GCC 9 or later and for -fcf-protection.
109 * configure: Regenerated.
110 * testsuite/Makefile.am (check_PROGRAMS): Skip incremental_test_2,
111 incremental_test_3, incremental_test_4, incremental_test_5,
112 incremental_copy_test, incremental_common_test_1 and
113 incremental_comdat_test_1 for -fcf-protection. Also Skip
114 incremental_copy_test and incremental_comdat_test_1 for GCC 9 or
115 later.
116 * testsuite/Makefile.in: Regenerated.
117
118 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
119
120 PR gold/23503
121 * testsuite/Makefile.am (justsyms_lib): Pass
122 -T $(srcdir)/justsyms_lib.t to gold.
123 * testsuite/Makefile.in: Regenerated.
124 * testsuite/justsyms_lib.t: New file.
125 * testsuite/script_test_10.t: Discard .note.gnu.property section.
126
127 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
128
129 * x86_64.cc (Target_x86_64::Target_x86_64): Initialize
130 feature_2_used_, feature_2_needed_ and object_feature_2_used_.
131 (Target_x86_64::feature_2_used_): New data member.
132 (Target_x86_64::feature_2_needed_): Likewise.
133 (Target_x86_64::object_isa_1_used_): Likewise.
134 (Target_x86_64::record_gnu_property): Support
135 GNU_PROPERTY_X86_COMPAT_ISA_1_USED,
136 GNU_PROPERTY_X86_COMPAT_ISA_1_NEEDED,
137 GNU_PROPERTY_X86_COMPAT_2_ISA_1_USED,
138 GNU_PROPERTY_X86_COMPAT_2_ISA_1_NEEDED,
139 GNU_PROPERTY_X86_FEATURE_2_USED and
140 GNU_PROPERTY_X86_FEATURE_2_NEEDED.
141 (Target_x86_64::merge_gnu_properties): Merge FEATURE_2_USED bits.
142 Initialize object_feature_2_used_.
143 (Target_x86_64::do_finalize_gnu_properties): Support
144 GNU_PROPERTY_X86_FEATURE_2_USED and
145 GNU_PROPERTY_X86_FEATURE_2_NEEDED.
146 * testsuite/gnu_property_a.S (GNU_PROPERTY_X86_ISA_1_USED): Set
147 to 0xc0010002.
148 (GNU_PROPERTY_X86_ISA_1_NEEDED): Set to 0xc0008002.
149 * testsuite/gnu_property_b.S (GNU_PROPERTY_X86_ISA_1_USED): Set
150 to 0xc0010002.
151 (GNU_PROPERTY_X86_ISA_1_NEEDED): Set to 0xc0008002.
152 * testsuite/gnu_property_c.S (GNU_PROPERTY_X86_ISA_1_USED): Set
153 to 0xc0010002.
154 (GNU_PROPERTY_X86_ISA_1_NEEDED): Set to 0xc0008002.
155 * testsuite/gnu_property_test.sh: Updated.
156
157 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
158
159 PR gold/22914
160 PR gold/23535
161 * layout.cc (Layout::attach_allocated_section_to_segment): Place
162 a note section in a PT_NOTE segment with the same alignment. Set
163 the alignment of the PT_NOTE segment from the alignment of the
164 note section.
165 (Layout::create_note): Align the NT_GNU_PROPERTY_TYPE_0 note to 8
166 bytes for 64-bit ELF.
167 (Layout::segment_precedes): Place segments with larger alignments
168 first.
169 * output.cc (Output_segment::Output_segment): Initialize align_.
170 * output.h (Output_segment): Add align, set_align and align_.
171 * testsuite/Makefile.am (gnu_property_test.stdout): Pass -lhSWn
172 to $(TEST_READELF).
173 (gnu_property_test): Pass --build-id to ld.
174 * testsuite/Makefile.in: Regenerated.
175 * testsuite/gnu_property_test.sh (check_alignment): New.
176 Use check_alignment to check the NT_GNU_PROPERTY_TYPE_0 note
177 alignment. Verify that there are 2 PT_NOTE segments.
178
179 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
180
181 PR gold/21452
182 * x86_64.cc (Scan::local_reloc_may_be_function_pointer): Remove
183 check for shared library.
184 (Scan::global_reloc_may_be_function_pointer): Remove check for
185 shared library and symbol visibility.
186 * testsuite/icf_safe_so_test.cc (bar_static): New function.
187 (main): Take function address of bar_static and use it.
188 * testsuite/icf_safe_so_test.sh (arch_specific_safe_fold): Also
189 check fold on x86-64. Check bar_static isn't folded.
190
191 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
192
193 * icf.cc (Icf::find_identical_sections): Skip zero-sized sections.
194
195 2020-10-09 Alan Modra <amodra@gmail.com>
196
197 * powerpc.cc (Powerpc_relobj::do_relocate_sections): Don't do
198 local entry offset optimisation for lplt_section.
199 (Target_powerpc::Branch_info::make_stub): Don't add local
200 entry offset to long branch dest passed to
201 add_long_branch_entry. Do pass st_other bits.
202 (Stub_table::Branch_stub_ent): Add "other_" field.
203 (Stub_table::add_long_branch_entry): Add "other" param, and
204 save.
205 (Stub_table::branch_stub_size): Adjust long branch offset.
206 (Stub_table::do_write): Likewise.
207 (Target_powerpc::Relocate::relocate): Likewise.
208
209 2020-10-09 Alan Modra <amodra@gmail.com>
210
211 * powerpc.cc (is_got_reloc): New function.
212 (Target_powerpc::Relocate::relocate): Use it here, exclude GOT
213 relocs when looking for stubs.
214
215 2020-10-08 H.J. Lu <hongjiu.lu@intel.com>
216
217 * testsuite/split_i386.sh: Updated for --split-stack-adjust-size
218 default change.
219 * testsuite/split_x86_64.sh: Likewise.
220
221 2020-10-08 Alan Modra <amodra@gmail.com>
222
223 * options.h (split_stack_adjust_size): Default to 0x100000.
224
225 2020-09-26 Alan Modra <amodra@gmail.com>
226
227 * powerpc.cc (Target_powerpc): Rename power10_stubs_ to
228 power10_relocs_.
229 (Target_powerpc::set_power10_relocs): New accessor.
230 (Target_powerpc::set_power10_stubs): Delete.
231 (Target_powerpc::power10_stubs): Adjust.
232 (Target_powerpc::has_localentry0): New accessor.
233 (ld_0_11): New constant.
234 (glink_eh_frame_fde_64v1, glink_eh_frame_fde_64v2): Adjust.
235 (glink_eh_frame_fde_64v2_localentry0): New.
236 (Output_data_glink::pltresolve_size): Update.
237 (Output_data_glink::add_eh_frame): Use localentry0 version eh_frame.
238 (Output_data_glink::do_write): Move r2 save to start of ELFv2 stub
239 and only emit for has_localentry0. Don't use r2 in the stub.
240 (Target_powerpc::Scan::local, global): Adjust for
241 set_power10_relocs renaming.
242 (Target_powerpc::scan_relocs): Warn and reset plt_localentry0_.
243
244 2020-09-24 Alan Modra <amodra@gmail.com>
245
246 * powerpc.cc (Target_powerpc::Relocate::relocate): Don't skip
247 first insn of __tls_get_addr_opt stub.
248
249 2020-08-24 Alan Modra <amodra@gmail.com>
250
251 * powerpc.cc (Target_powerpc): Add tprel_opt_ and accessors.
252 (Target_powerpc::Scan::local): Sanity check tprel high relocs.
253 (Target_powerpc::Scan::global): Likewise.
254 (Target_powerpc::Relocate::relocate): Control tprel optimisation
255 with tprel_opt_ and enable for 32-bit.
256
257 2020-08-12 Nick Clifton <nickc@redhat.com>
258
259 * po/sr.po: Updated Serbian translation.
260
261 2020-07-27 Alan Modra <amodra@gmail.com>
262
263 * options.h (DEFINE_enum): Add optional_arg__ param, adjust
264 all uses.
265 (General_options): Add --power10-stubs and --no-power10-stubs.
266 * options.cc (General_options::parse_no_power10_stubs): New.
267 (General_options::finalize): Handle --power10-stubs.
268 * powerpc.cc (set_power10_stubs): Don't set when --power10-stubs=no.
269 (power10_stubs_auto): New.
270 (struct Plt_stub_ent): Add toc_ and tocoff_. Don't use a bitfield
271 for indx_.
272 (struct Branch_stub_ent): Add toc_and tocoff_. Use bitfields for
273 iter_, notoc_ and save_res_.
274 (add_plt_call_entry): Set toc_. Adjust resizing conditions for
275 --power10-stubs=auto.
276 (add_long_branch_entry): Set toc_.
277 (add_eh_frame, define_stub_syms): No longer use const_iterators
278 for plt and long branch stub iteration.
279 (build_tls_opt_head, build_tls_opt_tail): Change parameters and
280 return value. Move tests for __tls_get_addr to callers.
281 (plt_call_size): Handle --power10-stubs=auto.
282 (branch_stub_size): Likewise.
283 (Stub_table::do_write): Likewise.
284 (relocate): Likewise.
285
286 2020-07-19 H.J. Lu <hongjiu.lu@intel.com>
287
288 * testsuite/bnd_ifunc_1.sh: Updated.
289 * testsuite/bnd_plt_1.sh: Likewise.
290 * testsuite/split_x32.sh: Likewise.
291 * testsuite/split_x86_64.sh: Likewise.
292 * testsuite/x86_64_indirect_call_to_direct.sh: Likewise.
293
294 2020-07-08 Nick Clifton <nickc@redhat.com>
295
296 * testsuite/script_test_7.sh: Adjust expected address of the .bss
297 section.
298 * testsuite/script_test_9.sh: Do not expect the .init section to
299 immediately follow the .text section in the mapping of sections to
300 segments.
301
302 2020-07-07 Nick Clifton <nickc@redhat.com>
303
304 * target-reloc.h: (Default_comdat_behaviour:get): Ignore discarded
305 relocs that refer to the .gnu.build.attributes section.
306
307 2020-07-06 Nick Clifton <nickc@redhat.com>
308
309 * po/fr.po: Updated French translation.
310 * po/uk.po: Updated Ukranian translation.
311
312 2020-07-04 Nick Clifton <nickc@redhat.com>
313
314 Binutils 2.35 branch created.
315
316 2020-07-03 Alan Modra <amodra@gmail.com>
317
318 PR 26028
319 * testsuite/Makefile.am (file_in_many_sections.stdout): Add -W
320 to readelf options.
321 * testsuite/Makefile.in: Regenerate.
322
323 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
324
325 * configure.ac: Check for bswap_16, bswap_32, and bswap_64 decls.
326 * configure: Regenerated.
327 * config.h.in: Likewise.
328
329 2020-06-24 Nick Clifton <nickc@redhat.com>
330
331 * target-reloc.h (issue_discarded_error): Initialise the
332 key_symndx variable.
333
334 2020-06-23 Roland McGrath <mcgrathr@google.com>
335
336 PR 22843
337 * options.h (class General_options): Add --dependency-file option.
338 * fileread.cc (File_read::files_read): New static variable.
339 (File_read::open): Add the file to the files_read list.
340 (File_read::record_file_read): New static member function.
341 (File_read::write_dependency_file): New static member function.
342 * fileread.h (class File_read): Declare them.
343 * layout.cc (Layout::read_layout_from_file): Call record_file_read.
344 (Close_task_runner::run): Call write_dependency_file if
345 --dependency-file was passed.
346
347 2020-06-18 Fangrui Song <i@maskray.me>
348
349 PR gold/26039
350 * layout.cc (Layout::finish_dynamic_section): Set DF_1_PIE.
351
352 2020-06-16 Alan Modra <amodra@gmail.com>
353
354 * testsuite/discard_locals_test.c: Replace uses of asm with __asm__.
355 * testsuite/discard_locals_relocatable_test.c: Likewise.
356
357 2020-06-16 Alan Modra <amodra@gmail.com>
358
359 * testsuite/Makefile.am (export_dynamic_plugin.o): Use CXXCOMPILE.
360 (plugin_test_wrap_symbols_1.o): Likewise.
361 (plugin_test_wrap_symbols_2.o): Likewise.
362 * testsuite/Makefile.in: Regenerate.
363
364 2020-06-15 Roland McGrath <mcgrathr@google.com>
365
366 Implement -z start-stop-visibility=... option.
367 * options.h (class General_options): Handle -z start-stop-visibility=.
368 (General_options::start_stop_visibility_enum): New public method.
369 (General_options::set_start_stop_visibility_enum): New private method.
370 (General_options::start_stop_visibility_enum_): New private member.
371 * options.cc (General_options::General_options): Add initializer.
372 (General_options::finalize): Set this->start_stop_visibility_enum_
373 from string value.
374 * layout.cc (Layout::define_section_symbols): Use option setting.
375
376 2020-06-06 Alan Modra <amodra@gmail.com>
377
378 * powerpc.cc: Update throughout for reloc renaming.
379
380 2020-05-22 Alan Modra <amodra@gmail.com>
381
382 PR 25882
383 * powerpc.cc (merge_object_attributes): Replace name param with
384 obj param. Update callers. Don't init FP attributes from shared
385 libraries, and do not emit an error if they don't match.
386
387 2020-05-15 Nikita Ermakov <coffe92@gmail.com>
388
389 * powerpc.cc (do_gc_mark_symbol): Don't segfault on plugin symbols.
390
391 2020-05-14 Nick Clifton <nickc@redhat.com>
392
393 * po/sr.po: New Serbian translation.
394
395 2020-05-11 Alan Modra <amodra@gmail.com>
396
397 * powerpc.cc: Rename powerxx to power10 throughout.
398
399 2020-05-02 H.J. Lu <hongjiu.lu@intel.com>
400
401 PR gold/25904
402 * testsuite/Makefile.am (COMMON_TEST_C_CFLAGS): New.
403 (common_test_1.o): New rule.
404 (common_test_2.o): Likewise.
405 (common_test_3.o): Likewise.
406 (plugin_common_test_1.o): Likewise.
407 (plugin_common_test_2.o): Likewise.
408 (common_test_1_v1.o): Likewise.
409 (common_test_1_v2.o): Likewise.
410 (common_test_2_pic.o): Compile with $(COMMON_TEST_C_CFLAGS).
411 (common_test_3_pic.o): Likewise.
412 * testsuite/Makefile.in: Regenerated.
413
414 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
415
416 PR gold/25426
417 * x86_64.cc (Target_x86_64<size>::Relocate::tls_desc_gd_to_ie):
418 For x32, relax "rex leal foo@tlsdesc(%rip), %reg" to
419 "rex movl foo@gottpoff(%rip), %eax" and relax ""call *(%eax)"
420 to "nopl (%rax)".
421 (Target_x86_64<size>::Relocate::tls_desc_gd_to_le): For x32,
422 relax "rex leal foo@tlsdesc(%rip), %reg" to
423 "rex movl foo@tpoff, %eax" and relax "call *foo@tlscall(%eax)"
424 to "nopl (%rax)".
425 * testsuite/Makefile.am (tls_test_gnu2.o): Depend on
426 gcctestdir/as.
427 (tls_test_file2_gnu2.o): Likewise.
428 (tls_test_c_gnu2.o): Likewise.
429 * testsuite/Makefile.in: Regenerated.
430
431 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
432
433 PR gold/25473
434 * x86_64.cc (Target_x86_64<size>::Relocate::tls_desc_gd_to_ie):
435 Properly check r8 - r15 in "lea foo@TLSDESC(%rip), %reg".
436 (Target_x86_64<size>::Relocate::tls_desc_gd_to_le): Properly
437 relax r8 - r15 in "lea foo@TLSDESC(%rip), %reg".
438 * testsuite/Makefile.am (check_SCRIPTS): Add x86_64_gd_to_le.sh.
439 (check_DATA): Add x86_64_gd_to_le.stdout.
440 (MOSTLYCLEANFILES): Add x86_64_gd_to_le.
441 (x86_64_gd_to_le.o): New target.
442 (x86_64_gd_to_le): Likewise.
443 (x86_64_gd_to_le.stdout): Likewise.
444 * testsuite/Makefile.in: Regenerated.
445 * testsuite/x86_64_gd_to_le.s: New file.
446 * testsuite/x86_64_gd_to_le.sh: Likewise.
447
448 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
449
450 * testsuite/odr_violation2.cc (Ordering::operator()): Make
451 expression even more complex.
452
453 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
454
455 * testsuite/ver_test_pr16504.sh: Updated.
456
457 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
458
459 PR gold/25872
460 * x86_64.cc (Output_data_plt_x86_64_bnd::do_write): Increment
461 plt_offset after setting the reserved TLSDESC PLT entry.
462 (Output_data_plt_x86_64_ibt<size>::do_write): Likewise.
463
464 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
465
466 PR gold/25872
467 * x86_64.cc (Output_data_plt_x86_64_bnd::do_address_for_local):
468 Handle local IFUNC symbol.
469 (Output_data_plt_x86_64_ibt::do_address_for_local): Likewise.
470
471 2020-03-19 Fangrui Song <maskray@google.com>
472
473 * options.h (General_options): Add --no-rosegment option.
474
475 2020-02-24 Nick Clifton <nickc@redhat.com>
476
477 * po/fr.po: Update French translation.
478
479 2020-01-20 Nick Clifton <nickc@redhat.com>
480
481 * po/uk.po: Updated Ukranian translation.
482
483 2020-01-18 Nick Clifton <nickc@redhat.com>
484
485 * configure: Regenerate.
486 * po/gold.pot: Regenerate.
487
488 2020-01-18 Nick Clifton <nickc@redhat.com>
489
490 Binutils 2.34 branch created.
491
492 2020-01-01 Alan Modra <amodra@gmail.com>
493
494 Update year range in copyright notice of all files.
495
496 For older changes see ChangeLog-2019
497 \f
498 Copyright (C) 2020 Free Software Foundation, Inc.
499
500 Copying and distribution of this file, with or without modification,
501 are permitted in any medium without royalty provided the copyright
502 notice and this notice are preserved.
503
504 Local Variables:
505 mode: change-log
506 left-margin: 8
507 fill-column: 74
508 version-control: never
509 End:
This page took 0.047742 seconds and 4 git commands to generate.