Add -Av9 to AFLAGS_PIC and AFLAGS_PIE in the ld test suite on SPARC.
[deliverable/binutils-gdb.git] / gold / ChangeLog
1 2020-08-24 Alan Modra <amodra@gmail.com>
2
3 * powerpc.cc (Target_powerpc): Add tprel_opt_ and accessors.
4 (Target_powerpc::Scan::local): Sanity check tprel high relocs.
5 (Target_powerpc::Scan::global): Likewise.
6 (Target_powerpc::Relocate::relocate): Control tprel optimisation
7 with tprel_opt_ and enable for 32-bit.
8
9 2020-08-12 Nick Clifton <nickc@redhat.com>
10
11 * po/sr.po: Updated Serbian translation.
12
13 2020-07-27 Alan Modra <amodra@gmail.com>
14
15 * options.h (DEFINE_enum): Add optional_arg__ param, adjust
16 all uses.
17 (General_options): Add --power10-stubs and --no-power10-stubs.
18 * options.cc (General_options::parse_no_power10_stubs): New.
19 (General_options::finalize): Handle --power10-stubs.
20 * powerpc.cc (set_power10_stubs): Don't set when --power10-stubs=no.
21 (power10_stubs_auto): New.
22 (struct Plt_stub_ent): Add toc_ and tocoff_. Don't use a bitfield
23 for indx_.
24 (struct Branch_stub_ent): Add toc_and tocoff_. Use bitfields for
25 iter_, notoc_ and save_res_.
26 (add_plt_call_entry): Set toc_. Adjust resizing conditions for
27 --power10-stubs=auto.
28 (add_long_branch_entry): Set toc_.
29 (add_eh_frame, define_stub_syms): No longer use const_iterators
30 for plt and long branch stub iteration.
31 (build_tls_opt_head, build_tls_opt_tail): Change parameters and
32 return value. Move tests for __tls_get_addr to callers.
33 (plt_call_size): Handle --power10-stubs=auto.
34 (branch_stub_size): Likewise.
35 (Stub_table::do_write): Likewise.
36 (relocate): Likewise.
37
38 2020-07-19 H.J. Lu <hongjiu.lu@intel.com>
39
40 * testsuite/bnd_ifunc_1.sh: Updated.
41 * testsuite/bnd_plt_1.sh: Likewise.
42 * testsuite/split_x32.sh: Likewise.
43 * testsuite/split_x86_64.sh: Likewise.
44 * testsuite/x86_64_indirect_call_to_direct.sh: Likewise.
45
46 2020-07-08 Nick Clifton <nickc@redhat.com>
47
48 * testsuite/script_test_7.sh: Adjust expected address of the .bss
49 section.
50 * testsuite/script_test_9.sh: Do not expect the .init section to
51 immediately follow the .text section in the mapping of sections to
52 segments.
53
54 2020-07-07 Nick Clifton <nickc@redhat.com>
55
56 * target-reloc.h: (Default_comdat_behaviour:get): Ignore discarded
57 relocs that refer to the .gnu.build.attributes section.
58
59 2020-07-06 Nick Clifton <nickc@redhat.com>
60
61 * po/fr.po: Updated French translation.
62 * po/uk.po: Updated Ukranian translation.
63
64 2020-07-04 Nick Clifton <nickc@redhat.com>
65
66 Binutils 2.35 branch created.
67
68 2020-07-03 Alan Modra <amodra@gmail.com>
69
70 PR 26028
71 * testsuite/Makefile.am (file_in_many_sections.stdout): Add -W
72 to readelf options.
73 * testsuite/Makefile.in: Regenerate.
74
75 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
76
77 * configure.ac: Check for bswap_16, bswap_32, and bswap_64 decls.
78 * configure: Regenerated.
79 * config.h.in: Likewise.
80
81 2020-06-24 Nick Clifton <nickc@redhat.com>
82
83 * target-reloc.h (issue_discarded_error): Initialise the
84 key_symndx variable.
85
86 2020-06-23 Roland McGrath <mcgrathr@google.com>
87
88 PR 22843
89 * options.h (class General_options): Add --dependency-file option.
90 * fileread.cc (File_read::files_read): New static variable.
91 (File_read::open): Add the file to the files_read list.
92 (File_read::record_file_read): New static member function.
93 (File_read::write_dependency_file): New static member function.
94 * fileread.h (class File_read): Declare them.
95 * layout.cc (Layout::read_layout_from_file): Call record_file_read.
96 (Close_task_runner::run): Call write_dependency_file if
97 --dependency-file was passed.
98
99 2020-06-18 Fangrui Song <i@maskray.me>
100
101 PR gold/26039
102 * layout.cc (Layout::finish_dynamic_section): Set DF_1_PIE.
103
104 2020-06-16 Alan Modra <amodra@gmail.com>
105
106 * testsuite/discard_locals_test.c: Replace uses of asm with __asm__.
107 * testsuite/discard_locals_relocatable_test.c: Likewise.
108
109 2020-06-16 Alan Modra <amodra@gmail.com>
110
111 * testsuite/Makefile.am (export_dynamic_plugin.o): Use CXXCOMPILE.
112 (plugin_test_wrap_symbols_1.o): Likewise.
113 (plugin_test_wrap_symbols_2.o): Likewise.
114 * testsuite/Makefile.in: Regenerate.
115
116 2020-06-15 Roland McGrath <mcgrathr@google.com>
117
118 Implement -z start-stop-visibility=... option.
119 * options.h (class General_options): Handle -z start-stop-visibility=.
120 (General_options::start_stop_visibility_enum): New public method.
121 (General_options::set_start_stop_visibility_enum): New private method.
122 (General_options::start_stop_visibility_enum_): New private member.
123 * options.cc (General_options::General_options): Add initializer.
124 (General_options::finalize): Set this->start_stop_visibility_enum_
125 from string value.
126 * layout.cc (Layout::define_section_symbols): Use option setting.
127
128 2020-06-06 Alan Modra <amodra@gmail.com>
129
130 * powerpc.cc: Update throughout for reloc renaming.
131
132 2020-05-22 Alan Modra <amodra@gmail.com>
133
134 PR 25882
135 * powerpc.cc (merge_object_attributes): Replace name param with
136 obj param. Update callers. Don't init FP attributes from shared
137 libraries, and do not emit an error if they don't match.
138
139 2020-05-15 Nikita Ermakov <coffe92@gmail.com>
140
141 * powerpc.cc (do_gc_mark_symbol): Don't segfault on plugin symbols.
142
143 2020-05-14 Nick Clifton <nickc@redhat.com>
144
145 * po/sr.po: New Serbian translation.
146
147 2020-05-11 Alan Modra <amodra@gmail.com>
148
149 * powerpc.cc: Rename powerxx to power10 throughout.
150
151 2020-05-02 H.J. Lu <hongjiu.lu@intel.com>
152
153 PR gold/25904
154 * testsuite/Makefile.am (COMMON_TEST_C_CFLAGS): New.
155 (common_test_1.o): New rule.
156 (common_test_2.o): Likewise.
157 (common_test_3.o): Likewise.
158 (plugin_common_test_1.o): Likewise.
159 (plugin_common_test_2.o): Likewise.
160 (common_test_1_v1.o): Likewise.
161 (common_test_1_v2.o): Likewise.
162 (common_test_2_pic.o): Compile with $(COMMON_TEST_C_CFLAGS).
163 (common_test_3_pic.o): Likewise.
164 * testsuite/Makefile.in: Regenerated.
165
166 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
167
168 PR gold/25426
169 * x86_64.cc (Target_x86_64<size>::Relocate::tls_desc_gd_to_ie):
170 For x32, relax "rex leal foo@tlsdesc(%rip), %reg" to
171 "rex movl foo@gottpoff(%rip), %eax" and relax ""call *(%eax)"
172 to "nopl (%rax)".
173 (Target_x86_64<size>::Relocate::tls_desc_gd_to_le): For x32,
174 relax "rex leal foo@tlsdesc(%rip), %reg" to
175 "rex movl foo@tpoff, %eax" and relax "call *foo@tlscall(%eax)"
176 to "nopl (%rax)".
177 * testsuite/Makefile.am (tls_test_gnu2.o): Depend on
178 gcctestdir/as.
179 (tls_test_file2_gnu2.o): Likewise.
180 (tls_test_c_gnu2.o): Likewise.
181 * testsuite/Makefile.in: Regenerated.
182
183 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
184
185 PR gold/25473
186 * x86_64.cc (Target_x86_64<size>::Relocate::tls_desc_gd_to_ie):
187 Properly check r8 - r15 in "lea foo@TLSDESC(%rip), %reg".
188 (Target_x86_64<size>::Relocate::tls_desc_gd_to_le): Properly
189 relax r8 - r15 in "lea foo@TLSDESC(%rip), %reg".
190 * testsuite/Makefile.am (check_SCRIPTS): Add x86_64_gd_to_le.sh.
191 (check_DATA): Add x86_64_gd_to_le.stdout.
192 (MOSTLYCLEANFILES): Add x86_64_gd_to_le.
193 (x86_64_gd_to_le.o): New target.
194 (x86_64_gd_to_le): Likewise.
195 (x86_64_gd_to_le.stdout): Likewise.
196 * testsuite/Makefile.in: Regenerated.
197 * testsuite/x86_64_gd_to_le.s: New file.
198 * testsuite/x86_64_gd_to_le.sh: Likewise.
199
200 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
201
202 * testsuite/odr_violation2.cc (Ordering::operator()): Make
203 expression even more complex.
204
205 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
206
207 * testsuite/ver_test_pr16504.sh: Updated.
208
209 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
210
211 PR gold/25872
212 * x86_64.cc (Output_data_plt_x86_64_bnd::do_write): Increment
213 plt_offset after setting the reserved TLSDESC PLT entry.
214 (Output_data_plt_x86_64_ibt<size>::do_write): Likewise.
215
216 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
217
218 PR gold/25872
219 * x86_64.cc (Output_data_plt_x86_64_bnd::do_address_for_local):
220 Handle local IFUNC symbol.
221 (Output_data_plt_x86_64_ibt::do_address_for_local): Likewise.
222
223 2020-03-19 Fangrui Song <maskray@google.com>
224
225 * options.h (General_options): Add --no-rosegment option.
226
227 2020-02-24 Nick Clifton <nickc@redhat.com>
228
229 * po/fr.po: Update French translation.
230
231 2020-01-20 Nick Clifton <nickc@redhat.com>
232
233 * po/uk.po: Updated Ukranian translation.
234
235 2020-01-18 Nick Clifton <nickc@redhat.com>
236
237 * configure: Regenerate.
238 * po/gold.pot: Regenerate.
239
240 2020-01-18 Nick Clifton <nickc@redhat.com>
241
242 Binutils 2.34 branch created.
243
244 2020-01-01 Alan Modra <amodra@gmail.com>
245
246 Update year range in copyright notice of all files.
247
248 For older changes see ChangeLog-2019
249 \f
250 Copyright (C) 2020 Free Software Foundation, Inc.
251
252 Copying and distribution of this file, with or without modification,
253 are permitted in any medium without royalty provided the copyright
254 notice and this notice are preserved.
255
256 Local Variables:
257 mode: change-log
258 left-margin: 8
259 fill-column: 74
260 version-control: never
261 End:
This page took 0.03408 seconds and 4 git commands to generate.