1 2018-10-16 Cherry Zhang <cherryyz@google.com>
4 * gold.cc (queue_middle_tasks): Correct split-stack error message.
6 2018-08-29 Chenghua Xu <paul.hua.gm@gmail.com>
8 * mips.cc (Mips_mach, add_machine_extensions, elf_mips_mach):
9 Rename loongson3a to gs464.
10 (mips_isa_ext_mach, mips_isa_ext): Delete loongson3a.
11 (infer_abiflags): Use ases instead of isa_ext for infer ABI
13 (elf_mips_mach_name): Rename loongson3a to gs464.
15 2018-07-10 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17 * object.cc (Sized_relobj_file::map_to_kept_section): Initialize
20 2018-08-07 Cary Coutant <ccoutant@gmail.com>
23 * x86_64.cc (Target_x86_64::Target_x86_64): Initialize
25 (Target_x86_64::object_isa_1_used_): New data member.
26 (Target_x86_64::record_gnu_property): Save ISA_1_USED bits for object.
27 (Target_x86_64::merge_gnu_properties): Merge ISA_1_USED bits.
29 2018-08-06 Cary Coutant <ccoutant@gmail.com>
32 * options.h (General_options): Add --warn-drop-version option.
33 * symtab.cc (Symbol_table::set_dynsym_indexes): Check it.
35 2018-08-06 Cary Coutant <ccoutant@gmail.com>
37 * target.h (Sized_target::record_gnu_property): Change first two
38 parameters to unsigned int.
39 * x86_64.cc (Target_x86_64::record_gnu_property): Likewise.
41 2018-07-30 Nick Clifton <nickc@redhat.com>
43 * layout.cc (section_name_mapping): Add an entry for
44 .gnu.build.attributes.
46 2018-07-18 Nick Clifton <nickc@redhat.com>
48 * po/fr.po: Updated French translation.
50 2018-07-14 Cary Coutant <ccoutant@gmail.com>
53 * object.cc (Sized_relobj_file::do_layout): Mark section as deferred.
54 * testsuite/Makefile.am (plugin_test_1): Add --emit-relocs option to
56 * testsuite/Makefile.in: Regenerate.
58 2018-07-14 Cary Coutant <ccoutant@gmail.com>
61 * symtab.cc (Symbol_table::define_special_symbol): Add check for
62 version name on existing symbol.
63 * testsuite/Makefile.am (ver_test_pr23409): New test case.
64 * testsuite/Makefile.in: Regenerate.
65 * testsuite/ver_test_pr23409.sh: New test script.
66 * testsuite/ver_test_pr23409_1.script: New version script.
67 * testsuite/ver_test_pr23409_2.script: New version script.
69 2018-07-11 Franz Sirl <franz.sirl-kernel@lauterbach.com>
71 * main.cc (main): Print m.arena as long long.
73 2018-07-09 Cary Coutant <ccoutant@gmail.com>
75 * incremental.cc (Sized_incremental_binary::setup_readers): Use
76 emplace_back for C++ 11 or later.
78 2018-07-06 Alan Modra <amodra@gmail.com>
80 * powerpc.cc: Include attributes.h.
81 (Powerpc_relobj::attributes_section_data_): New variable, with
82 accessor and associated constructor and destructor support.
83 (Powerpc_dynobj::attributes_section_data_): Likewise.
84 (Powerpc_relobj::do_read_symbols): Stash SHT_GNU_ATTRIBUTES section
85 contents in attributes_section_data_.
86 (Powerpc_dynobj::do_read_symbols): Likewise.
87 (Target_powerpc): Add attributes_section_data_, last_fp_, last_ld_,
88 last_vec_, and last_struct_ vars.
89 (Target_powerpc::merge_object_attributes): New function.
90 (Target_powerpc::do_finalize_sections): Iterate over input objects
91 merging attributes. Create output attributes section.
93 2018-06-26 Nick Clifton <nickc@redhat.com>
95 * po/uk.po: Updated Ukranian translation.
97 2018-06-24 Nick Clifton <nickc@redhat.com>
99 * po/gold.pot: Regenerate.
101 2018-06-24 Nick Clifton <nickc@redhat.com>
105 2018-06-23 Cary Coutant <ccoutant@gmail.com>
107 * version.cc (version_string): Bump to 1.16.
108 * NEWS: Add new features in 1.16.
110 2018-06-23 Cary Coutant <ccoutant@gmail.com>
113 * x86_64.cc (Target_x86_64::record_gnu_property): Initialize val.
115 2018-06-23 Cary Coutant <ccoutant@gmail.com>
118 * x86_64.cc (Output_data_plt_x86_64_ibt): New class.
119 (Target_x86_64::do_make_data_plt): (All instantiations) Check for
120 IBT feature bit and create IBT PLTs.
122 2018-06-22 Cary Coutant <ccoutant@gmail.com>
125 * layout.cc (read_sized_value): Fix spelling of section name.
126 (Layout::layout_gnu_property): Call Sized_target::record_gnu_property
127 for target-specific properties;
128 don't store them with target-independent properties yet.
129 (Layout::merge_gnu_properties): New method.
130 (Layout::add_gnu_property): New method.
131 (Layout::create_gnu_properties_note): Call target to finalize
132 target-specific properties. Fix spelling of output section name.
133 * layout.h (Layout::merge_gnu_properties): New method.
134 (Layout::add_gnu_property): New method.
135 * object.cc (Sized_relobj_file::do_layout): Call
136 Layout::merge_gnu_properties.
137 * target.h (Target::merge_gnu_property): Remove.
138 (Target::finalize_gnu_properties): New method.
139 (Target::do_merge_gnu_property): Move to Sized_target and rename.
140 (Target::do_finalize_gnu_properties): New virtual method.
141 (Sized_target::record_gnu_property): Moved and renamed from
142 Target::do_merge_gnu_property.
143 (Sized_target::merge_gnu_properties): New virtual method.
144 * x86_64.cc (Target_x86_64::isa_1_used_, isa_1_needed_)
145 (feature_1_, object_feature_1_, seen_first_object_): New data members.
146 (Target_x86_64::do_merge_gnu_property): Rename to ...
147 (Target_x86_64::record_gnu_property): ... this. Save target-specific
148 properties in Target class object.
149 (Target_x86_64::merge_gnu_properties): New method.
150 (add_property): New static inline function.
151 (Target_x86_64::do_finalize_gnu_properties): New method.
152 * testsuite/Makefile.am (gnu_property_test): Remove C source file;
153 link directly without compiler driver.
154 * testsuite/Makefile.in: Regenerate.
155 * testsuite/gnu_property_a.S: Add _start.
157 2018-06-22 Cary Coutant <ccoutant@gmail.com>
159 * incremental.cc (Sized_incremental_binary::setup_readers): Use
160 emplace_back for GCC 5 and later.
161 * incremental.h (Incremental_binary::Input_reader): Provide copy
163 (Sized_incremental_binary::Sized_input_reader): Likewise.
165 2018-06-22 Cary Coutant <ccoutant@gmail.com>
168 * layout.cc (Layout::Layout): Initialize gnu_properties_.
169 (read_sized_value, write_sized_value): New functions.
170 (Layout::layout_gnu_property): New method.
171 (Layout::create_notes): Call create_gnu_properties_note.
172 (Layout::create_gnu_properties_note): New method.
173 * layout.h (Layout::layout_gnu_property): New method.
174 (Layout::create_gnu_properties_note): New method.
175 (Layout::Gnu_property, Layout::Gnu_properties): New types.
176 (Layout::gnu_properties_): New data member.
177 * object.cc (Sized_relobj_file::layout_gnu_property_section): New
179 (Sized_relobj_file::do_layout): Handle .note.gnu.property sections.
180 * object.h (Sized_relobj_file::layout_gnu_property_section): New
182 * target.h (Target::merge_gnu_property): New method.
183 (Target::do_merge_gnu_property): New virtual method.
184 * x86_64.cc (Target_x86_64::do_merge_gnu_property): New method.
185 * testsuite/Makefile.am (gnu_property_test): New test case.
186 * testsuite/Makefile.in: Regenerate.
187 * testsuite/gnu_property_a.S: New source file.
188 * testsuite/gnu_property_b.S: New source file.
189 * testsuite/gnu_property_c.S: New source file.
190 * testsuite/gnu_property_main.c: New source file.
191 * testsuite/gnu_property_test.sh: New test script.
193 2018-06-21 Cary Coutant <ccoutant@gmail.com>
195 * resolve.cc (Symbol_table::resolve): Rename tobinding to
196 orig_tobinding. Call set_is_needed() for objects that resolve
198 (Symbol_table::should_override): Allow a dynamic definition to
199 override an earlier one in a not-needed library.
200 * symtab.cc (Symbol_table::set_dynsym_indexes): Remove separate
201 processing for as-needed symbols. Add warning when discarding
203 * testsuite/Makefile.am (weak_as_needed): New test case.
204 * testsuite/Makefile.in: Regenerate.
205 * testsuite/weak_as_needed.sh: New test script.
206 * testsuite/weak_as_needed_a.c: New source file.
207 * testsuite/weak_as_needed_b.c: New source file.
208 * testsuite/weak_as_needed_b.script: New version script.
209 * testsuite/weak_as_needed_c.c: New source file.
210 * testsuite/weak_as_needed_c.script: New version script.
212 2018-06-20 Cary Coutant <ccoutant@gmail.com>
215 * dynobj.cc (Versions::Versions): Change init for needs_base_version_.
216 (Versions::record_version): Add verdefs for both shared objects and
218 (Versions::add_def): Likewise for base version.
219 (Versions::add_need): Don't add base version for executables.
220 (Versions::version_index): Look up version for both shared objects and
222 * testsuite/Makefile.am (ver_test_14): New test case.
223 * testsuite/Makefile.in: Regenerate.
224 * testsuite/ver_test_14.script: New version script.
225 * testsuite/ver_test_14.sh: New test script.
227 2018-06-19 Joshua Watt <jpewhacker@gmail.com>
228 Cary Coutant <ccoutant@gmail.com>
230 * configure.ac: Replace manual thread configuration with AX_PTHREAD.
231 Add --enable-threads=auto.
232 * Makefile.am (THREADFLAGS, THREADLIBS): New defines.
233 (AM_CFLAGS, AM_CXXFLAGS): Add $(THREADFLAGS).
234 (THREADSLIB): Remove; change all references to THREADLIBS.
235 * Makefile.in: Regenerate.
236 * aclocal.m4: Regenerate.
237 * config.in: Regenerate.
238 * configure: Regenerate.
239 * testsuite/Makefile.am (THREADSLIB): Replace with...
240 (THREADFLAGS, THREADLIBS): ... these.
241 (LDADD): Remove; add as individual defines for...
242 (object_unittest, binary_unittest, leb128_unittest)
243 (overflow_unittest): ... these tests.
244 (tls_test, tls_pic_test, tls_pie_test, tls_pie_pic_test)
245 (tls_shared_test, tls_shared_ie_test, tls_shared_gd_to_ie_test)
246 (tls_shared_gnu2_gd_to_ie_test, tls_shared_gnu2_test_LDFLAGS)
247 (tls_shared_nonpic_test_LDFLAGS): Add $(THREADFLAGS) and ($THREADLIBS).
248 * testsuite/Makefile.in: Regenerate.
250 2018-06-19 Cary Coutant <ccoutant@gmail.com>
252 * testsuite/Makefile.am (MOSTLYCLEANFILES): Add *.stderr.
253 * testsuite/Makefile.in: Regenerate.
255 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
257 * configure.ac: Remove AC_PREREQ, add missing quoting and usage
259 * Makefile.in: Re-generate.
260 * aclocal.m4: Re-generate.
261 * configure: Re-generate.
262 * testsuite/Makefile.in: Re-generate.
264 2018-05-10 Stephen Crane <sjc@immunant.com>
266 * aarch64.cc (Target_aarch64::do_finalize_sections): Use size of
267 .got section for the _GLOBAL_OFFSET_TABLE_ symbol computation.
269 2018-04-24 Cary Coutant <ccoutant@gmail.com>
273 * gc.h (gc_process_relocs): Flag STT_SECTION symbols in symvec.
274 * icf.cc (get_section_contents): For merge sections, ignore the
275 addend for relocations against non-section symbols.
277 2018-04-24 Cary Coutant <ccoutant@gmail.com>
280 * dynobj.cc (Versions::symbol_section_contents): Don't set
281 VERSYM_HIDDEN flag for undefined symbols.
282 * symtab.cc (Symbol_table::add_from_object): Don't override default
283 version definition with a different default version.
284 * symtab.h (Symbol::from_dyn): New method.
285 * testsuite/plugin_test.c (struct sym_info): Add ver field.
286 (claim_file_hook): Pass symbol version to plugin API.
287 (parse_readelf_line): Parse symbol version.
288 * testsuite/Makefile.am (ver_test_pr16504): New test case.
289 * testsuite/Makefile.in: Regenerate.
290 * testsuite/ver_test_pr16504.sh: New test script.
291 * testsuite/ver_test_pr16504_a.c: New source file.
292 * testsuite/ver_test_pr16504_a.script: New version script.
293 * testsuite/ver_test_pr16504_b.c: New source file.
294 * testsuite/ver_test_pr16504_b.script: New version script.
296 2018-04-19 Cary Coutant <ccoutant@gmail.com>
299 * gc.h (gc_process_relocs): Pass target to
300 scan.local_reloc_may_be_function_pointer.
302 2018-04-18 Nick Clifton <nickc@redhat.com>
304 * po/es.po: Updated Spanish translation.
306 2018-04-14 Cary Coutant <ccoutant@gmail.com>
309 * gc.h (gc_process_relocs): Pass target to
310 scan.global_reloc_may_be_function_pointer.
312 2018-04-09 Alan Modra <amodra@gmail.com>
314 * configure: Regenerate.
316 2018-04-09 Alan Modra <amodra@gmail.com>
318 * powerpc.cc (Target_powerpc::Track_tls::maybe_skip_tls_get_addr_call):
319 Handle inline plt sequence relocs.
320 (Stub_table::Plt_stub_key::Plt_stub_key): Likewise.
321 (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Likewise.
322 (Target_powerpc::Relocate::relocate): Likewise.
324 2018-04-09 Alan Modra <amodra@gmail.com>
326 * powerpc.cc (Target_powerpc::lplt_): New variable.
327 (Target_powerpc::lplt_section): Associated accessor.
328 (Target_powerpc::plt_off): Handle local non-ifunc symbols.
329 (Target_powerpc::make_lplt_section): New function.
330 (Target_powerpc::make_local_plt_entry): New function.
331 (Powerpc_relobj::do_relocate_sections): Write out lplt.
332 (Output_data_plt_powerpc::first_plt_entry_offset): Zero for lplt.
333 (Output_data_plt_powerpc::add_local_entry): New function.
334 (Output_data_plt_powerpc::do_write): Ignore lplt.
335 (Target_powerpc::make_iplt_section): Make lplt first.
336 (Target_powerpc::make_brlt_section): Make .branch_lt relro.
337 (Target_powerpc::Scan::local): Handle PLT16 relocs.
339 2018-04-09 Alan Modra <amodra@gmail.com>
341 * powerpc.cc (Target_powerpc::plt_off): New functions.
342 (is_plt16_reloc): New function.
343 (Stub_table::plt_off): Use Target_powerpc::plt_off.
344 (Stub_table::plt_call_size): Use plt_off.
345 (Stub_table::do_write): Likewise.
346 (Target_powerpc::Scan::get_reference_flags): Return RELATIVE_REF
347 for PLT16 relocations.
348 (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Return true
349 for PLT16 relocations.
350 (Target_powerpc::Scan::global): Make a PLT entry for PLT16 relocations.
351 (Target_powerpc::Relocate::relocate): Support PLT16 relocations.
352 (Powerpc_scan_relocatable_reloc::global_strategy): Return RELOC_SPECIAL
353 for ppc32 plt16 relocs.
355 2018-04-06 Cary Coutant <ccoutant@gmail.com>
357 * object.cc (Sized_relobj_file::include_section_group): Store
358 reference to Kept_section info for discarded comdat sections
359 regardless of size. Move size checking to map_to_kept_section.
360 (Sized_relobj_file::include_linkonce_section): Likewise.
361 (Sized_relobj_file::map_to_kept_section): Add section name parameter.
362 Insert size checking logic from above functions.
363 (Sized_relobj_file::find_kept_section_object): New method.
364 (Sized_relobj_file::get_symbol_name): New method.
365 * object.h (Sized_relobj_file::map_to_kept_section): Add section_name
366 parameter. Adjust all callers.
367 (Sized_relobj_file::find_kept_section_object): New method.
368 (Sized_relobj_file::get_symbol_name): New method.
369 (Sized_relobj_file::Kept_comdat_section): Replace object and shndx
370 fields with sh_size, kept_section, symndx, and is_comdat fields.
371 (Sized_relobj_file::set_kept_comdat_section): Replace kept_object
372 and kept_shndx parameters with is_comdat, symndx, sh_size, and
374 (Sized_relobj_file::get_kept_comdat_section): Likewise.
375 * target-reloc.h (enum Comdat_behavior): Change CB_WARNING to CB_ERROR.
376 Adjust all references.
377 (issue_undefined_symbol_error): New function template.
378 (relocate_section): Pass section name to map_to_kept_section.
379 Move discarded section code to new function above.
380 * aarch64.cc (Target_aarch64::scan_reloc_section_for_stubs): Move
381 declaration for gsym out one level. Call issue_discarded_error.
382 * arm.cc (Target_arm::scan_reloc_section_for_stubs): Likewise.
383 * powerpc.cc (Relocate_comdat_behavior): Change CB_WARNING to CB_ERROR.
385 2018-04-05 Cary Coutant <ccoutant@gmail.com>
387 * target-reloc.h (relocate_section): Add local symbol index or global
388 symbol name to warning about relocation that refers to discarded
391 2018-04-05 James Cowgill <james.cowgill@mips.com>
393 Revert previous patch and apply revised patch.
396 * mips.cc (Mips_got_info::record_got_page_entry): Don't insert
397 Got_page_entry for object's GOT.
398 (Mips_got_info::add_got_page_entries): Add all pages from from's GOT.
399 Rename to add_got_page_count.
400 (Got_page_entry): Remove num_pages.
402 2018-04-05 James Cowgill <james.cowgill@mips.com>
405 * mips.cc (Mips_got_info::record_got_page_entry): Fetch existing
406 page entries for the object's GOT.
408 2018-04-05 Alan Modra <amodra@gmail.com>
410 * powerpc.cc (Target_powerpc::make_brlt_section): Make .branch_lt relro.
412 2018-04-04 Nick Clifton <nickc@redhat.com>
414 * po/es.po: Updated Spanish translation.
416 2018-04-02 Cary Coutant <ccoutant@gmail.com>
419 * incremental.cc (can_incremental_update): Check for unwind section
421 * layout.h (Layout::layout): Add sh_type parameter.
422 * layout.cc (Layout::layout): Likewise.
423 (Layout::layout_reloc): Create new output reloc section if data
424 section does not already have one.
425 (Layout::layout_eh_frame): Check for unwind section type.
426 (Layout::make_eh_frame_section): Use unwind section type for .eh_frame
428 * object.h (Sized_relobj_file::Shdr_write): New typedef.
429 (Sized_relobj_file::layout_section): Add sh_type parameter.
430 (Sized_relobj_file::Deferred_layout::Deferred_layout): Add sh_type
432 * object.cc (Sized_relobj_file::check_eh_frame_flags): Check for
434 (Sized_relobj_file::layout_section): Add sh_type parameter; pass it
436 (Sized_relobj_file::do_layout): Make local copy of sh_type.
437 Force .eh_frame sections to unwind section type.
438 Pass sh_type to layout_section.
439 (Sized_relobj_file<size, big_endian>::do_layout_deferred_sections):
440 Pass sh_type to layout_section.
441 * output.cc (Output_section::Output_section): Initialize reloc_section_.
442 * output.h (Output_section::reloc_section): New method.
443 (Output_section::set_reloc_section): New method.
444 (Output_section::reloc_section_): New data member.
445 * target.h (Target::unwind_section_type): New method.
446 (Target::Target_info::unwind_section_type): New data member.
448 * aarch64.cc (aarch64_info): Add unwind_section_type.
449 * arm.cc (arm_info, arm_nacl_info): Likewise.
450 * i386.cc (i386_info, i386_nacl_info, iamcu_info): Likewise.
451 * mips.cc (mips_info, mips_nacl_info): Likewise.
452 * powerpc.cc (powerpc_info): Likewise.
453 * s390.cc (s390_info): Likewise.
454 * sparc.cc (sparc_info): Likewise.
455 * tilegx.cc (tilegx_info): Likewise.
456 * x86_64.cc (x86_64_info, x86_64_nacl_info): Likewise.
458 * testsuite/Makefile.am (pr23016_1, pr23016_2): New test cases.
459 * testsuite/Makefile.in: Regenerate.
460 * testsuite/testfile.cc: Add unwind_section_type.
461 * testsuite/pr23016_1.sh: New test script.
462 * testsuite/pr23016_1a.s: New source file.
463 * testsuite/pr23016_1b.s: New source file.
464 * testsuite/pr23016_2.sh: New test script.
465 * testsuite/pr23016_2a.s: New source file.
466 * testsuite/pr23016_2b.s: New source file.
468 2018-03-28 Cary Coutant <ccoutant@gmail.com>
472 * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS.
473 Replace check for --enable-plugins with AC_PLUGINS.
474 * options.cc (parse_plugin, parse_plugin_opt): Remove #ifdef.
475 (General_options::finalize): Check if plugins enabled.
476 * options.h (--plugin, --plugin-opt): Define even if plugins not
478 * Makefile.in: Regenerate.
479 * aclocal.m4: Regenerate.
480 * configure: Regenerate.
481 * testsuite/Makefile.in: Regenerate.
483 2018-03-28 Cary Coutant <ccoutant@gmail.com>
486 * aarch64-reloc.def: Add TLSLE_LDST* relocations.
487 * aarch64.cc (Target_aarch64::optimize_tls_reloc): Likewise.
488 (Target_aarch64::Scan::local): Likewise.
489 (Target_aarch64::Scan::global): Likewise.
490 (Target_aarch64::Relocate::relocate): Likewise.
491 (Target_aarch64::Relocate::relocate_tls): Likewise.
493 2018-03-27 Roland McGrath <mcgrathr@google.com>
495 * testsuite/split_x86_64.sh: Fix bad regexp.
497 2018-03-26 Cary Coutant <ccoutant@gmail.com>
500 * plugin.cc (Sized_pluginobj::do_add_symbols): Use a real section
501 index instead of SHN_ABS for defined symbols.
502 * testsuite/Makefile.am (plugin_pr22868): New test case.
503 * testsuite/Makefile.in: Regenerate
504 * testsuite/plugin_pr22868.sh: New test script.
505 * testsuite/plugin_pr22868_a.c: New source file.
506 * testsuite/plugin_pr22868_b.c: New source file.
508 2018-03-23 Cary Coutant <ccoutant@gmail.com>
510 * plugin.cc (link_or_copy_file): Remove newlines from warning messages.
511 Add pedantic check for return value from ::write.
513 2018-03-23 Cary Coutant <ccoutant@gmail.com>
515 * debug.h (DEBUG_PLUGIN): New constant.
516 (DEBUG_ALL): Add DEBUG_PLUGIN.
517 (debug_string_to_enum): Likewise.
518 * plugin.cc (make_sized_plugin_object): Add filename parameter.
519 (Plugin_recorder): New class.
520 (Plugin_manager::~Plugin_manager): Delete recorder_.
521 (Plugin_manager::load_plugins): Create and initialize recorder_.
522 (Plugin_manager::claim_file): Record claimed and unclaimed files.
523 (Plugin_manager::make_plugin_object): Use object name as name for
524 plugin object, if available.
525 (Plugin_manager::add_input_file): Record replacement files.
526 (Sized_pluginobj::do_add_symbols): Record plugin symbols.
527 (Plugin_finish::run): Call Plugin_recorder::finish().
528 (make_sized_plugin_object): Add filename parameter and pass to
529 Sized_pluginobj constructor.
530 * plugin.h (Plugin::filename): New method.
531 (Plugin::recorder): New method.
532 (Plugin::recorder_): New data member.
534 2018-03-07 Sriraman Tallam <tmsriram@google.com>
536 * layout.cc (Layout::default_section_order): Check for text section
538 (Layout::text_section_name_mapping): New static member.
539 (Layout::text_section_name_mapping_count): New static member.
540 (Layout::match_section_name): New static function.
541 (Layout::output_section_name): Check for text section prefixes.
542 * layout.h (Output_section_order::ORDER_TEXT_HOT): New enum value.
543 (Output_section_order::ORDER_TEXT_STARTUP): New enum value.
544 (Output_section_order::ORDER_TEXT_EXIT): New enum value.
545 (Output_section_order::ORDER_TEXT_UNLIKELY): New enum value.
546 (Layout::text_section_name_mapping): New static member.
547 (Layout::text_section_name_mapping_count): New static member.
548 (Layout::match_section_name): New static function.
549 * options.h (keep_text_section_prefix): New -z option.
550 * testsuite/Makefile.am (keep_text_section_prefix): New test.
551 * testsuite/Makefile.in: Regenerate.
552 * testsuite/keep_text_section_prefix.cc: New test source.
553 * testsuite/keep_text_section_prefix.sh: New test script.
555 2018-02-22 Sriraman Tallam <tmsriram@google.com>
557 * plugin.cc (get_wrap_symbols): New plugin interface.
558 (load): Add get_wrap_symbols to transfer vector.
559 * plugin-api.h (ld_plugin_get_wrap_symbols): New plugin interface.
560 * testsuite/plugin_test.c (onload): Call and check get_wrap_symbols
562 * testsuite/plugin_test_wrap_symbols.sh: New test script.
563 * testsuite/plugin_test_wrap_symbols_1.cc: New file.
564 * testsuite/plugin_test_wrap_symbols_2.cc: New file.
565 * testsuite/Makefile.am (plugin_test_wrap_symbols): New test.
566 * testsuite/Makefile.in: Regenerate.
568 2018-02-07 Sriraman Tallam <tmsriram@google.com>
570 * expression.cc (Symbol_expression::set_expr_sym_in_real_elf):
572 (Unary_expression::set_expr_sym_in_real_elf): New method.
573 (Binary_expression::set_expr_sym_in_real_elf): New method.
574 (Trinary_expression::set_expr_sym_in_real_elf): New method.
575 * plugin.cc (get_symbol_resolution_info): Fix symbol resolution if
576 defined or used in defsyms.
577 * plugin.h (Plugin_manager::is_defsym_def): New method.
578 (Plugin_manager::Plugin_manager): Initialize defsym_defines_set_.
579 (Plugin_manager::defsym_defines_set_): New member.
580 (Plugin_manager::Defsym_defines_set): New typedef.
581 * script.cc (Script_options::set_defsym_uses_in_real_elf): New method.
582 (Script_options::find_defsym_defs): New method.
583 * script.h (Expression::set_expr_sym_in_real_elf): New method.
584 (Symbol_assignment::is_defsym): New method.
585 (Symbol_assignment::value): New method.
586 (Script_options::find_defsym_defs): New method.
587 (Script_options::set_defsym_uses_in_real_elf): New method.
588 * testsuite/Makefile.am (plugin_test_defsym): New test.
589 * testsuite/Makefile.in: Regenerate.
590 * testsuite/plugin_test.c: Check for new symbol resolution.
591 * testsuite/plugin_test_defsym.sh: New script.
592 * testsuite/plugin_test_defsym.c: New test source.
594 2018-02-07 Alan Modra <amodra@gmail.com>
596 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
597 * options.h: Remove --speculate-indirect-jumps support.
598 * powerpc.cc: Likewise.
600 2018-02-02 Cary Coutant <ccoutant@gmail.com>
603 * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog): Add
604 support for DWARF-4 line number tables.
605 * dwarf_reader.h (Sized_dwarf_line_info::max_ops_per_insn): New field.
607 2018-01-18 Alan Modra <amodra@gmail.com>
609 * powerpc.cc (param_plt_align): New function supplying default
610 --plt-align values. Use it..
611 (Stub_table::plt_call_align): ..here, and..
612 (Output_data_glink::global_entry_align): ..here.
613 (Stub_table::stub_align): Correct 32-bit minimum alignment.
615 2018-01-17 Alan Modra <amodra@gmail.com>
617 * options.h (speculate_indirect_jumps): New option.
618 * powerpc.cc (beqctrm, beqctrlm, crseteq): New insn constants.
619 (output_bctr): New function.
620 (Stub_table::plt_call_size): Add space for speculation barrier.
621 (Stub_table::branch_stub_size): Likewise.
622 (Output_data_glink::pltresolve_size): Likewise.
623 (Stub_table::do_write): Output speculation barriers.
625 2018-01-17 Alan Modra <amodra@gmail.com>
627 * options.h (plt_align): Support for PowerPC32 too.
628 * powerpc.cc (Stub_table::stub_align): Heed --plt-align for 32-bit.
629 (Stub_table::plt_call_size, branch_stub_size): Tidy.
630 (Stub_table::plt_call_align): Implement using stub_align.
631 (Output_data_glink::global_entry_align): New function.
632 (Output_data_glink::global_entry_off): New function.
633 (Output_data_glink::global_entry_address): Use global_entry_off.
634 (Output_data_glink::pltresolve_size): New function, replacing
635 pltresolve_size_ constant. Update all uses.
636 (Output_data_glink::add_global_entry): Align offset.
637 (Output_data_glink::set_final_data_size): Use global_entry_align.
638 (Stub_table::do_write): Don't pad __glink_PLTrelsolve with nops.
639 Tidy stub output. Use global_entry_off.
641 2018-01-15 Cary Coutant <ccoutant@gmail.com>
644 * options.h (-fuse-ld): Add correct helparg.
646 2018-01-15 Nick Clifton <nickc@redhat.com>
648 * po/uk.po: Updated Ukranian translation.
650 2018-01-13 Nick Clifton <nickc@redhat.com>
652 * po/gold.pot: Regenerated.
654 2018-01-13 Nick Clifton <nickc@redhat.com>
658 2018-01-12 Cary Coutant <ccoutant@gmail.com>
660 * NEWS: Add new features in 1.15.
661 * version.cc (version_string): Bump to 1.15.
663 2018-01-12 Sterling Augustine <saugustine@google.com>
665 * cref.cc (Cref_inputs::Cref_table_compare::operator): Add
666 conditionals and calls to is_forwarder.
668 2018-01-03 Alan Modra <amodra@gmail.com>
670 Update year range in copyright notice of all files.
672 For older changes see ChangeLog-2017
674 Copyright (C) 2018 Free Software Foundation, Inc.
676 Copying and distribution of this file, with or without modification,
677 are permitted in any medium without royalty provided the copyright
678 notice and this notice are preserved.
684 version-control: never