[gdb/testsuite] Be more verbose about abort in gdb_breakpoint
[deliverable/binutils-gdb.git] / gold / ChangeLog
CommitLineData
6c0005b8
L
12020-10-13 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR gold/23539
4 * configure.ac: Check for GCC 9 or later and for -fcf-protection.
5 * configure: Regenerated.
6 * testsuite/Makefile.am (check_PROGRAMS): Skip incremental_test_2,
7 incremental_test_3, incremental_test_4, incremental_test_5,
8 incremental_copy_test, incremental_common_test_1 and
9 incremental_comdat_test_1 for -fcf-protection. Also Skip
10 incremental_copy_test and incremental_comdat_test_1 for GCC 9 or
11 later.
12 * testsuite/Makefile.in: Regenerated.
13
29700bff
L
142020-10-13 H.J. Lu <hongjiu.lu@intel.com>
15
16 PR gold/23503
17 * testsuite/Makefile.am (justsyms_lib): Pass
18 -T $(srcdir)/justsyms_lib.t to gold.
19 * testsuite/Makefile.in: Regenerated.
20 * testsuite/justsyms_lib.t: New file.
21 * testsuite/script_test_10.t: Discard .note.gnu.property section.
22
586e3094
L
232020-10-13 H.J. Lu <hongjiu.lu@intel.com>
24
25 * x86_64.cc (Target_x86_64::Target_x86_64): Initialize
26 feature_2_used_, feature_2_needed_ and object_feature_2_used_.
27 (Target_x86_64::feature_2_used_): New data member.
28 (Target_x86_64::feature_2_needed_): Likewise.
29 (Target_x86_64::object_isa_1_used_): Likewise.
30 (Target_x86_64::record_gnu_property): Support
31 GNU_PROPERTY_X86_COMPAT_ISA_1_USED,
32 GNU_PROPERTY_X86_COMPAT_ISA_1_NEEDED,
33 GNU_PROPERTY_X86_COMPAT_2_ISA_1_USED,
34 GNU_PROPERTY_X86_COMPAT_2_ISA_1_NEEDED,
35 GNU_PROPERTY_X86_FEATURE_2_USED and
36 GNU_PROPERTY_X86_FEATURE_2_NEEDED.
37 (Target_x86_64::merge_gnu_properties): Merge FEATURE_2_USED bits.
38 Initialize object_feature_2_used_.
39 (Target_x86_64::do_finalize_gnu_properties): Support
40 GNU_PROPERTY_X86_FEATURE_2_USED and
41 GNU_PROPERTY_X86_FEATURE_2_NEEDED.
42 * testsuite/gnu_property_a.S (GNU_PROPERTY_X86_ISA_1_USED): Set
43 to 0xc0010002.
44 (GNU_PROPERTY_X86_ISA_1_NEEDED): Set to 0xc0008002.
45 * testsuite/gnu_property_b.S (GNU_PROPERTY_X86_ISA_1_USED): Set
46 to 0xc0010002.
47 (GNU_PROPERTY_X86_ISA_1_NEEDED): Set to 0xc0008002.
48 * testsuite/gnu_property_c.S (GNU_PROPERTY_X86_ISA_1_USED): Set
49 to 0xc0010002.
50 (GNU_PROPERTY_X86_ISA_1_NEEDED): Set to 0xc0008002.
51 * testsuite/gnu_property_test.sh: Updated.
52
6bf4a340
L
532020-10-13 H.J. Lu <hongjiu.lu@intel.com>
54
55 PR gold/22914
56 PR gold/23535
57 * layout.cc (Layout::attach_allocated_section_to_segment): Place
58 a note section in a PT_NOTE segment with the same alignment. Set
59 the alignment of the PT_NOTE segment from the alignment of the
60 note section.
61 (Layout::create_note): Align the NT_GNU_PROPERTY_TYPE_0 note to 8
62 bytes for 64-bit ELF.
63 (Layout::segment_precedes): Place segments with larger alignments
64 first.
65 * output.cc (Output_segment::Output_segment): Initialize align_.
66 * output.h (Output_segment): Add align, set_align and align_.
67 * testsuite/Makefile.am (gnu_property_test.stdout): Pass -lhSWn
68 to $(TEST_READELF).
69 (gnu_property_test): Pass --build-id to ld.
70 * testsuite/Makefile.in: Regenerated.
71 * testsuite/gnu_property_test.sh (check_alignment): New.
72 Use check_alignment to check the NT_GNU_PROPERTY_TYPE_0 note
73 alignment. Verify that there are 2 PT_NOTE segments.
74
aac1d94f
L
752020-10-13 H.J. Lu <hongjiu.lu@intel.com>
76
77 PR gold/21452
78 * x86_64.cc (Scan::local_reloc_may_be_function_pointer): Remove
79 check for shared library.
80 (Scan::global_reloc_may_be_function_pointer): Remove check for
81 shared library and symbol visibility.
82 * testsuite/icf_safe_so_test.cc (bar_static): New function.
83 (main): Take function address of bar_static and use it.
84 * testsuite/icf_safe_so_test.sh (arch_specific_safe_fold): Also
85 check fold on x86-64. Check bar_static isn't folded.
86
1fb1d64f
L
872020-10-13 H.J. Lu <hongjiu.lu@intel.com>
88
89 * icf.cc (Icf::find_identical_sections): Skip zero-sized sections.
90
fa40fbe4
AM
912020-10-09 Alan Modra <amodra@gmail.com>
92
93 * powerpc.cc (Powerpc_relobj::do_relocate_sections): Don't do
94 local entry offset optimisation for lplt_section.
95 (Target_powerpc::Branch_info::make_stub): Don't add local
96 entry offset to long branch dest passed to
97 add_long_branch_entry. Do pass st_other bits.
98 (Stub_table::Branch_stub_ent): Add "other_" field.
99 (Stub_table::add_long_branch_entry): Add "other" param, and
100 save.
101 (Stub_table::branch_stub_size): Adjust long branch offset.
102 (Stub_table::do_write): Likewise.
103 (Target_powerpc::Relocate::relocate): Likewise.
104
4290b0ab
AM
1052020-10-09 Alan Modra <amodra@gmail.com>
106
107 * powerpc.cc (is_got_reloc): New function.
108 (Target_powerpc::Relocate::relocate): Use it here, exclude GOT
109 relocs when looking for stubs.
110
f5114272
L
1112020-10-08 H.J. Lu <hongjiu.lu@intel.com>
112
113 * testsuite/split_i386.sh: Updated for --split-stack-adjust-size
114 default change.
115 * testsuite/split_x86_64.sh: Likewise.
116
f9ff65d4
AM
1172020-10-08 Alan Modra <amodra@gmail.com>
118
119 * options.h (split_stack_adjust_size): Default to 0x100000.
120
63e5eea2
AM
1212020-09-26 Alan Modra <amodra@gmail.com>
122
123 * powerpc.cc (Target_powerpc): Rename power10_stubs_ to
124 power10_relocs_.
125 (Target_powerpc::set_power10_relocs): New accessor.
126 (Target_powerpc::set_power10_stubs): Delete.
127 (Target_powerpc::power10_stubs): Adjust.
128 (Target_powerpc::has_localentry0): New accessor.
129 (ld_0_11): New constant.
130 (glink_eh_frame_fde_64v1, glink_eh_frame_fde_64v2): Adjust.
131 (glink_eh_frame_fde_64v2_localentry0): New.
132 (Output_data_glink::pltresolve_size): Update.
133 (Output_data_glink::add_eh_frame): Use localentry0 version eh_frame.
134 (Output_data_glink::do_write): Move r2 save to start of ELFv2 stub
135 and only emit for has_localentry0. Don't use r2 in the stub.
136 (Target_powerpc::Scan::local, global): Adjust for
137 set_power10_relocs renaming.
138 (Target_powerpc::scan_relocs): Warn and reset plt_localentry0_.
139
a993d270
AM
1402020-09-24 Alan Modra <amodra@gmail.com>
141
142 * powerpc.cc (Target_powerpc::Relocate::relocate): Don't skip
143 first insn of __tls_get_addr_opt stub.
144
252dcdf4
AM
1452020-08-24 Alan Modra <amodra@gmail.com>
146
147 * powerpc.cc (Target_powerpc): Add tprel_opt_ and accessors.
148 (Target_powerpc::Scan::local): Sanity check tprel high relocs.
149 (Target_powerpc::Scan::global): Likewise.
150 (Target_powerpc::Relocate::relocate): Control tprel optimisation
151 with tprel_opt_ and enable for 32-bit.
152
79ddc884
NC
1532020-08-12 Nick Clifton <nickc@redhat.com>
154
155 * po/sr.po: Updated Serbian translation.
156
afd2ea23
AM
1572020-07-27 Alan Modra <amodra@gmail.com>
158
159 * options.h (DEFINE_enum): Add optional_arg__ param, adjust
160 all uses.
161 (General_options): Add --power10-stubs and --no-power10-stubs.
162 * options.cc (General_options::parse_no_power10_stubs): New.
163 (General_options::finalize): Handle --power10-stubs.
164 * powerpc.cc (set_power10_stubs): Don't set when --power10-stubs=no.
165 (power10_stubs_auto): New.
166 (struct Plt_stub_ent): Add toc_ and tocoff_. Don't use a bitfield
167 for indx_.
168 (struct Branch_stub_ent): Add toc_and tocoff_. Use bitfields for
169 iter_, notoc_ and save_res_.
170 (add_plt_call_entry): Set toc_. Adjust resizing conditions for
171 --power10-stubs=auto.
172 (add_long_branch_entry): Set toc_.
173 (add_eh_frame, define_stub_syms): No longer use const_iterators
174 for plt and long branch stub iteration.
175 (build_tls_opt_head, build_tls_opt_tail): Change parameters and
176 return value. Move tests for __tls_get_addr to callers.
177 (plt_call_size): Handle --power10-stubs=auto.
178 (branch_stub_size): Likewise.
179 (Stub_table::do_write): Likewise.
180 (relocate): Likewise.
181
9e6b9760
L
1822020-07-19 H.J. Lu <hongjiu.lu@intel.com>
183
184 * testsuite/bnd_ifunc_1.sh: Updated.
185 * testsuite/bnd_plt_1.sh: Likewise.
53752b85 186 * testsuite/split_x32.sh: Likewise.
9e6b9760
L
187 * testsuite/split_x86_64.sh: Likewise.
188 * testsuite/x86_64_indirect_call_to_direct.sh: Likewise.
189
a7f987e8
NC
1902020-07-08 Nick Clifton <nickc@redhat.com>
191
192 * testsuite/script_test_7.sh: Adjust expected address of the .bss
193 section.
194 * testsuite/script_test_9.sh: Do not expect the .init section to
195 immediately follow the .text section in the mapping of sections to
196 segments.
197
4ac3fa49
NC
1982020-07-07 Nick Clifton <nickc@redhat.com>
199
200 * target-reloc.h: (Default_comdat_behaviour:get): Ignore discarded
201 relocs that refer to the .gnu.build.attributes section.
202
17550be7
NC
2032020-07-06 Nick Clifton <nickc@redhat.com>
204
205 * po/fr.po: Updated French translation.
206 * po/uk.po: Updated Ukranian translation.
207
b115b9fd
NC
2082020-07-04 Nick Clifton <nickc@redhat.com>
209
210 Binutils 2.35 branch created.
211
b657622c
AM
2122020-07-03 Alan Modra <amodra@gmail.com>
213
214 PR 26028
215 * testsuite/Makefile.am (file_in_many_sections.stdout): Add -W
216 to readelf options.
217 * testsuite/Makefile.in: Regenerate.
218
e755667f
NA
2192020-06-26 Nick Alcock <nick.alcock@oracle.com>
220
221 * configure.ac: Check for bswap_16, bswap_32, and bswap_64 decls.
222 * configure: Regenerated.
223 * config.h.in: Likewise.
224
fb58f5e9
NC
2252020-06-24 Nick Clifton <nickc@redhat.com>
226
227 * target-reloc.h (issue_discarded_error): Initialise the
228 key_symndx variable.
229
f37b21b4
RM
2302020-06-23 Roland McGrath <mcgrathr@google.com>
231
232 PR 22843
233 * options.h (class General_options): Add --dependency-file option.
234 * fileread.cc (File_read::files_read): New static variable.
235 (File_read::open): Add the file to the files_read list.
236 (File_read::record_file_read): New static member function.
237 (File_read::write_dependency_file): New static member function.
238 * fileread.h (class File_read): Declare them.
239 * layout.cc (Layout::read_layout_from_file): Call record_file_read.
240 (Close_task_runner::run): Call write_dependency_file if
241 --dependency-file was passed.
242
9a17a136
FS
2432020-06-18 Fangrui Song <i@maskray.me>
244
245 PR gold/26039
246 * layout.cc (Layout::finish_dynamic_section): Set DF_1_PIE.
247
423054be
AM
2482020-06-16 Alan Modra <amodra@gmail.com>
249
250 * testsuite/discard_locals_test.c: Replace uses of asm with __asm__.
251 * testsuite/discard_locals_relocatable_test.c: Likewise.
252
90cd2aad
AM
2532020-06-16 Alan Modra <amodra@gmail.com>
254
255 * testsuite/Makefile.am (export_dynamic_plugin.o): Use CXXCOMPILE.
256 (plugin_test_wrap_symbols_1.o): Likewise.
257 (plugin_test_wrap_symbols_2.o): Likewise.
258 * testsuite/Makefile.in: Regenerate.
259
cae64165
RM
2602020-06-15 Roland McGrath <mcgrathr@google.com>
261
262 Implement -z start-stop-visibility=... option.
263 * options.h (class General_options): Handle -z start-stop-visibility=.
264 (General_options::start_stop_visibility_enum): New public method.
265 (General_options::set_start_stop_visibility_enum): New private method.
266 (General_options::start_stop_visibility_enum_): New private member.
267 * options.cc (General_options::General_options): Add initializer.
268 (General_options::finalize): Set this->start_stop_visibility_enum_
269 from string value.
270 * layout.cc (Layout::define_section_symbols): Use option setting.
271
87c69f97
AM
2722020-06-06 Alan Modra <amodra@gmail.com>
273
274 * powerpc.cc: Update throughout for reloc renaming.
275
6f3fe02b
AM
2762020-05-22 Alan Modra <amodra@gmail.com>
277
278 PR 25882
279 * powerpc.cc (merge_object_attributes): Replace name param with
280 obj param. Update callers. Don't init FP attributes from shared
281 libraries, and do not emit an error if they don't match.
282
6a31512f
NE
2832020-05-15 Nikita Ermakov <coffe92@gmail.com>
284
285 * powerpc.cc (do_gc_mark_symbol): Don't segfault on plugin symbols.
286
9d95b8e9
NC
2872020-05-14 Nick Clifton <nickc@redhat.com>
288
289 * po/sr.po: New Serbian translation.
290
7c1f4227
AM
2912020-05-11 Alan Modra <amodra@gmail.com>
292
293 * powerpc.cc: Rename powerxx to power10 throughout.
294
8c164434
L
2952020-05-02 H.J. Lu <hongjiu.lu@intel.com>
296
297 PR gold/25904
298 * testsuite/Makefile.am (COMMON_TEST_C_CFLAGS): New.
299 (common_test_1.o): New rule.
300 (common_test_2.o): Likewise.
301 (common_test_3.o): Likewise.
302 (plugin_common_test_1.o): Likewise.
303 (plugin_common_test_2.o): Likewise.
304 (common_test_1_v1.o): Likewise.
305 (common_test_1_v2.o): Likewise.
306 (common_test_2_pic.o): Compile with $(COMMON_TEST_C_CFLAGS).
307 (common_test_3_pic.o): Likewise.
308 * testsuite/Makefile.in: Regenerated.
309
ccf20d46
L
3102020-05-01 H.J. Lu <hongjiu.lu@intel.com>
311
312 PR gold/25426
313 * x86_64.cc (Target_x86_64<size>::Relocate::tls_desc_gd_to_ie):
314 For x32, relax "rex leal foo@tlsdesc(%rip), %reg" to
315 "rex movl foo@gottpoff(%rip), %eax" and relax ""call *(%eax)"
316 to "nopl (%rax)".
317 (Target_x86_64<size>::Relocate::tls_desc_gd_to_le): For x32,
318 relax "rex leal foo@tlsdesc(%rip), %reg" to
319 "rex movl foo@tpoff, %eax" and relax "call *foo@tlscall(%eax)"
320 to "nopl (%rax)".
321 * testsuite/Makefile.am (tls_test_gnu2.o): Depend on
322 gcctestdir/as.
323 (tls_test_file2_gnu2.o): Likewise.
324 (tls_test_c_gnu2.o): Likewise.
325 * testsuite/Makefile.in: Regenerated.
326
6d520e36
L
3272020-05-01 H.J. Lu <hongjiu.lu@intel.com>
328
329 PR gold/25473
330 * x86_64.cc (Target_x86_64<size>::Relocate::tls_desc_gd_to_ie):
331 Properly check r8 - r15 in "lea foo@TLSDESC(%rip), %reg".
332 (Target_x86_64<size>::Relocate::tls_desc_gd_to_le): Properly
333 relax r8 - r15 in "lea foo@TLSDESC(%rip), %reg".
334 * testsuite/Makefile.am (check_SCRIPTS): Add x86_64_gd_to_le.sh.
335 (check_DATA): Add x86_64_gd_to_le.stdout.
336 (MOSTLYCLEANFILES): Add x86_64_gd_to_le.
337 (x86_64_gd_to_le.o): New target.
338 (x86_64_gd_to_le): Likewise.
339 (x86_64_gd_to_le.stdout): Likewise.
340 * testsuite/Makefile.in: Regenerated.
341 * testsuite/x86_64_gd_to_le.s: New file.
342 * testsuite/x86_64_gd_to_le.sh: Likewise.
343
e10cfd06
L
3442020-05-01 H.J. Lu <hongjiu.lu@intel.com>
345
346 * testsuite/odr_violation2.cc (Ordering::operator()): Make
347 expression even more complex.
348
de6d6067
L
3492020-05-01 H.J. Lu <hongjiu.lu@intel.com>
350
351 * testsuite/ver_test_pr16504.sh: Updated.
352
48bc2182
L
3532020-05-01 H.J. Lu <hongjiu.lu@intel.com>
354
355 PR gold/25872
356 * x86_64.cc (Output_data_plt_x86_64_bnd::do_write): Increment
357 plt_offset after setting the reserved TLSDESC PLT entry.
358 (Output_data_plt_x86_64_ibt<size>::do_write): Likewise.
359
e977e747
L
3602020-05-01 H.J. Lu <hongjiu.lu@intel.com>
361
362 PR gold/25872
363 * x86_64.cc (Output_data_plt_x86_64_bnd::do_address_for_local):
364 Handle local IFUNC symbol.
365 (Output_data_plt_x86_64_ibt::do_address_for_local): Likewise.
366
9a6c68ca
FS
3672020-03-19 Fangrui Song <maskray@google.com>
368
369 * options.h (General_options): Add --no-rosegment option.
370
45c63c0f
NC
3712020-02-24 Nick Clifton <nickc@redhat.com>
372
373 * po/fr.po: Update French translation.
374
26916852
NC
3752020-01-20 Nick Clifton <nickc@redhat.com>
376
377 * po/uk.po: Updated Ukranian translation.
378
1b1bb2c6
NC
3792020-01-18 Nick Clifton <nickc@redhat.com>
380
381 * configure: Regenerate.
382 * po/gold.pot: Regenerate.
383
ae774686
NC
3842020-01-18 Nick Clifton <nickc@redhat.com>
385
386 Binutils 2.34 branch created.
387
b14ce8bf
AM
3882020-01-01 Alan Modra <amodra@gmail.com>
389
390 Update year range in copyright notice of all files.
391
0b114740 392For older changes see ChangeLog-2019
3499769a 393\f
0b114740 394Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
395
396Copying and distribution of this file, with or without modification,
397are permitted in any medium without royalty provided the copyright
398notice and this notice are preserved.
399
400Local Variables:
401mode: change-log
402left-margin: 8
403fill-column: 74
404version-control: never
405End:
This page took 0.241383 seconds and 4 git commands to generate.