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