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