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