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