1 2018-08-06 Cary Coutant <ccoutant@gmail.com>
4 * options.h (General_options): Add --warn-drop-version option.
5 * symtab.cc (Symbol_table::set_dynsym_indexes): Check it.
7 2018-08-06 Cary Coutant <ccoutant@gmail.com>
9 * target.h (Sized_target::record_gnu_property): Change first two
10 parameters to unsigned int.
11 * x86_64.cc (Target_x86_64::record_gnu_property): Likewise.
13 2018-07-30 Nick Clifton <nickc@redhat.com>
15 * layout.cc (section_name_mapping): Add an entry for
16 .gnu.build.attributes.
18 2018-07-18 Nick Clifton <nickc@redhat.com>
20 * po/fr.po: Updated French translation.
22 2018-07-14 Cary Coutant <ccoutant@gmail.com>
25 * object.cc (Sized_relobj_file::do_layout): Mark section as deferred.
26 * testsuite/Makefile.am (plugin_test_1): Add --emit-relocs option to
28 * testsuite/Makefile.in: Regenerate.
30 2018-07-14 Cary Coutant <ccoutant@gmail.com>
33 * symtab.cc (Symbol_table::define_special_symbol): Add check for
34 version name on existing symbol.
35 * testsuite/Makefile.am (ver_test_pr23409): New test case.
36 * testsuite/Makefile.in: Regenerate.
37 * testsuite/ver_test_pr23409.sh: New test script.
38 * testsuite/ver_test_pr23409_1.script: New version script.
39 * testsuite/ver_test_pr23409_2.script: New version script.
41 2018-07-11 Franz Sirl <franz.sirl-kernel@lauterbach.com>
43 * main.cc (main): Print m.arena as long long.
45 2018-07-09 Cary Coutant <ccoutant@gmail.com>
47 * incremental.cc (Sized_incremental_binary::setup_readers): Use
48 emplace_back for C++ 11 or later.
50 2018-07-06 Alan Modra <amodra@gmail.com>
52 * powerpc.cc: Include attributes.h.
53 (Powerpc_relobj::attributes_section_data_): New variable, with
54 accessor and associated constructor and destructor support.
55 (Powerpc_dynobj::attributes_section_data_): Likewise.
56 (Powerpc_relobj::do_read_symbols): Stash SHT_GNU_ATTRIBUTES section
57 contents in attributes_section_data_.
58 (Powerpc_dynobj::do_read_symbols): Likewise.
59 (Target_powerpc): Add attributes_section_data_, last_fp_, last_ld_,
60 last_vec_, and last_struct_ vars.
61 (Target_powerpc::merge_object_attributes): New function.
62 (Target_powerpc::do_finalize_sections): Iterate over input objects
63 merging attributes. Create output attributes section.
65 2018-06-26 Nick Clifton <nickc@redhat.com>
67 * po/uk.po: Updated Ukranian translation.
69 2018-06-24 Nick Clifton <nickc@redhat.com>
71 * po/gold.pot: Regenerate.
73 2018-06-24 Nick Clifton <nickc@redhat.com>
77 2018-06-23 Cary Coutant <ccoutant@gmail.com>
79 * version.cc (version_string): Bump to 1.16.
80 * NEWS: Add new features in 1.16.
82 2018-06-23 Cary Coutant <ccoutant@gmail.com>
85 * x86_64.cc (Target_x86_64::record_gnu_property): Initialize val.
87 2018-06-23 Cary Coutant <ccoutant@gmail.com>
90 * x86_64.cc (Output_data_plt_x86_64_ibt): New class.
91 (Target_x86_64::do_make_data_plt): (All instantiations) Check for
92 IBT feature bit and create IBT PLTs.
94 2018-06-22 Cary Coutant <ccoutant@gmail.com>
97 * layout.cc (read_sized_value): Fix spelling of section name.
98 (Layout::layout_gnu_property): Call Sized_target::record_gnu_property
99 for target-specific properties;
100 don't store them with target-independent properties yet.
101 (Layout::merge_gnu_properties): New method.
102 (Layout::add_gnu_property): New method.
103 (Layout::create_gnu_properties_note): Call target to finalize
104 target-specific properties. Fix spelling of output section name.
105 * layout.h (Layout::merge_gnu_properties): New method.
106 (Layout::add_gnu_property): New method.
107 * object.cc (Sized_relobj_file::do_layout): Call
108 Layout::merge_gnu_properties.
109 * target.h (Target::merge_gnu_property): Remove.
110 (Target::finalize_gnu_properties): New method.
111 (Target::do_merge_gnu_property): Move to Sized_target and rename.
112 (Target::do_finalize_gnu_properties): New virtual method.
113 (Sized_target::record_gnu_property): Moved and renamed from
114 Target::do_merge_gnu_property.
115 (Sized_target::merge_gnu_properties): New virtual method.
116 * x86_64.cc (Target_x86_64::isa_1_used_, isa_1_needed_)
117 (feature_1_, object_feature_1_, seen_first_object_): New data members.
118 (Target_x86_64::do_merge_gnu_property): Rename to ...
119 (Target_x86_64::record_gnu_property): ... this. Save target-specific
120 properties in Target class object.
121 (Target_x86_64::merge_gnu_properties): New method.
122 (add_property): New static inline function.
123 (Target_x86_64::do_finalize_gnu_properties): New method.
124 * testsuite/Makefile.am (gnu_property_test): Remove C source file;
125 link directly without compiler driver.
126 * testsuite/Makefile.in: Regenerate.
127 * testsuite/gnu_property_a.S: Add _start.
129 2018-06-22 Cary Coutant <ccoutant@gmail.com>
131 * incremental.cc (Sized_incremental_binary::setup_readers): Use
132 emplace_back for GCC 5 and later.
133 * incremental.h (Incremental_binary::Input_reader): Provide copy
135 (Sized_incremental_binary::Sized_input_reader): Likewise.
137 2018-06-22 Cary Coutant <ccoutant@gmail.com>
140 * layout.cc (Layout::Layout): Initialize gnu_properties_.
141 (read_sized_value, write_sized_value): New functions.
142 (Layout::layout_gnu_property): New method.
143 (Layout::create_notes): Call create_gnu_properties_note.
144 (Layout::create_gnu_properties_note): New method.
145 * layout.h (Layout::layout_gnu_property): New method.
146 (Layout::create_gnu_properties_note): New method.
147 (Layout::Gnu_property, Layout::Gnu_properties): New types.
148 (Layout::gnu_properties_): New data member.
149 * object.cc (Sized_relobj_file::layout_gnu_property_section): New
151 (Sized_relobj_file::do_layout): Handle .note.gnu.property sections.
152 * object.h (Sized_relobj_file::layout_gnu_property_section): New
154 * target.h (Target::merge_gnu_property): New method.
155 (Target::do_merge_gnu_property): New virtual method.
156 * x86_64.cc (Target_x86_64::do_merge_gnu_property): New method.
157 * testsuite/Makefile.am (gnu_property_test): New test case.
158 * testsuite/Makefile.in: Regenerate.
159 * testsuite/gnu_property_a.S: New source file.
160 * testsuite/gnu_property_b.S: New source file.
161 * testsuite/gnu_property_c.S: New source file.
162 * testsuite/gnu_property_main.c: New source file.
163 * testsuite/gnu_property_test.sh: New test script.
165 2018-06-21 Cary Coutant <ccoutant@gmail.com>
167 * resolve.cc (Symbol_table::resolve): Rename tobinding to
168 orig_tobinding. Call set_is_needed() for objects that resolve
170 (Symbol_table::should_override): Allow a dynamic definition to
171 override an earlier one in a not-needed library.
172 * symtab.cc (Symbol_table::set_dynsym_indexes): Remove separate
173 processing for as-needed symbols. Add warning when discarding
175 * testsuite/Makefile.am (weak_as_needed): New test case.
176 * testsuite/Makefile.in: Regenerate.
177 * testsuite/weak_as_needed.sh: New test script.
178 * testsuite/weak_as_needed_a.c: New source file.
179 * testsuite/weak_as_needed_b.c: New source file.
180 * testsuite/weak_as_needed_b.script: New version script.
181 * testsuite/weak_as_needed_c.c: New source file.
182 * testsuite/weak_as_needed_c.script: New version script.
184 2018-06-20 Cary Coutant <ccoutant@gmail.com>
187 * dynobj.cc (Versions::Versions): Change init for needs_base_version_.
188 (Versions::record_version): Add verdefs for both shared objects and
190 (Versions::add_def): Likewise for base version.
191 (Versions::add_need): Don't add base version for executables.
192 (Versions::version_index): Look up version for both shared objects and
194 * testsuite/Makefile.am (ver_test_14): New test case.
195 * testsuite/Makefile.in: Regenerate.
196 * testsuite/ver_test_14.script: New version script.
197 * testsuite/ver_test_14.sh: New test script.
199 2018-06-19 Joshua Watt <jpewhacker@gmail.com>
200 Cary Coutant <ccoutant@gmail.com>
202 * configure.ac: Replace manual thread configuration with AX_PTHREAD.
203 Add --enable-threads=auto.
204 * Makefile.am (THREADFLAGS, THREADLIBS): New defines.
205 (AM_CFLAGS, AM_CXXFLAGS): Add $(THREADFLAGS).
206 (THREADSLIB): Remove; change all references to THREADLIBS.
207 * Makefile.in: Regenerate.
208 * aclocal.m4: Regenerate.
209 * config.in: Regenerate.
210 * configure: Regenerate.
211 * testsuite/Makefile.am (THREADSLIB): Replace with...
212 (THREADFLAGS, THREADLIBS): ... these.
213 (LDADD): Remove; add as individual defines for...
214 (object_unittest, binary_unittest, leb128_unittest)
215 (overflow_unittest): ... these tests.
216 (tls_test, tls_pic_test, tls_pie_test, tls_pie_pic_test)
217 (tls_shared_test, tls_shared_ie_test, tls_shared_gd_to_ie_test)
218 (tls_shared_gnu2_gd_to_ie_test, tls_shared_gnu2_test_LDFLAGS)
219 (tls_shared_nonpic_test_LDFLAGS): Add $(THREADFLAGS) and ($THREADLIBS).
220 * testsuite/Makefile.in: Regenerate.
222 2018-06-19 Cary Coutant <ccoutant@gmail.com>
224 * testsuite/Makefile.am (MOSTLYCLEANFILES): Add *.stderr.
225 * testsuite/Makefile.in: Regenerate.
227 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
229 * configure.ac: Remove AC_PREREQ, add missing quoting and usage
231 * Makefile.in: Re-generate.
232 * aclocal.m4: Re-generate.
233 * configure: Re-generate.
234 * testsuite/Makefile.in: Re-generate.
236 2018-05-10 Stephen Crane <sjc@immunant.com>
238 * aarch64.cc (Target_aarch64::do_finalize_sections): Use size of
239 .got section for the _GLOBAL_OFFSET_TABLE_ symbol computation.
241 2018-04-24 Cary Coutant <ccoutant@gmail.com>
245 * gc.h (gc_process_relocs): Flag STT_SECTION symbols in symvec.
246 * icf.cc (get_section_contents): For merge sections, ignore the
247 addend for relocations against non-section symbols.
249 2018-04-24 Cary Coutant <ccoutant@gmail.com>
252 * dynobj.cc (Versions::symbol_section_contents): Don't set
253 VERSYM_HIDDEN flag for undefined symbols.
254 * symtab.cc (Symbol_table::add_from_object): Don't override default
255 version definition with a different default version.
256 * symtab.h (Symbol::from_dyn): New method.
257 * testsuite/plugin_test.c (struct sym_info): Add ver field.
258 (claim_file_hook): Pass symbol version to plugin API.
259 (parse_readelf_line): Parse symbol version.
260 * testsuite/Makefile.am (ver_test_pr16504): New test case.
261 * testsuite/Makefile.in: Regenerate.
262 * testsuite/ver_test_pr16504.sh: New test script.
263 * testsuite/ver_test_pr16504_a.c: New source file.
264 * testsuite/ver_test_pr16504_a.script: New version script.
265 * testsuite/ver_test_pr16504_b.c: New source file.
266 * testsuite/ver_test_pr16504_b.script: New version script.
268 2018-04-19 Cary Coutant <ccoutant@gmail.com>
271 * gc.h (gc_process_relocs): Pass target to
272 scan.local_reloc_may_be_function_pointer.
274 2018-04-18 Nick Clifton <nickc@redhat.com>
276 * po/es.po: Updated Spanish translation.
278 2018-04-14 Cary Coutant <ccoutant@gmail.com>
281 * gc.h (gc_process_relocs): Pass target to
282 scan.global_reloc_may_be_function_pointer.
284 2018-04-09 Alan Modra <amodra@gmail.com>
286 * configure: Regenerate.
288 2018-04-09 Alan Modra <amodra@gmail.com>
290 * powerpc.cc (Target_powerpc::Track_tls::maybe_skip_tls_get_addr_call):
291 Handle inline plt sequence relocs.
292 (Stub_table::Plt_stub_key::Plt_stub_key): Likewise.
293 (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Likewise.
294 (Target_powerpc::Relocate::relocate): Likewise.
296 2018-04-09 Alan Modra <amodra@gmail.com>
298 * powerpc.cc (Target_powerpc::lplt_): New variable.
299 (Target_powerpc::lplt_section): Associated accessor.
300 (Target_powerpc::plt_off): Handle local non-ifunc symbols.
301 (Target_powerpc::make_lplt_section): New function.
302 (Target_powerpc::make_local_plt_entry): New function.
303 (Powerpc_relobj::do_relocate_sections): Write out lplt.
304 (Output_data_plt_powerpc::first_plt_entry_offset): Zero for lplt.
305 (Output_data_plt_powerpc::add_local_entry): New function.
306 (Output_data_plt_powerpc::do_write): Ignore lplt.
307 (Target_powerpc::make_iplt_section): Make lplt first.
308 (Target_powerpc::make_brlt_section): Make .branch_lt relro.
309 (Target_powerpc::Scan::local): Handle PLT16 relocs.
311 2018-04-09 Alan Modra <amodra@gmail.com>
313 * powerpc.cc (Target_powerpc::plt_off): New functions.
314 (is_plt16_reloc): New function.
315 (Stub_table::plt_off): Use Target_powerpc::plt_off.
316 (Stub_table::plt_call_size): Use plt_off.
317 (Stub_table::do_write): Likewise.
318 (Target_powerpc::Scan::get_reference_flags): Return RELATIVE_REF
319 for PLT16 relocations.
320 (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Return true
321 for PLT16 relocations.
322 (Target_powerpc::Scan::global): Make a PLT entry for PLT16 relocations.
323 (Target_powerpc::Relocate::relocate): Support PLT16 relocations.
324 (Powerpc_scan_relocatable_reloc::global_strategy): Return RELOC_SPECIAL
325 for ppc32 plt16 relocs.
327 2018-04-06 Cary Coutant <ccoutant@gmail.com>
329 * object.cc (Sized_relobj_file::include_section_group): Store
330 reference to Kept_section info for discarded comdat sections
331 regardless of size. Move size checking to map_to_kept_section.
332 (Sized_relobj_file::include_linkonce_section): Likewise.
333 (Sized_relobj_file::map_to_kept_section): Add section name parameter.
334 Insert size checking logic from above functions.
335 (Sized_relobj_file::find_kept_section_object): New method.
336 (Sized_relobj_file::get_symbol_name): New method.
337 * object.h (Sized_relobj_file::map_to_kept_section): Add section_name
338 parameter. Adjust all callers.
339 (Sized_relobj_file::find_kept_section_object): New method.
340 (Sized_relobj_file::get_symbol_name): New method.
341 (Sized_relobj_file::Kept_comdat_section): Replace object and shndx
342 fields with sh_size, kept_section, symndx, and is_comdat fields.
343 (Sized_relobj_file::set_kept_comdat_section): Replace kept_object
344 and kept_shndx parameters with is_comdat, symndx, sh_size, and
346 (Sized_relobj_file::get_kept_comdat_section): Likewise.
347 * target-reloc.h (enum Comdat_behavior): Change CB_WARNING to CB_ERROR.
348 Adjust all references.
349 (issue_undefined_symbol_error): New function template.
350 (relocate_section): Pass section name to map_to_kept_section.
351 Move discarded section code to new function above.
352 * aarch64.cc (Target_aarch64::scan_reloc_section_for_stubs): Move
353 declaration for gsym out one level. Call issue_discarded_error.
354 * arm.cc (Target_arm::scan_reloc_section_for_stubs): Likewise.
355 * powerpc.cc (Relocate_comdat_behavior): Change CB_WARNING to CB_ERROR.
357 2018-04-05 Cary Coutant <ccoutant@gmail.com>
359 * target-reloc.h (relocate_section): Add local symbol index or global
360 symbol name to warning about relocation that refers to discarded
363 2018-04-05 James Cowgill <james.cowgill@mips.com>
365 Revert previous patch and apply revised patch.
368 * mips.cc (Mips_got_info::record_got_page_entry): Don't insert
369 Got_page_entry for object's GOT.
370 (Mips_got_info::add_got_page_entries): Add all pages from from's GOT.
371 Rename to add_got_page_count.
372 (Got_page_entry): Remove num_pages.
374 2018-04-05 James Cowgill <james.cowgill@mips.com>
377 * mips.cc (Mips_got_info::record_got_page_entry): Fetch existing
378 page entries for the object's GOT.
380 2018-04-05 Alan Modra <amodra@gmail.com>
382 * powerpc.cc (Target_powerpc::make_brlt_section): Make .branch_lt relro.
384 2018-04-04 Nick Clifton <nickc@redhat.com>
386 * po/es.po: Updated Spanish translation.
388 2018-04-02 Cary Coutant <ccoutant@gmail.com>
391 * incremental.cc (can_incremental_update): Check for unwind section
393 * layout.h (Layout::layout): Add sh_type parameter.
394 * layout.cc (Layout::layout): Likewise.
395 (Layout::layout_reloc): Create new output reloc section if data
396 section does not already have one.
397 (Layout::layout_eh_frame): Check for unwind section type.
398 (Layout::make_eh_frame_section): Use unwind section type for .eh_frame
400 * object.h (Sized_relobj_file::Shdr_write): New typedef.
401 (Sized_relobj_file::layout_section): Add sh_type parameter.
402 (Sized_relobj_file::Deferred_layout::Deferred_layout): Add sh_type
404 * object.cc (Sized_relobj_file::check_eh_frame_flags): Check for
406 (Sized_relobj_file::layout_section): Add sh_type parameter; pass it
408 (Sized_relobj_file::do_layout): Make local copy of sh_type.
409 Force .eh_frame sections to unwind section type.
410 Pass sh_type to layout_section.
411 (Sized_relobj_file<size, big_endian>::do_layout_deferred_sections):
412 Pass sh_type to layout_section.
413 * output.cc (Output_section::Output_section): Initialize reloc_section_.
414 * output.h (Output_section::reloc_section): New method.
415 (Output_section::set_reloc_section): New method.
416 (Output_section::reloc_section_): New data member.
417 * target.h (Target::unwind_section_type): New method.
418 (Target::Target_info::unwind_section_type): New data member.
420 * aarch64.cc (aarch64_info): Add unwind_section_type.
421 * arm.cc (arm_info, arm_nacl_info): Likewise.
422 * i386.cc (i386_info, i386_nacl_info, iamcu_info): Likewise.
423 * mips.cc (mips_info, mips_nacl_info): Likewise.
424 * powerpc.cc (powerpc_info): Likewise.
425 * s390.cc (s390_info): Likewise.
426 * sparc.cc (sparc_info): Likewise.
427 * tilegx.cc (tilegx_info): Likewise.
428 * x86_64.cc (x86_64_info, x86_64_nacl_info): Likewise.
430 * testsuite/Makefile.am (pr23016_1, pr23016_2): New test cases.
431 * testsuite/Makefile.in: Regenerate.
432 * testsuite/testfile.cc: Add unwind_section_type.
433 * testsuite/pr23016_1.sh: New test script.
434 * testsuite/pr23016_1a.s: New source file.
435 * testsuite/pr23016_1b.s: New source file.
436 * testsuite/pr23016_2.sh: New test script.
437 * testsuite/pr23016_2a.s: New source file.
438 * testsuite/pr23016_2b.s: New source file.
440 2018-03-28 Cary Coutant <ccoutant@gmail.com>
444 * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS.
445 Replace check for --enable-plugins with AC_PLUGINS.
446 * options.cc (parse_plugin, parse_plugin_opt): Remove #ifdef.
447 (General_options::finalize): Check if plugins enabled.
448 * options.h (--plugin, --plugin-opt): Define even if plugins not
450 * Makefile.in: Regenerate.
451 * aclocal.m4: Regenerate.
452 * configure: Regenerate.
453 * testsuite/Makefile.in: Regenerate.
455 2018-03-28 Cary Coutant <ccoutant@gmail.com>
458 * aarch64-reloc.def: Add TLSLE_LDST* relocations.
459 * aarch64.cc (Target_aarch64::optimize_tls_reloc): Likewise.
460 (Target_aarch64::Scan::local): Likewise.
461 (Target_aarch64::Scan::global): Likewise.
462 (Target_aarch64::Relocate::relocate): Likewise.
463 (Target_aarch64::Relocate::relocate_tls): Likewise.
465 2018-03-27 Roland McGrath <mcgrathr@google.com>
467 * testsuite/split_x86_64.sh: Fix bad regexp.
469 2018-03-26 Cary Coutant <ccoutant@gmail.com>
472 * plugin.cc (Sized_pluginobj::do_add_symbols): Use a real section
473 index instead of SHN_ABS for defined symbols.
474 * testsuite/Makefile.am (plugin_pr22868): New test case.
475 * testsuite/Makefile.in: Regenerate
476 * testsuite/plugin_pr22868.sh: New test script.
477 * testsuite/plugin_pr22868_a.c: New source file.
478 * testsuite/plugin_pr22868_b.c: New source file.
480 2018-03-23 Cary Coutant <ccoutant@gmail.com>
482 * plugin.cc (link_or_copy_file): Remove newlines from warning messages.
483 Add pedantic check for return value from ::write.
485 2018-03-23 Cary Coutant <ccoutant@gmail.com>
487 * debug.h (DEBUG_PLUGIN): New constant.
488 (DEBUG_ALL): Add DEBUG_PLUGIN.
489 (debug_string_to_enum): Likewise.
490 * plugin.cc (make_sized_plugin_object): Add filename parameter.
491 (Plugin_recorder): New class.
492 (Plugin_manager::~Plugin_manager): Delete recorder_.
493 (Plugin_manager::load_plugins): Create and initialize recorder_.
494 (Plugin_manager::claim_file): Record claimed and unclaimed files.
495 (Plugin_manager::make_plugin_object): Use object name as name for
496 plugin object, if available.
497 (Plugin_manager::add_input_file): Record replacement files.
498 (Sized_pluginobj::do_add_symbols): Record plugin symbols.
499 (Plugin_finish::run): Call Plugin_recorder::finish().
500 (make_sized_plugin_object): Add filename parameter and pass to
501 Sized_pluginobj constructor.
502 * plugin.h (Plugin::filename): New method.
503 (Plugin::recorder): New method.
504 (Plugin::recorder_): New data member.
506 2018-03-07 Sriraman Tallam <tmsriram@google.com>
508 * layout.cc (Layout::default_section_order): Check for text section
510 (Layout::text_section_name_mapping): New static member.
511 (Layout::text_section_name_mapping_count): New static member.
512 (Layout::match_section_name): New static function.
513 (Layout::output_section_name): Check for text section prefixes.
514 * layout.h (Output_section_order::ORDER_TEXT_HOT): New enum value.
515 (Output_section_order::ORDER_TEXT_STARTUP): New enum value.
516 (Output_section_order::ORDER_TEXT_EXIT): New enum value.
517 (Output_section_order::ORDER_TEXT_UNLIKELY): New enum value.
518 (Layout::text_section_name_mapping): New static member.
519 (Layout::text_section_name_mapping_count): New static member.
520 (Layout::match_section_name): New static function.
521 * options.h (keep_text_section_prefix): New -z option.
522 * testsuite/Makefile.am (keep_text_section_prefix): New test.
523 * testsuite/Makefile.in: Regenerate.
524 * testsuite/keep_text_section_prefix.cc: New test source.
525 * testsuite/keep_text_section_prefix.sh: New test script.
527 2018-02-22 Sriraman Tallam <tmsriram@google.com>
529 * plugin.cc (get_wrap_symbols): New plugin interface.
530 (load): Add get_wrap_symbols to transfer vector.
531 * plugin-api.h (ld_plugin_get_wrap_symbols): New plugin interface.
532 * testsuite/plugin_test.c (onload): Call and check get_wrap_symbols
534 * testsuite/plugin_test_wrap_symbols.sh: New test script.
535 * testsuite/plugin_test_wrap_symbols_1.cc: New file.
536 * testsuite/plugin_test_wrap_symbols_2.cc: New file.
537 * testsuite/Makefile.am (plugin_test_wrap_symbols): New test.
538 * testsuite/Makefile.in: Regenerate.
540 2018-02-07 Sriraman Tallam <tmsriram@google.com>
542 * expression.cc (Symbol_expression::set_expr_sym_in_real_elf):
544 (Unary_expression::set_expr_sym_in_real_elf): New method.
545 (Binary_expression::set_expr_sym_in_real_elf): New method.
546 (Trinary_expression::set_expr_sym_in_real_elf): New method.
547 * plugin.cc (get_symbol_resolution_info): Fix symbol resolution if
548 defined or used in defsyms.
549 * plugin.h (Plugin_manager::is_defsym_def): New method.
550 (Plugin_manager::Plugin_manager): Initialize defsym_defines_set_.
551 (Plugin_manager::defsym_defines_set_): New member.
552 (Plugin_manager::Defsym_defines_set): New typedef.
553 * script.cc (Script_options::set_defsym_uses_in_real_elf): New method.
554 (Script_options::find_defsym_defs): New method.
555 * script.h (Expression::set_expr_sym_in_real_elf): New method.
556 (Symbol_assignment::is_defsym): New method.
557 (Symbol_assignment::value): New method.
558 (Script_options::find_defsym_defs): New method.
559 (Script_options::set_defsym_uses_in_real_elf): New method.
560 * testsuite/Makefile.am (plugin_test_defsym): New test.
561 * testsuite/Makefile.in: Regenerate.
562 * testsuite/plugin_test.c: Check for new symbol resolution.
563 * testsuite/plugin_test_defsym.sh: New script.
564 * testsuite/plugin_test_defsym.c: New test source.
566 2018-02-07 Alan Modra <amodra@gmail.com>
568 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
569 * options.h: Remove --speculate-indirect-jumps support.
570 * powerpc.cc: Likewise.
572 2018-02-02 Cary Coutant <ccoutant@gmail.com>
575 * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog): Add
576 support for DWARF-4 line number tables.
577 * dwarf_reader.h (Sized_dwarf_line_info::max_ops_per_insn): New field.
579 2018-01-18 Alan Modra <amodra@gmail.com>
581 * powerpc.cc (param_plt_align): New function supplying default
582 --plt-align values. Use it..
583 (Stub_table::plt_call_align): ..here, and..
584 (Output_data_glink::global_entry_align): ..here.
585 (Stub_table::stub_align): Correct 32-bit minimum alignment.
587 2018-01-17 Alan Modra <amodra@gmail.com>
589 * options.h (speculate_indirect_jumps): New option.
590 * powerpc.cc (beqctrm, beqctrlm, crseteq): New insn constants.
591 (output_bctr): New function.
592 (Stub_table::plt_call_size): Add space for speculation barrier.
593 (Stub_table::branch_stub_size): Likewise.
594 (Output_data_glink::pltresolve_size): Likewise.
595 (Stub_table::do_write): Output speculation barriers.
597 2018-01-17 Alan Modra <amodra@gmail.com>
599 * options.h (plt_align): Support for PowerPC32 too.
600 * powerpc.cc (Stub_table::stub_align): Heed --plt-align for 32-bit.
601 (Stub_table::plt_call_size, branch_stub_size): Tidy.
602 (Stub_table::plt_call_align): Implement using stub_align.
603 (Output_data_glink::global_entry_align): New function.
604 (Output_data_glink::global_entry_off): New function.
605 (Output_data_glink::global_entry_address): Use global_entry_off.
606 (Output_data_glink::pltresolve_size): New function, replacing
607 pltresolve_size_ constant. Update all uses.
608 (Output_data_glink::add_global_entry): Align offset.
609 (Output_data_glink::set_final_data_size): Use global_entry_align.
610 (Stub_table::do_write): Don't pad __glink_PLTrelsolve with nops.
611 Tidy stub output. Use global_entry_off.
613 2018-01-15 Cary Coutant <ccoutant@gmail.com>
616 * options.h (-fuse-ld): Add correct helparg.
618 2018-01-15 Nick Clifton <nickc@redhat.com>
620 * po/uk.po: Updated Ukranian translation.
622 2018-01-13 Nick Clifton <nickc@redhat.com>
624 * po/gold.pot: Regenerated.
626 2018-01-13 Nick Clifton <nickc@redhat.com>
630 2018-01-12 Cary Coutant <ccoutant@gmail.com>
632 * NEWS: Add new features in 1.15.
633 * version.cc (version_string): Bump to 1.15.
635 2018-01-12 Sterling Augustine <saugustine@google.com>
637 * cref.cc (Cref_inputs::Cref_table_compare::operator): Add
638 conditionals and calls to is_forwarder.
640 2018-01-03 Alan Modra <amodra@gmail.com>
642 Update year range in copyright notice of all files.
644 For older changes see ChangeLog-2017
646 Copyright (C) 2018 Free Software Foundation, Inc.
648 Copying and distribution of this file, with or without modification,
649 are permitted in any medium without royalty provided the copyright
650 notice and this notice are preserved.
656 version-control: never