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