1 2020-10-22 H.J. Lu <hongjiu.lu@intel.com>
3 * Makefile.am (bootstrap-test): Skip for LTO build.
4 (bootstrap-test-r): Likewise.
6 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
9 * configure.ac: Check for GCC 9 or later and for -fcf-protection.
10 * configure: Regenerated.
11 * testsuite/Makefile.am (check_PROGRAMS): Skip incremental_test_2,
12 incremental_test_3, incremental_test_4, incremental_test_5,
13 incremental_copy_test, incremental_common_test_1 and
14 incremental_comdat_test_1 for -fcf-protection. Also Skip
15 incremental_copy_test and incremental_comdat_test_1 for GCC 9 or
17 * testsuite/Makefile.in: Regenerated.
19 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
22 * testsuite/Makefile.am (justsyms_lib): Pass
23 -T $(srcdir)/justsyms_lib.t to gold.
24 * testsuite/Makefile.in: Regenerated.
25 * testsuite/justsyms_lib.t: New file.
26 * testsuite/script_test_10.t: Discard .note.gnu.property section.
28 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
30 * x86_64.cc (Target_x86_64::Target_x86_64): Initialize
31 feature_2_used_, feature_2_needed_ and object_feature_2_used_.
32 (Target_x86_64::feature_2_used_): New data member.
33 (Target_x86_64::feature_2_needed_): Likewise.
34 (Target_x86_64::object_isa_1_used_): Likewise.
35 (Target_x86_64::record_gnu_property): Support
36 GNU_PROPERTY_X86_COMPAT_ISA_1_USED,
37 GNU_PROPERTY_X86_COMPAT_ISA_1_NEEDED,
38 GNU_PROPERTY_X86_COMPAT_2_ISA_1_USED,
39 GNU_PROPERTY_X86_COMPAT_2_ISA_1_NEEDED,
40 GNU_PROPERTY_X86_FEATURE_2_USED and
41 GNU_PROPERTY_X86_FEATURE_2_NEEDED.
42 (Target_x86_64::merge_gnu_properties): Merge FEATURE_2_USED bits.
43 Initialize object_feature_2_used_.
44 (Target_x86_64::do_finalize_gnu_properties): Support
45 GNU_PROPERTY_X86_FEATURE_2_USED and
46 GNU_PROPERTY_X86_FEATURE_2_NEEDED.
47 * testsuite/gnu_property_a.S (GNU_PROPERTY_X86_ISA_1_USED): Set
49 (GNU_PROPERTY_X86_ISA_1_NEEDED): Set to 0xc0008002.
50 * testsuite/gnu_property_b.S (GNU_PROPERTY_X86_ISA_1_USED): Set
52 (GNU_PROPERTY_X86_ISA_1_NEEDED): Set to 0xc0008002.
53 * testsuite/gnu_property_c.S (GNU_PROPERTY_X86_ISA_1_USED): Set
55 (GNU_PROPERTY_X86_ISA_1_NEEDED): Set to 0xc0008002.
56 * testsuite/gnu_property_test.sh: Updated.
58 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
62 * layout.cc (Layout::attach_allocated_section_to_segment): Place
63 a note section in a PT_NOTE segment with the same alignment. Set
64 the alignment of the PT_NOTE segment from the alignment of the
66 (Layout::create_note): Align the NT_GNU_PROPERTY_TYPE_0 note to 8
68 (Layout::segment_precedes): Place segments with larger alignments
70 * output.cc (Output_segment::Output_segment): Initialize align_.
71 * output.h (Output_segment): Add align, set_align and align_.
72 * testsuite/Makefile.am (gnu_property_test.stdout): Pass -lhSWn
74 (gnu_property_test): Pass --build-id to ld.
75 * testsuite/Makefile.in: Regenerated.
76 * testsuite/gnu_property_test.sh (check_alignment): New.
77 Use check_alignment to check the NT_GNU_PROPERTY_TYPE_0 note
78 alignment. Verify that there are 2 PT_NOTE segments.
80 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
83 * x86_64.cc (Scan::local_reloc_may_be_function_pointer): Remove
84 check for shared library.
85 (Scan::global_reloc_may_be_function_pointer): Remove check for
86 shared library and symbol visibility.
87 * testsuite/icf_safe_so_test.cc (bar_static): New function.
88 (main): Take function address of bar_static and use it.
89 * testsuite/icf_safe_so_test.sh (arch_specific_safe_fold): Also
90 check fold on x86-64. Check bar_static isn't folded.
92 2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
94 * icf.cc (Icf::find_identical_sections): Skip zero-sized sections.
96 2020-10-09 Alan Modra <amodra@gmail.com>
98 * powerpc.cc (Powerpc_relobj::do_relocate_sections): Don't do
99 local entry offset optimisation for lplt_section.
100 (Target_powerpc::Branch_info::make_stub): Don't add local
101 entry offset to long branch dest passed to
102 add_long_branch_entry. Do pass st_other bits.
103 (Stub_table::Branch_stub_ent): Add "other_" field.
104 (Stub_table::add_long_branch_entry): Add "other" param, and
106 (Stub_table::branch_stub_size): Adjust long branch offset.
107 (Stub_table::do_write): Likewise.
108 (Target_powerpc::Relocate::relocate): Likewise.
110 2020-10-09 Alan Modra <amodra@gmail.com>
112 * powerpc.cc (is_got_reloc): New function.
113 (Target_powerpc::Relocate::relocate): Use it here, exclude GOT
114 relocs when looking for stubs.
116 2020-10-08 H.J. Lu <hongjiu.lu@intel.com>
118 * testsuite/split_i386.sh: Updated for --split-stack-adjust-size
120 * testsuite/split_x86_64.sh: Likewise.
122 2020-10-08 Alan Modra <amodra@gmail.com>
124 * options.h (split_stack_adjust_size): Default to 0x100000.
126 2020-09-26 Alan Modra <amodra@gmail.com>
128 * powerpc.cc (Target_powerpc): Rename power10_stubs_ to
130 (Target_powerpc::set_power10_relocs): New accessor.
131 (Target_powerpc::set_power10_stubs): Delete.
132 (Target_powerpc::power10_stubs): Adjust.
133 (Target_powerpc::has_localentry0): New accessor.
134 (ld_0_11): New constant.
135 (glink_eh_frame_fde_64v1, glink_eh_frame_fde_64v2): Adjust.
136 (glink_eh_frame_fde_64v2_localentry0): New.
137 (Output_data_glink::pltresolve_size): Update.
138 (Output_data_glink::add_eh_frame): Use localentry0 version eh_frame.
139 (Output_data_glink::do_write): Move r2 save to start of ELFv2 stub
140 and only emit for has_localentry0. Don't use r2 in the stub.
141 (Target_powerpc::Scan::local, global): Adjust for
142 set_power10_relocs renaming.
143 (Target_powerpc::scan_relocs): Warn and reset plt_localentry0_.
145 2020-09-24 Alan Modra <amodra@gmail.com>
147 * powerpc.cc (Target_powerpc::Relocate::relocate): Don't skip
148 first insn of __tls_get_addr_opt stub.
150 2020-08-24 Alan Modra <amodra@gmail.com>
152 * powerpc.cc (Target_powerpc): Add tprel_opt_ and accessors.
153 (Target_powerpc::Scan::local): Sanity check tprel high relocs.
154 (Target_powerpc::Scan::global): Likewise.
155 (Target_powerpc::Relocate::relocate): Control tprel optimisation
156 with tprel_opt_ and enable for 32-bit.
158 2020-08-12 Nick Clifton <nickc@redhat.com>
160 * po/sr.po: Updated Serbian translation.
162 2020-07-27 Alan Modra <amodra@gmail.com>
164 * options.h (DEFINE_enum): Add optional_arg__ param, adjust
166 (General_options): Add --power10-stubs and --no-power10-stubs.
167 * options.cc (General_options::parse_no_power10_stubs): New.
168 (General_options::finalize): Handle --power10-stubs.
169 * powerpc.cc (set_power10_stubs): Don't set when --power10-stubs=no.
170 (power10_stubs_auto): New.
171 (struct Plt_stub_ent): Add toc_ and tocoff_. Don't use a bitfield
173 (struct Branch_stub_ent): Add toc_and tocoff_. Use bitfields for
174 iter_, notoc_ and save_res_.
175 (add_plt_call_entry): Set toc_. Adjust resizing conditions for
176 --power10-stubs=auto.
177 (add_long_branch_entry): Set toc_.
178 (add_eh_frame, define_stub_syms): No longer use const_iterators
179 for plt and long branch stub iteration.
180 (build_tls_opt_head, build_tls_opt_tail): Change parameters and
181 return value. Move tests for __tls_get_addr to callers.
182 (plt_call_size): Handle --power10-stubs=auto.
183 (branch_stub_size): Likewise.
184 (Stub_table::do_write): Likewise.
185 (relocate): Likewise.
187 2020-07-19 H.J. Lu <hongjiu.lu@intel.com>
189 * testsuite/bnd_ifunc_1.sh: Updated.
190 * testsuite/bnd_plt_1.sh: Likewise.
191 * testsuite/split_x32.sh: Likewise.
192 * testsuite/split_x86_64.sh: Likewise.
193 * testsuite/x86_64_indirect_call_to_direct.sh: Likewise.
195 2020-07-08 Nick Clifton <nickc@redhat.com>
197 * testsuite/script_test_7.sh: Adjust expected address of the .bss
199 * testsuite/script_test_9.sh: Do not expect the .init section to
200 immediately follow the .text section in the mapping of sections to
203 2020-07-07 Nick Clifton <nickc@redhat.com>
205 * target-reloc.h: (Default_comdat_behaviour:get): Ignore discarded
206 relocs that refer to the .gnu.build.attributes section.
208 2020-07-06 Nick Clifton <nickc@redhat.com>
210 * po/fr.po: Updated French translation.
211 * po/uk.po: Updated Ukranian translation.
213 2020-07-04 Nick Clifton <nickc@redhat.com>
215 Binutils 2.35 branch created.
217 2020-07-03 Alan Modra <amodra@gmail.com>
220 * testsuite/Makefile.am (file_in_many_sections.stdout): Add -W
222 * testsuite/Makefile.in: Regenerate.
224 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
226 * configure.ac: Check for bswap_16, bswap_32, and bswap_64 decls.
227 * configure: Regenerated.
228 * config.h.in: Likewise.
230 2020-06-24 Nick Clifton <nickc@redhat.com>
232 * target-reloc.h (issue_discarded_error): Initialise the
235 2020-06-23 Roland McGrath <mcgrathr@google.com>
238 * options.h (class General_options): Add --dependency-file option.
239 * fileread.cc (File_read::files_read): New static variable.
240 (File_read::open): Add the file to the files_read list.
241 (File_read::record_file_read): New static member function.
242 (File_read::write_dependency_file): New static member function.
243 * fileread.h (class File_read): Declare them.
244 * layout.cc (Layout::read_layout_from_file): Call record_file_read.
245 (Close_task_runner::run): Call write_dependency_file if
246 --dependency-file was passed.
248 2020-06-18 Fangrui Song <i@maskray.me>
251 * layout.cc (Layout::finish_dynamic_section): Set DF_1_PIE.
253 2020-06-16 Alan Modra <amodra@gmail.com>
255 * testsuite/discard_locals_test.c: Replace uses of asm with __asm__.
256 * testsuite/discard_locals_relocatable_test.c: Likewise.
258 2020-06-16 Alan Modra <amodra@gmail.com>
260 * testsuite/Makefile.am (export_dynamic_plugin.o): Use CXXCOMPILE.
261 (plugin_test_wrap_symbols_1.o): Likewise.
262 (plugin_test_wrap_symbols_2.o): Likewise.
263 * testsuite/Makefile.in: Regenerate.
265 2020-06-15 Roland McGrath <mcgrathr@google.com>
267 Implement -z start-stop-visibility=... option.
268 * options.h (class General_options): Handle -z start-stop-visibility=.
269 (General_options::start_stop_visibility_enum): New public method.
270 (General_options::set_start_stop_visibility_enum): New private method.
271 (General_options::start_stop_visibility_enum_): New private member.
272 * options.cc (General_options::General_options): Add initializer.
273 (General_options::finalize): Set this->start_stop_visibility_enum_
275 * layout.cc (Layout::define_section_symbols): Use option setting.
277 2020-06-06 Alan Modra <amodra@gmail.com>
279 * powerpc.cc: Update throughout for reloc renaming.
281 2020-05-22 Alan Modra <amodra@gmail.com>
284 * powerpc.cc (merge_object_attributes): Replace name param with
285 obj param. Update callers. Don't init FP attributes from shared
286 libraries, and do not emit an error if they don't match.
288 2020-05-15 Nikita Ermakov <coffe92@gmail.com>
290 * powerpc.cc (do_gc_mark_symbol): Don't segfault on plugin symbols.
292 2020-05-14 Nick Clifton <nickc@redhat.com>
294 * po/sr.po: New Serbian translation.
296 2020-05-11 Alan Modra <amodra@gmail.com>
298 * powerpc.cc: Rename powerxx to power10 throughout.
300 2020-05-02 H.J. Lu <hongjiu.lu@intel.com>
303 * testsuite/Makefile.am (COMMON_TEST_C_CFLAGS): New.
304 (common_test_1.o): New rule.
305 (common_test_2.o): Likewise.
306 (common_test_3.o): Likewise.
307 (plugin_common_test_1.o): Likewise.
308 (plugin_common_test_2.o): Likewise.
309 (common_test_1_v1.o): Likewise.
310 (common_test_1_v2.o): Likewise.
311 (common_test_2_pic.o): Compile with $(COMMON_TEST_C_CFLAGS).
312 (common_test_3_pic.o): Likewise.
313 * testsuite/Makefile.in: Regenerated.
315 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
318 * x86_64.cc (Target_x86_64<size>::Relocate::tls_desc_gd_to_ie):
319 For x32, relax "rex leal foo@tlsdesc(%rip), %reg" to
320 "rex movl foo@gottpoff(%rip), %eax" and relax ""call *(%eax)"
322 (Target_x86_64<size>::Relocate::tls_desc_gd_to_le): For x32,
323 relax "rex leal foo@tlsdesc(%rip), %reg" to
324 "rex movl foo@tpoff, %eax" and relax "call *foo@tlscall(%eax)"
326 * testsuite/Makefile.am (tls_test_gnu2.o): Depend on
328 (tls_test_file2_gnu2.o): Likewise.
329 (tls_test_c_gnu2.o): Likewise.
330 * testsuite/Makefile.in: Regenerated.
332 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
335 * x86_64.cc (Target_x86_64<size>::Relocate::tls_desc_gd_to_ie):
336 Properly check r8 - r15 in "lea foo@TLSDESC(%rip), %reg".
337 (Target_x86_64<size>::Relocate::tls_desc_gd_to_le): Properly
338 relax r8 - r15 in "lea foo@TLSDESC(%rip), %reg".
339 * testsuite/Makefile.am (check_SCRIPTS): Add x86_64_gd_to_le.sh.
340 (check_DATA): Add x86_64_gd_to_le.stdout.
341 (MOSTLYCLEANFILES): Add x86_64_gd_to_le.
342 (x86_64_gd_to_le.o): New target.
343 (x86_64_gd_to_le): Likewise.
344 (x86_64_gd_to_le.stdout): Likewise.
345 * testsuite/Makefile.in: Regenerated.
346 * testsuite/x86_64_gd_to_le.s: New file.
347 * testsuite/x86_64_gd_to_le.sh: Likewise.
349 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
351 * testsuite/odr_violation2.cc (Ordering::operator()): Make
352 expression even more complex.
354 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
356 * testsuite/ver_test_pr16504.sh: Updated.
358 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
361 * x86_64.cc (Output_data_plt_x86_64_bnd::do_write): Increment
362 plt_offset after setting the reserved TLSDESC PLT entry.
363 (Output_data_plt_x86_64_ibt<size>::do_write): Likewise.
365 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
368 * x86_64.cc (Output_data_plt_x86_64_bnd::do_address_for_local):
369 Handle local IFUNC symbol.
370 (Output_data_plt_x86_64_ibt::do_address_for_local): Likewise.
372 2020-03-19 Fangrui Song <maskray@google.com>
374 * options.h (General_options): Add --no-rosegment option.
376 2020-02-24 Nick Clifton <nickc@redhat.com>
378 * po/fr.po: Update French translation.
380 2020-01-20 Nick Clifton <nickc@redhat.com>
382 * po/uk.po: Updated Ukranian translation.
384 2020-01-18 Nick Clifton <nickc@redhat.com>
386 * configure: Regenerate.
387 * po/gold.pot: Regenerate.
389 2020-01-18 Nick Clifton <nickc@redhat.com>
391 Binutils 2.34 branch created.
393 2020-01-01 Alan Modra <amodra@gmail.com>
395 Update year range in copyright notice of all files.
397 For older changes see ChangeLog-2019
399 Copyright (C) 2020 Free Software Foundation, Inc.
401 Copying and distribution of this file, with or without modification,
402 are permitted in any medium without royalty provided the copyright
403 notice and this notice are preserved.
409 version-control: never