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