Commit | Line | Data |
---|---|---|
5acaada7 AM |
1 | 2018-11-08 Alan Modra <amodra@gmail.com> |
2 | ||
3 | * Makefile.am (gcctestdir1/ld): Use $@ and absolute paths. | |
4 | (gcctestdir1/collect-ld): New. | |
5 | (ld1_DEPENDENCIES): Add gcctestdir1/collect-ld. | |
6 | (ld1_LDFLAGS): Remove -Bgcctestdir1/. | |
7 | (editcc1, ld1_LINK): Define. | |
8 | (gcctestdir2/ld, gcctestdir2/collect-ld, ld2_DEPENDENCIES), | |
9 | (ld2_LDFLAGS, editcc2, ld2_LINK), | |
10 | (ld1_r_DEPENDENCIES, ld1_r_LDFLAGS, ld1_r_LINK), | |
11 | (gcctestdir2-r/ld, gcctestdir2-r/collect-ld, ld2_r_DEPENDENCIES), | |
12 | (ld2_r_LDFLAGS, editcc2r, ld2_r_LINK), | |
13 | (gcctestdir3/ld, gcctestdir3/collect-ld, ld3_DEPENDENCIES), | |
14 | (ld3_LDFLAGS, editcc3, ld3_LINK), | |
15 | (gcctestdir4/ld, gcctestdir4/collect-ld, ld4_DEPENDENCIES), | |
16 | (ld4_LDFLAGS, editcc4, ld4_LINK): Similarly. | |
17 | * Makefile.in: Regenerate. | |
18 | * testsuite/Makefile.am (editcc): Define sed command to put | |
19 | our -B option first. Remove other occurrences of -Bgcctestdir/ | |
20 | throughout file. | |
21 | (editcc1): Define for -D_FORTIFY_SOURCE stripping. | |
22 | (editcc2): Define for -static-libgcc/libstdc++ stripping. | |
23 | (LINK1, CXXLINK1): Don't use CCLD or CXXLD. | |
24 | (CCLD, CXXLD, COMPILE, LINK, CXXCOMPILE, CXXLINK, CXXLINK_S): Define | |
25 | using editcc macros. | |
26 | (gcctestdir/collect-ld): New rule, add as a dependency of.. | |
27 | (gcctestdir/ld): ..this. Use $@ and abs_top_buildir. | |
28 | (gcctestdir/as): Use $@. | |
29 | * testsuite/Makefile.in: Regenerate. | |
30 | * testsuite/incremental_test.sh (actual): Match collect-ld too. | |
31 | ||
396ce998 AM |
32 | 2018-11-02 Alan Modra <amodra@gmail.com> |
33 | ||
34 | * Makefile.am (MOSTLYCLEANFILES): Define. | |
35 | * Makefile.in: Regnerate. | |
36 | * testsuite/Makefile.am (MOSTLYCLEANFILES): Add ver_test_14 and | |
37 | gnu_property_test. | |
38 | * testsuite/Makefile.in: Regnerate. | |
39 | ||
08ea4a78 CZ |
40 | 2018-10-16 Cherry Zhang <cherryyz@google.com> |
41 | ||
42 | PR 23769 | |
43 | * gold.cc (queue_middle_tasks): Correct split-stack error message. | |
44 | ||
ac8cb70f CX |
45 | 2018-08-29 Chenghua Xu <paul.hua.gm@gmail.com> |
46 | ||
47 | * mips.cc (Mips_mach, add_machine_extensions, elf_mips_mach): | |
48 | Rename loongson3a to gs464. | |
49 | (mips_isa_ext_mach, mips_isa_ext): Delete loongson3a. | |
50 | (infer_abiflags): Use ases instead of isa_ext for infer ABI | |
51 | flags. | |
52 | (elf_mips_mach_name): Rename loongson3a to gs464. | |
53 | ||
f6f9ed01 TMQMF |
54 | 2018-07-10 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> |
55 | ||
56 | * object.cc (Sized_relobj_file::map_to_kept_section): Initialize | |
57 | kept_file. | |
58 | ||
a9fc784b CC |
59 | 2018-08-07 Cary Coutant <ccoutant@gmail.com> |
60 | ||
61 | PR ld/23486 | |
62 | * x86_64.cc (Target_x86_64::Target_x86_64): Initialize | |
63 | object_isa_1_used_. | |
64 | (Target_x86_64::object_isa_1_used_): New data member. | |
65 | (Target_x86_64::record_gnu_property): Save ISA_1_USED bits for object. | |
66 | (Target_x86_64::merge_gnu_properties): Merge ISA_1_USED bits. | |
67 | ||
3a12c78d CC |
68 | 2018-08-06 Cary Coutant <ccoutant@gmail.com> |
69 | ||
70 | PR gold/23455 | |
71 | * options.h (General_options): Add --warn-drop-version option. | |
72 | * symtab.cc (Symbol_table::set_dynsym_indexes): Check it. | |
73 | ||
dc1f2887 CC |
74 | 2018-08-06 Cary Coutant <ccoutant@gmail.com> |
75 | ||
76 | * target.h (Sized_target::record_gnu_property): Change first two | |
77 | parameters to unsigned int. | |
78 | * x86_64.cc (Target_x86_64::record_gnu_property): Likewise. | |
79 | ||
7d8a3166 NC |
80 | 2018-07-30 Nick Clifton <nickc@redhat.com> |
81 | ||
82 | * layout.cc (section_name_mapping): Add an entry for | |
83 | .gnu.build.attributes. | |
84 | ||
0984c34e NC |
85 | 2018-07-18 Nick Clifton <nickc@redhat.com> |
86 | ||
87 | * po/fr.po: Updated French translation. | |
88 | ||
1074bc6d CC |
89 | 2018-07-14 Cary Coutant <ccoutant@gmail.com> |
90 | ||
91 | PR gold/23397 | |
92 | * object.cc (Sized_relobj_file::do_layout): Mark section as deferred. | |
93 | * testsuite/Makefile.am (plugin_test_1): Add --emit-relocs option to | |
94 | existing test case. | |
95 | * testsuite/Makefile.in: Regenerate. | |
96 | ||
1b115e8e CC |
97 | 2018-07-14 Cary Coutant <ccoutant@gmail.com> |
98 | ||
99 | PR gold/23409 | |
100 | * symtab.cc (Symbol_table::define_special_symbol): Add check for | |
101 | version name on existing symbol. | |
102 | * testsuite/Makefile.am (ver_test_pr23409): New test case. | |
103 | * testsuite/Makefile.in: Regenerate. | |
104 | * testsuite/ver_test_pr23409.sh: New test script. | |
105 | * testsuite/ver_test_pr23409_1.script: New version script. | |
106 | * testsuite/ver_test_pr23409_2.script: New version script. | |
107 | ||
04879304 FS |
108 | 2018-07-11 Franz Sirl <franz.sirl-kernel@lauterbach.com> |
109 | ||
110 | * main.cc (main): Print m.arena as long long. | |
111 | ||
c3c5e486 CC |
112 | 2018-07-09 Cary Coutant <ccoutant@gmail.com> |
113 | ||
114 | * incremental.cc (Sized_incremental_binary::setup_readers): Use | |
115 | emplace_back for C++ 11 or later. | |
116 | ||
724436fc AM |
117 | 2018-07-06 Alan Modra <amodra@gmail.com> |
118 | ||
119 | * powerpc.cc: Include attributes.h. | |
120 | (Powerpc_relobj::attributes_section_data_): New variable, with | |
121 | accessor and associated constructor and destructor support. | |
122 | (Powerpc_dynobj::attributes_section_data_): Likewise. | |
123 | (Powerpc_relobj::do_read_symbols): Stash SHT_GNU_ATTRIBUTES section | |
124 | contents in attributes_section_data_. | |
125 | (Powerpc_dynobj::do_read_symbols): Likewise. | |
126 | (Target_powerpc): Add attributes_section_data_, last_fp_, last_ld_, | |
127 | last_vec_, and last_struct_ vars. | |
128 | (Target_powerpc::merge_object_attributes): New function. | |
129 | (Target_powerpc::do_finalize_sections): Iterate over input objects | |
130 | merging attributes. Create output attributes section. | |
131 | ||
30aa1306 NC |
132 | 2018-06-26 Nick Clifton <nickc@redhat.com> |
133 | ||
134 | * po/uk.po: Updated Ukranian translation. | |
135 | ||
71300e2c NC |
136 | 2018-06-24 Nick Clifton <nickc@redhat.com> |
137 | ||
138 | * po/gold.pot: Regenerate. | |
139 | ||
719d8288 NC |
140 | 2018-06-24 Nick Clifton <nickc@redhat.com> |
141 | ||
142 | 2.31 branch created. | |
143 | ||
155ea1bc CC |
144 | 2018-06-23 Cary Coutant <ccoutant@gmail.com> |
145 | ||
146 | * version.cc (version_string): Bump to 1.16. | |
147 | * NEWS: Add new features in 1.16. | |
148 | ||
add41311 CC |
149 | 2018-06-23 Cary Coutant <ccoutant@gmail.com> |
150 | ||
151 | PR gold/22914 | |
152 | * x86_64.cc (Target_x86_64::record_gnu_property): Initialize val. | |
153 | ||
750ea5ed CC |
154 | 2018-06-23 Cary Coutant <ccoutant@gmail.com> |
155 | ||
156 | PR gold/22915 | |
157 | * x86_64.cc (Output_data_plt_x86_64_ibt): New class. | |
158 | (Target_x86_64::do_make_data_plt): (All instantiations) Check for | |
159 | IBT feature bit and create IBT PLTs. | |
160 | ||
a2575bec CC |
161 | 2018-06-22 Cary Coutant <ccoutant@gmail.com> |
162 | ||
163 | PR gold/22914 | |
164 | * layout.cc (read_sized_value): Fix spelling of section name. | |
165 | (Layout::layout_gnu_property): Call Sized_target::record_gnu_property | |
166 | for target-specific properties; | |
167 | don't store them with target-independent properties yet. | |
168 | (Layout::merge_gnu_properties): New method. | |
169 | (Layout::add_gnu_property): New method. | |
170 | (Layout::create_gnu_properties_note): Call target to finalize | |
171 | target-specific properties. Fix spelling of output section name. | |
172 | * layout.h (Layout::merge_gnu_properties): New method. | |
173 | (Layout::add_gnu_property): New method. | |
174 | * object.cc (Sized_relobj_file::do_layout): Call | |
175 | Layout::merge_gnu_properties. | |
176 | * target.h (Target::merge_gnu_property): Remove. | |
177 | (Target::finalize_gnu_properties): New method. | |
178 | (Target::do_merge_gnu_property): Move to Sized_target and rename. | |
179 | (Target::do_finalize_gnu_properties): New virtual method. | |
180 | (Sized_target::record_gnu_property): Moved and renamed from | |
181 | Target::do_merge_gnu_property. | |
182 | (Sized_target::merge_gnu_properties): New virtual method. | |
183 | * x86_64.cc (Target_x86_64::isa_1_used_, isa_1_needed_) | |
184 | (feature_1_, object_feature_1_, seen_first_object_): New data members. | |
185 | (Target_x86_64::do_merge_gnu_property): Rename to ... | |
186 | (Target_x86_64::record_gnu_property): ... this. Save target-specific | |
187 | properties in Target class object. | |
188 | (Target_x86_64::merge_gnu_properties): New method. | |
189 | (add_property): New static inline function. | |
190 | (Target_x86_64::do_finalize_gnu_properties): New method. | |
191 | * testsuite/Makefile.am (gnu_property_test): Remove C source file; | |
192 | link directly without compiler driver. | |
193 | * testsuite/Makefile.in: Regenerate. | |
194 | * testsuite/gnu_property_a.S: Add _start. | |
195 | ||
a1893a82 CC |
196 | 2018-06-22 Cary Coutant <ccoutant@gmail.com> |
197 | ||
198 | * incremental.cc (Sized_incremental_binary::setup_readers): Use | |
199 | emplace_back for GCC 5 and later. | |
200 | * incremental.h (Incremental_binary::Input_reader): Provide copy | |
201 | constructor. | |
202 | (Sized_incremental_binary::Sized_input_reader): Likewise. | |
203 | ||
6c04fd9b CC |
204 | 2018-06-22 Cary Coutant <ccoutant@gmail.com> |
205 | ||
206 | PR gold/22914 | |
207 | * layout.cc (Layout::Layout): Initialize gnu_properties_. | |
208 | (read_sized_value, write_sized_value): New functions. | |
209 | (Layout::layout_gnu_property): New method. | |
210 | (Layout::create_notes): Call create_gnu_properties_note. | |
211 | (Layout::create_gnu_properties_note): New method. | |
212 | * layout.h (Layout::layout_gnu_property): New method. | |
213 | (Layout::create_gnu_properties_note): New method. | |
214 | (Layout::Gnu_property, Layout::Gnu_properties): New types. | |
215 | (Layout::gnu_properties_): New data member. | |
216 | * object.cc (Sized_relobj_file::layout_gnu_property_section): New | |
217 | method. | |
218 | (Sized_relobj_file::do_layout): Handle .note.gnu.property sections. | |
219 | * object.h (Sized_relobj_file::layout_gnu_property_section): New | |
220 | method. | |
221 | * target.h (Target::merge_gnu_property): New method. | |
222 | (Target::do_merge_gnu_property): New virtual method. | |
223 | * x86_64.cc (Target_x86_64::do_merge_gnu_property): New method. | |
224 | * testsuite/Makefile.am (gnu_property_test): New test case. | |
225 | * testsuite/Makefile.in: Regenerate. | |
226 | * testsuite/gnu_property_a.S: New source file. | |
227 | * testsuite/gnu_property_b.S: New source file. | |
228 | * testsuite/gnu_property_c.S: New source file. | |
229 | * testsuite/gnu_property_main.c: New source file. | |
230 | * testsuite/gnu_property_test.sh: New test script. | |
231 | ||
cea6ffbd CC |
232 | 2018-06-21 Cary Coutant <ccoutant@gmail.com> |
233 | ||
234 | * resolve.cc (Symbol_table::resolve): Rename tobinding to | |
235 | orig_tobinding. Call set_is_needed() for objects that resolve | |
236 | non-weak references. | |
237 | (Symbol_table::should_override): Allow a dynamic definition to | |
238 | override an earlier one in a not-needed library. | |
239 | * symtab.cc (Symbol_table::set_dynsym_indexes): Remove separate | |
240 | processing for as-needed symbols. Add warning when discarding | |
241 | version informatin. | |
242 | * testsuite/Makefile.am (weak_as_needed): New test case. | |
243 | * testsuite/Makefile.in: Regenerate. | |
244 | * testsuite/weak_as_needed.sh: New test script. | |
245 | * testsuite/weak_as_needed_a.c: New source file. | |
246 | * testsuite/weak_as_needed_b.c: New source file. | |
247 | * testsuite/weak_as_needed_b.script: New version script. | |
248 | * testsuite/weak_as_needed_c.c: New source file. | |
249 | * testsuite/weak_as_needed_c.script: New version script. | |
250 | ||
ebb13322 CC |
251 | 2018-06-20 Cary Coutant <ccoutant@gmail.com> |
252 | ||
253 | PR gold/23268 | |
254 | * dynobj.cc (Versions::Versions): Change init for needs_base_version_. | |
255 | (Versions::record_version): Add verdefs for both shared objects and | |
256 | executables. | |
257 | (Versions::add_def): Likewise for base version. | |
258 | (Versions::add_need): Don't add base version for executables. | |
259 | (Versions::version_index): Look up version for both shared objects and | |
260 | executables. | |
261 | * testsuite/Makefile.am (ver_test_14): New test case. | |
262 | * testsuite/Makefile.in: Regenerate. | |
263 | * testsuite/ver_test_14.script: New version script. | |
264 | * testsuite/ver_test_14.sh: New test script. | |
265 | ||
c8dc28bc CC |
266 | 2018-06-19 Joshua Watt <jpewhacker@gmail.com> |
267 | Cary Coutant <ccoutant@gmail.com> | |
268 | ||
269 | * configure.ac: Replace manual thread configuration with AX_PTHREAD. | |
270 | Add --enable-threads=auto. | |
271 | * Makefile.am (THREADFLAGS, THREADLIBS): New defines. | |
4ef2c1b9 | 272 | (AM_CFLAGS, AM_CXXFLAGS): Add $(THREADFLAGS). |
c8dc28bc CC |
273 | (THREADSLIB): Remove; change all references to THREADLIBS. |
274 | * Makefile.in: Regenerate. | |
275 | * aclocal.m4: Regenerate. | |
276 | * config.in: Regenerate. | |
277 | * configure: Regenerate. | |
278 | * testsuite/Makefile.am (THREADSLIB): Replace with... | |
279 | (THREADFLAGS, THREADLIBS): ... these. | |
280 | (LDADD): Remove; add as individual defines for... | |
281 | (object_unittest, binary_unittest, leb128_unittest) | |
282 | (overflow_unittest): ... these tests. | |
283 | (tls_test, tls_pic_test, tls_pie_test, tls_pie_pic_test) | |
284 | (tls_shared_test, tls_shared_ie_test, tls_shared_gd_to_ie_test) | |
285 | (tls_shared_gnu2_gd_to_ie_test, tls_shared_gnu2_test_LDFLAGS) | |
286 | (tls_shared_nonpic_test_LDFLAGS): Add $(THREADFLAGS) and ($THREADLIBS). | |
287 | * testsuite/Makefile.in: Regenerate. | |
288 | ||
27ab0424 CC |
289 | 2018-06-19 Cary Coutant <ccoutant@gmail.com> |
290 | ||
291 | * testsuite/Makefile.am (MOSTLYCLEANFILES): Add *.stderr. | |
292 | * testsuite/Makefile.in: Regenerate. | |
293 | ||
d0ac1c44 SM |
294 | 2018-06-19 Simon Marchi <simon.marchi@ericsson.com> |
295 | ||
296 | * configure.ac: Remove AC_PREREQ, add missing quoting and usage | |
297 | of AC_LANG_SOURCE. | |
298 | * Makefile.in: Re-generate. | |
299 | * aclocal.m4: Re-generate. | |
300 | * configure: Re-generate. | |
301 | * testsuite/Makefile.in: Re-generate. | |
302 | ||
a45a8f91 SC |
303 | 2018-05-10 Stephen Crane <sjc@immunant.com> |
304 | ||
305 | * aarch64.cc (Target_aarch64::do_finalize_sections): Use size of | |
306 | .got section for the _GLOBAL_OFFSET_TABLE_ symbol computation. | |
307 | ||
651d1620 CC |
308 | 2018-04-24 Cary Coutant <ccoutant@gmail.com> |
309 | ||
310 | PR gold/20642 | |
311 | PR gold/22820 | |
312 | * gc.h (gc_process_relocs): Flag STT_SECTION symbols in symvec. | |
313 | * icf.cc (get_section_contents): For merge sections, ignore the | |
314 | addend for relocations against non-section symbols. | |
315 | ||
890d1555 CC |
316 | 2018-04-24 Cary Coutant <ccoutant@gmail.com> |
317 | ||
318 | PR gold/16504 | |
319 | * dynobj.cc (Versions::symbol_section_contents): Don't set | |
320 | VERSYM_HIDDEN flag for undefined symbols. | |
321 | * symtab.cc (Symbol_table::add_from_object): Don't override default | |
322 | version definition with a different default version. | |
323 | * symtab.h (Symbol::from_dyn): New method. | |
324 | * testsuite/plugin_test.c (struct sym_info): Add ver field. | |
325 | (claim_file_hook): Pass symbol version to plugin API. | |
326 | (parse_readelf_line): Parse symbol version. | |
327 | * testsuite/Makefile.am (ver_test_pr16504): New test case. | |
328 | * testsuite/Makefile.in: Regenerate. | |
329 | * testsuite/ver_test_pr16504.sh: New test script. | |
330 | * testsuite/ver_test_pr16504_a.c: New source file. | |
331 | * testsuite/ver_test_pr16504_a.script: New version script. | |
332 | * testsuite/ver_test_pr16504_b.c: New source file. | |
333 | * testsuite/ver_test_pr16504_b.script: New version script. | |
334 | ||
d83d5403 CC |
335 | 2018-04-19 Cary Coutant <ccoutant@gmail.com> |
336 | ||
337 | PR gold/23046 | |
338 | * gc.h (gc_process_relocs): Pass target to | |
339 | scan.local_reloc_may_be_function_pointer. | |
340 | ||
f792cedd NC |
341 | 2018-04-18 Nick Clifton <nickc@redhat.com> |
342 | ||
343 | * po/es.po: Updated Spanish translation. | |
344 | ||
aae82809 CC |
345 | 2018-04-14 Cary Coutant <ccoutant@gmail.com> |
346 | ||
347 | PR gold/23046 | |
348 | * gc.h (gc_process_relocs): Pass target to | |
349 | scan.global_reloc_may_be_function_pointer. | |
350 | ||
c4a614e2 AM |
351 | 2018-04-09 Alan Modra <amodra@gmail.com> |
352 | ||
353 | * configure: Regenerate. | |
354 | ||
23cedd1d AM |
355 | 2018-04-09 Alan Modra <amodra@gmail.com> |
356 | ||
357 | * powerpc.cc (Target_powerpc::Track_tls::maybe_skip_tls_get_addr_call): | |
358 | Handle inline plt sequence relocs. | |
359 | (Stub_table::Plt_stub_key::Plt_stub_key): Likewise. | |
360 | (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Likewise. | |
361 | (Target_powerpc::Relocate::relocate): Likewise. | |
362 | ||
2d7ad24e AM |
363 | 2018-04-09 Alan Modra <amodra@gmail.com> |
364 | ||
365 | * powerpc.cc (Target_powerpc::lplt_): New variable. | |
366 | (Target_powerpc::lplt_section): Associated accessor. | |
367 | (Target_powerpc::plt_off): Handle local non-ifunc symbols. | |
368 | (Target_powerpc::make_lplt_section): New function. | |
369 | (Target_powerpc::make_local_plt_entry): New function. | |
370 | (Powerpc_relobj::do_relocate_sections): Write out lplt. | |
371 | (Output_data_plt_powerpc::first_plt_entry_offset): Zero for lplt. | |
372 | (Output_data_plt_powerpc::add_local_entry): New function. | |
373 | (Output_data_plt_powerpc::do_write): Ignore lplt. | |
374 | (Target_powerpc::make_iplt_section): Make lplt first. | |
375 | (Target_powerpc::make_brlt_section): Make .branch_lt relro. | |
376 | (Target_powerpc::Scan::local): Handle PLT16 relocs. | |
377 | ||
08be3224 AM |
378 | 2018-04-09 Alan Modra <amodra@gmail.com> |
379 | ||
380 | * powerpc.cc (Target_powerpc::plt_off): New functions. | |
381 | (is_plt16_reloc): New function. | |
382 | (Stub_table::plt_off): Use Target_powerpc::plt_off. | |
383 | (Stub_table::plt_call_size): Use plt_off. | |
384 | (Stub_table::do_write): Likewise. | |
385 | (Target_powerpc::Scan::get_reference_flags): Return RELATIVE_REF | |
386 | for PLT16 relocations. | |
387 | (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Return true | |
388 | for PLT16 relocations. | |
389 | (Target_powerpc::Scan::global): Make a PLT entry for PLT16 relocations. | |
390 | (Target_powerpc::Relocate::relocate): Support PLT16 relocations. | |
391 | (Powerpc_scan_relocatable_reloc::global_strategy): Return RELOC_SPECIAL | |
392 | for ppc32 plt16 relocs. | |
393 | ||
43193fe9 CC |
394 | 2018-04-06 Cary Coutant <ccoutant@gmail.com> |
395 | ||
396 | * object.cc (Sized_relobj_file::include_section_group): Store | |
397 | reference to Kept_section info for discarded comdat sections | |
398 | regardless of size. Move size checking to map_to_kept_section. | |
399 | (Sized_relobj_file::include_linkonce_section): Likewise. | |
400 | (Sized_relobj_file::map_to_kept_section): Add section name parameter. | |
401 | Insert size checking logic from above functions. | |
402 | (Sized_relobj_file::find_kept_section_object): New method. | |
403 | (Sized_relobj_file::get_symbol_name): New method. | |
404 | * object.h (Sized_relobj_file::map_to_kept_section): Add section_name | |
405 | parameter. Adjust all callers. | |
406 | (Sized_relobj_file::find_kept_section_object): New method. | |
407 | (Sized_relobj_file::get_symbol_name): New method. | |
408 | (Sized_relobj_file::Kept_comdat_section): Replace object and shndx | |
409 | fields with sh_size, kept_section, symndx, and is_comdat fields. | |
410 | (Sized_relobj_file::set_kept_comdat_section): Replace kept_object | |
411 | and kept_shndx parameters with is_comdat, symndx, sh_size, and | |
412 | kept_section. | |
413 | (Sized_relobj_file::get_kept_comdat_section): Likewise. | |
414 | * target-reloc.h (enum Comdat_behavior): Change CB_WARNING to CB_ERROR. | |
415 | Adjust all references. | |
416 | (issue_undefined_symbol_error): New function template. | |
417 | (relocate_section): Pass section name to map_to_kept_section. | |
418 | Move discarded section code to new function above. | |
419 | * aarch64.cc (Target_aarch64::scan_reloc_section_for_stubs): Move | |
420 | declaration for gsym out one level. Call issue_discarded_error. | |
421 | * arm.cc (Target_arm::scan_reloc_section_for_stubs): Likewise. | |
422 | * powerpc.cc (Relocate_comdat_behavior): Change CB_WARNING to CB_ERROR. | |
423 | ||
c54b27d1 CC |
424 | 2018-04-05 Cary Coutant <ccoutant@gmail.com> |
425 | ||
426 | * target-reloc.h (relocate_section): Add local symbol index or global | |
427 | symbol name to warning about relocation that refers to discarded | |
428 | section. | |
429 | ||
494e49c9 CC |
430 | 2018-04-05 James Cowgill <james.cowgill@mips.com> |
431 | ||
432 | Revert previous patch and apply revised patch. | |
433 | ||
434 | PR gold/22770 | |
435 | * mips.cc (Mips_got_info::record_got_page_entry): Don't insert | |
436 | Got_page_entry for object's GOT. | |
437 | (Mips_got_info::add_got_page_entries): Add all pages from from's GOT. | |
438 | Rename to add_got_page_count. | |
439 | (Got_page_entry): Remove num_pages. | |
440 | ||
67faf1f4 JC |
441 | 2018-04-05 James Cowgill <james.cowgill@mips.com> |
442 | ||
443 | PR gold/22770 | |
444 | * mips.cc (Mips_got_info::record_got_page_entry): Fetch existing | |
445 | page entries for the object's GOT. | |
446 | ||
54483898 AM |
447 | 2018-04-05 Alan Modra <amodra@gmail.com> |
448 | ||
449 | * powerpc.cc (Target_powerpc::make_brlt_section): Make .branch_lt relro. | |
450 | ||
4fb0d2b9 NC |
451 | 2018-04-04 Nick Clifton <nickc@redhat.com> |
452 | ||
453 | * po/es.po: Updated Spanish translation. | |
454 | ||
bce5a025 CC |
455 | 2018-04-02 Cary Coutant <ccoutant@gmail.com> |
456 | ||
457 | PR gold/23016 | |
458 | * incremental.cc (can_incremental_update): Check for unwind section | |
459 | type. | |
460 | * layout.h (Layout::layout): Add sh_type parameter. | |
461 | * layout.cc (Layout::layout): Likewise. | |
462 | (Layout::layout_reloc): Create new output reloc section if data | |
463 | section does not already have one. | |
464 | (Layout::layout_eh_frame): Check for unwind section type. | |
465 | (Layout::make_eh_frame_section): Use unwind section type for .eh_frame | |
466 | and .eh_frame_hdr. | |
467 | * object.h (Sized_relobj_file::Shdr_write): New typedef. | |
468 | (Sized_relobj_file::layout_section): Add sh_type parameter. | |
469 | (Sized_relobj_file::Deferred_layout::Deferred_layout): Add sh_type | |
470 | parameter. | |
471 | * object.cc (Sized_relobj_file::check_eh_frame_flags): Check for | |
472 | unwind section type. | |
473 | (Sized_relobj_file::layout_section): Add sh_type parameter; pass it | |
474 | to Layout::layout. | |
475 | (Sized_relobj_file::do_layout): Make local copy of sh_type. | |
476 | Force .eh_frame sections to unwind section type. | |
477 | Pass sh_type to layout_section. | |
478 | (Sized_relobj_file<size, big_endian>::do_layout_deferred_sections): | |
479 | Pass sh_type to layout_section. | |
480 | * output.cc (Output_section::Output_section): Initialize reloc_section_. | |
481 | * output.h (Output_section::reloc_section): New method. | |
482 | (Output_section::set_reloc_section): New method. | |
483 | (Output_section::reloc_section_): New data member. | |
484 | * target.h (Target::unwind_section_type): New method. | |
485 | (Target::Target_info::unwind_section_type): New data member. | |
486 | ||
487 | * aarch64.cc (aarch64_info): Add unwind_section_type. | |
488 | * arm.cc (arm_info, arm_nacl_info): Likewise. | |
489 | * i386.cc (i386_info, i386_nacl_info, iamcu_info): Likewise. | |
490 | * mips.cc (mips_info, mips_nacl_info): Likewise. | |
491 | * powerpc.cc (powerpc_info): Likewise. | |
492 | * s390.cc (s390_info): Likewise. | |
493 | * sparc.cc (sparc_info): Likewise. | |
494 | * tilegx.cc (tilegx_info): Likewise. | |
495 | * x86_64.cc (x86_64_info, x86_64_nacl_info): Likewise. | |
496 | ||
497 | * testsuite/Makefile.am (pr23016_1, pr23016_2): New test cases. | |
498 | * testsuite/Makefile.in: Regenerate. | |
499 | * testsuite/testfile.cc: Add unwind_section_type. | |
500 | * testsuite/pr23016_1.sh: New test script. | |
501 | * testsuite/pr23016_1a.s: New source file. | |
502 | * testsuite/pr23016_1b.s: New source file. | |
503 | * testsuite/pr23016_2.sh: New test script. | |
504 | * testsuite/pr23016_2a.s: New source file. | |
505 | * testsuite/pr23016_2b.s: New source file. | |
506 | ||
24538276 CC |
507 | 2018-03-28 Cary Coutant <ccoutant@gmail.com> |
508 | ||
509 | PR gold/21423 | |
510 | PR gold/22500 | |
511 | * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS. | |
512 | Replace check for --enable-plugins with AC_PLUGINS. | |
513 | * options.cc (parse_plugin, parse_plugin_opt): Remove #ifdef. | |
514 | (General_options::finalize): Check if plugins enabled. | |
515 | * options.h (--plugin, --plugin-opt): Define even if plugins not | |
516 | enabled. | |
517 | * Makefile.in: Regenerate. | |
518 | * aclocal.m4: Regenerate. | |
519 | * configure: Regenerate. | |
520 | * testsuite/Makefile.in: Regenerate. | |
521 | ||
e82e6b2b CC |
522 | 2018-03-28 Cary Coutant <ccoutant@gmail.com> |
523 | ||
524 | PR gold/22969 | |
525 | * aarch64-reloc.def: Add TLSLE_LDST* relocations. | |
526 | * aarch64.cc (Target_aarch64::optimize_tls_reloc): Likewise. | |
527 | (Target_aarch64::Scan::local): Likewise. | |
528 | (Target_aarch64::Scan::global): Likewise. | |
529 | (Target_aarch64::Relocate::relocate): Likewise. | |
530 | (Target_aarch64::Relocate::relocate_tls): Likewise. | |
531 | ||
9c75b456 RM |
532 | 2018-03-27 Roland McGrath <mcgrathr@google.com> |
533 | ||
534 | * testsuite/split_x86_64.sh: Fix bad regexp. | |
535 | ||
0b7a4aa6 CC |
536 | 2018-03-26 Cary Coutant <ccoutant@gmail.com> |
537 | ||
0b7a4aa6 CC |
538 | PR gold/22868 |
539 | * plugin.cc (Sized_pluginobj::do_add_symbols): Use a real section | |
540 | index instead of SHN_ABS for defined symbols. | |
541 | * testsuite/Makefile.am (plugin_pr22868): New test case. | |
542 | * testsuite/Makefile.in: Regenerate | |
543 | * testsuite/plugin_pr22868.sh: New test script. | |
544 | * testsuite/plugin_pr22868_a.c: New source file. | |
545 | * testsuite/plugin_pr22868_b.c: New source file. | |
546 | ||
8da9a904 CC |
547 | 2018-03-23 Cary Coutant <ccoutant@gmail.com> |
548 | ||
549 | * plugin.cc (link_or_copy_file): Remove newlines from warning messages. | |
550 | Add pedantic check for return value from ::write. | |
551 | ||
3215deaa CC |
552 | 2018-03-23 Cary Coutant <ccoutant@gmail.com> |
553 | ||
554 | * debug.h (DEBUG_PLUGIN): New constant. | |
555 | (DEBUG_ALL): Add DEBUG_PLUGIN. | |
556 | (debug_string_to_enum): Likewise. | |
557 | * plugin.cc (make_sized_plugin_object): Add filename parameter. | |
558 | (Plugin_recorder): New class. | |
559 | (Plugin_manager::~Plugin_manager): Delete recorder_. | |
560 | (Plugin_manager::load_plugins): Create and initialize recorder_. | |
561 | (Plugin_manager::claim_file): Record claimed and unclaimed files. | |
562 | (Plugin_manager::make_plugin_object): Use object name as name for | |
563 | plugin object, if available. | |
564 | (Plugin_manager::add_input_file): Record replacement files. | |
565 | (Sized_pluginobj::do_add_symbols): Record plugin symbols. | |
566 | (Plugin_finish::run): Call Plugin_recorder::finish(). | |
567 | (make_sized_plugin_object): Add filename parameter and pass to | |
568 | Sized_pluginobj constructor. | |
569 | * plugin.h (Plugin::filename): New method. | |
570 | (Plugin::recorder): New method. | |
571 | (Plugin::recorder_): New data member. | |
572 | ||
779bdadb ST |
573 | 2018-03-07 Sriraman Tallam <tmsriram@google.com> |
574 | ||
575 | * layout.cc (Layout::default_section_order): Check for text section | |
576 | prefixes. | |
577 | (Layout::text_section_name_mapping): New static member. | |
578 | (Layout::text_section_name_mapping_count): New static member. | |
579 | (Layout::match_section_name): New static function. | |
580 | (Layout::output_section_name): Check for text section prefixes. | |
581 | * layout.h (Output_section_order::ORDER_TEXT_HOT): New enum value. | |
582 | (Output_section_order::ORDER_TEXT_STARTUP): New enum value. | |
583 | (Output_section_order::ORDER_TEXT_EXIT): New enum value. | |
584 | (Output_section_order::ORDER_TEXT_UNLIKELY): New enum value. | |
585 | (Layout::text_section_name_mapping): New static member. | |
586 | (Layout::text_section_name_mapping_count): New static member. | |
587 | (Layout::match_section_name): New static function. | |
588 | * options.h (keep_text_section_prefix): New -z option. | |
589 | * testsuite/Makefile.am (keep_text_section_prefix): New test. | |
590 | * testsuite/Makefile.in: Regenerate. | |
591 | * testsuite/keep_text_section_prefix.cc: New test source. | |
592 | * testsuite/keep_text_section_prefix.sh: New test script. | |
593 | ||
0b65c07b ST |
594 | 2018-02-22 Sriraman Tallam <tmsriram@google.com> |
595 | ||
596 | * plugin.cc (get_wrap_symbols): New plugin interface. | |
597 | (load): Add get_wrap_symbols to transfer vector. | |
598 | * plugin-api.h (ld_plugin_get_wrap_symbols): New plugin interface. | |
599 | * testsuite/plugin_test.c (onload): Call and check get_wrap_symbols | |
600 | interface. | |
601 | * testsuite/plugin_test_wrap_symbols.sh: New test script. | |
602 | * testsuite/plugin_test_wrap_symbols_1.cc: New file. | |
603 | * testsuite/plugin_test_wrap_symbols_2.cc: New file. | |
604 | * testsuite/Makefile.am (plugin_test_wrap_symbols): New test. | |
605 | * testsuite/Makefile.in: Regenerate. | |
606 | ||
3281b315 ST |
607 | 2018-02-07 Sriraman Tallam <tmsriram@google.com> |
608 | ||
609 | * expression.cc (Symbol_expression::set_expr_sym_in_real_elf): | |
610 | New method. | |
611 | (Unary_expression::set_expr_sym_in_real_elf): New method. | |
612 | (Binary_expression::set_expr_sym_in_real_elf): New method. | |
613 | (Trinary_expression::set_expr_sym_in_real_elf): New method. | |
614 | * plugin.cc (get_symbol_resolution_info): Fix symbol resolution if | |
615 | defined or used in defsyms. | |
616 | * plugin.h (Plugin_manager::is_defsym_def): New method. | |
617 | (Plugin_manager::Plugin_manager): Initialize defsym_defines_set_. | |
618 | (Plugin_manager::defsym_defines_set_): New member. | |
619 | (Plugin_manager::Defsym_defines_set): New typedef. | |
620 | * script.cc (Script_options::set_defsym_uses_in_real_elf): New method. | |
621 | (Script_options::find_defsym_defs): New method. | |
622 | * script.h (Expression::set_expr_sym_in_real_elf): New method. | |
623 | (Symbol_assignment::is_defsym): New method. | |
624 | (Symbol_assignment::value): New method. | |
625 | (Script_options::find_defsym_defs): New method. | |
626 | (Script_options::set_defsym_uses_in_real_elf): New method. | |
627 | * testsuite/Makefile.am (plugin_test_defsym): New test. | |
628 | * testsuite/Makefile.in: Regenerate. | |
629 | * testsuite/plugin_test.c: Check for new symbol resolution. | |
630 | * testsuite/plugin_test_defsym.sh: New script. | |
631 | * testsuite/plugin_test_defsym.c: New test source. | |
632 | ||
407aa07c AM |
633 | 2018-02-07 Alan Modra <amodra@gmail.com> |
634 | ||
635 | Revert 2018-01-17 Alan Modra <amodra@gmail.com> | |
636 | * options.h: Remove --speculate-indirect-jumps support. | |
637 | * powerpc.cc: Likewise. | |
638 | ||
c8334458 CC |
639 | 2018-02-02 Cary Coutant <ccoutant@gmail.com> |
640 | ||
641 | * PR gold/22776 | |
642 | * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog): Add | |
643 | support for DWARF-4 line number tables. | |
644 | * dwarf_reader.h (Sized_dwarf_line_info::max_ops_per_insn): New field. | |
645 | ||
691d2e9a AM |
646 | 2018-01-18 Alan Modra <amodra@gmail.com> |
647 | ||
648 | * powerpc.cc (param_plt_align): New function supplying default | |
649 | --plt-align values. Use it.. | |
650 | (Stub_table::plt_call_align): ..here, and.. | |
651 | (Output_data_glink::global_entry_align): ..here. | |
652 | (Stub_table::stub_align): Correct 32-bit minimum alignment. | |
653 | ||
1be5d8d3 AM |
654 | 2018-01-17 Alan Modra <amodra@gmail.com> |
655 | ||
656 | * options.h (speculate_indirect_jumps): New option. | |
657 | * powerpc.cc (beqctrm, beqctrlm, crseteq): New insn constants. | |
658 | (output_bctr): New function. | |
659 | (Stub_table::plt_call_size): Add space for speculation barrier. | |
660 | (Stub_table::branch_stub_size): Likewise. | |
661 | (Output_data_glink::pltresolve_size): Likewise. | |
662 | (Stub_table::do_write): Output speculation barriers. | |
663 | ||
9e390558 AM |
664 | 2018-01-17 Alan Modra <amodra@gmail.com> |
665 | ||
666 | * options.h (plt_align): Support for PowerPC32 too. | |
667 | * powerpc.cc (Stub_table::stub_align): Heed --plt-align for 32-bit. | |
668 | (Stub_table::plt_call_size, branch_stub_size): Tidy. | |
669 | (Stub_table::plt_call_align): Implement using stub_align. | |
670 | (Output_data_glink::global_entry_align): New function. | |
671 | (Output_data_glink::global_entry_off): New function. | |
672 | (Output_data_glink::global_entry_address): Use global_entry_off. | |
673 | (Output_data_glink::pltresolve_size): New function, replacing | |
674 | pltresolve_size_ constant. Update all uses. | |
675 | (Output_data_glink::add_global_entry): Align offset. | |
676 | (Output_data_glink::set_final_data_size): Use global_entry_align. | |
677 | (Stub_table::do_write): Don't pad __glink_PLTrelsolve with nops. | |
678 | Tidy stub output. Use global_entry_off. | |
679 | ||
930b5f8b CC |
680 | 2018-01-15 Cary Coutant <ccoutant@gmail.com> |
681 | ||
682 | PR gold/22694 | |
683 | * options.h (-fuse-ld): Add correct helparg. | |
684 | ||
616dcb87 NC |
685 | 2018-01-15 Nick Clifton <nickc@redhat.com> |
686 | ||
687 | * po/uk.po: Updated Ukranian translation. | |
688 | ||
3957a496 NC |
689 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
690 | ||
691 | * po/gold.pot: Regenerated. | |
692 | ||
faf766e3 NC |
693 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
694 | ||
695 | 2.30 branch created. | |
696 | ||
27f7b092 CC |
697 | 2018-01-12 Cary Coutant <ccoutant@gmail.com> |
698 | ||
699 | * NEWS: Add new features in 1.15. | |
700 | * version.cc (version_string): Bump to 1.15. | |
701 | ||
702 | 2018-01-12 Sterling Augustine <saugustine@google.com> | |
b4b07ef1 EC |
703 | |
704 | * cref.cc (Cref_inputs::Cref_table_compare::operator): Add | |
705 | conditionals and calls to is_forwarder. | |
706 | ||
219d1afa AM |
707 | 2018-01-03 Alan Modra <amodra@gmail.com> |
708 | ||
709 | Update year range in copyright notice of all files. | |
710 | ||
1e563868 | 711 | For older changes see ChangeLog-2017 |
3499769a | 712 | \f |
1e563868 | 713 | Copyright (C) 2018 Free Software Foundation, Inc. |
3499769a AM |
714 | |
715 | Copying and distribution of this file, with or without modification, | |
716 | are permitted in any medium without royalty provided the copyright | |
717 | notice and this notice are preserved. | |
718 | ||
719 | Local Variables: | |
720 | mode: change-log | |
721 | left-margin: 8 | |
722 | fill-column: 74 | |
723 | version-control: never | |
724 | End: |