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