PR23769, mixing split-stack and non-split-stack error message
[binutils-gdb.git] / gold / ChangeLog
1 2018-10-16 Cherry Zhang <cherryyz@google.com>
2
3 PR 23769
4 * gold.cc (queue_middle_tasks): Correct split-stack error message.
5
6 2018-08-29 Chenghua Xu <paul.hua.gm@gmail.com>
7
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
12 flags.
13 (elf_mips_mach_name): Rename loongson3a to gs464.
14
15 2018-07-10 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16
17 * object.cc (Sized_relobj_file::map_to_kept_section): Initialize
18 kept_file.
19
20 2018-08-07 Cary Coutant <ccoutant@gmail.com>
21
22 PR ld/23486
23 * x86_64.cc (Target_x86_64::Target_x86_64): Initialize
24 object_isa_1_used_.
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.
28
29 2018-08-06 Cary Coutant <ccoutant@gmail.com>
30
31 PR gold/23455
32 * options.h (General_options): Add --warn-drop-version option.
33 * symtab.cc (Symbol_table::set_dynsym_indexes): Check it.
34
35 2018-08-06 Cary Coutant <ccoutant@gmail.com>
36
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.
40
41 2018-07-30 Nick Clifton <nickc@redhat.com>
42
43 * layout.cc (section_name_mapping): Add an entry for
44 .gnu.build.attributes.
45
46 2018-07-18 Nick Clifton <nickc@redhat.com>
47
48 * po/fr.po: Updated French translation.
49
50 2018-07-14 Cary Coutant <ccoutant@gmail.com>
51
52 PR gold/23397
53 * object.cc (Sized_relobj_file::do_layout): Mark section as deferred.
54 * testsuite/Makefile.am (plugin_test_1): Add --emit-relocs option to
55 existing test case.
56 * testsuite/Makefile.in: Regenerate.
57
58 2018-07-14 Cary Coutant <ccoutant@gmail.com>
59
60 PR gold/23409
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.
68
69 2018-07-11 Franz Sirl <franz.sirl-kernel@lauterbach.com>
70
71 * main.cc (main): Print m.arena as long long.
72
73 2018-07-09 Cary Coutant <ccoutant@gmail.com>
74
75 * incremental.cc (Sized_incremental_binary::setup_readers): Use
76 emplace_back for C++ 11 or later.
77
78 2018-07-06 Alan Modra <amodra@gmail.com>
79
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.
92
93 2018-06-26 Nick Clifton <nickc@redhat.com>
94
95 * po/uk.po: Updated Ukranian translation.
96
97 2018-06-24 Nick Clifton <nickc@redhat.com>
98
99 * po/gold.pot: Regenerate.
100
101 2018-06-24 Nick Clifton <nickc@redhat.com>
102
103 2.31 branch created.
104
105 2018-06-23 Cary Coutant <ccoutant@gmail.com>
106
107 * version.cc (version_string): Bump to 1.16.
108 * NEWS: Add new features in 1.16.
109
110 2018-06-23 Cary Coutant <ccoutant@gmail.com>
111
112 PR gold/22914
113 * x86_64.cc (Target_x86_64::record_gnu_property): Initialize val.
114
115 2018-06-23 Cary Coutant <ccoutant@gmail.com>
116
117 PR gold/22915
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.
121
122 2018-06-22 Cary Coutant <ccoutant@gmail.com>
123
124 PR gold/22914
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.
156
157 2018-06-22 Cary Coutant <ccoutant@gmail.com>
158
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
162 constructor.
163 (Sized_incremental_binary::Sized_input_reader): Likewise.
164
165 2018-06-22 Cary Coutant <ccoutant@gmail.com>
166
167 PR gold/22914
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
178 method.
179 (Sized_relobj_file::do_layout): Handle .note.gnu.property sections.
180 * object.h (Sized_relobj_file::layout_gnu_property_section): New
181 method.
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.
192
193 2018-06-21 Cary Coutant <ccoutant@gmail.com>
194
195 * resolve.cc (Symbol_table::resolve): Rename tobinding to
196 orig_tobinding. Call set_is_needed() for objects that resolve
197 non-weak references.
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
202 version informatin.
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.
211
212 2018-06-20 Cary Coutant <ccoutant@gmail.com>
213
214 PR gold/23268
215 * dynobj.cc (Versions::Versions): Change init for needs_base_version_.
216 (Versions::record_version): Add verdefs for both shared objects and
217 executables.
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
221 executables.
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.
226
227 2018-06-19 Joshua Watt <jpewhacker@gmail.com>
228 Cary Coutant <ccoutant@gmail.com>
229
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.
249
250 2018-06-19 Cary Coutant <ccoutant@gmail.com>
251
252 * testsuite/Makefile.am (MOSTLYCLEANFILES): Add *.stderr.
253 * testsuite/Makefile.in: Regenerate.
254
255 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
256
257 * configure.ac: Remove AC_PREREQ, add missing quoting and usage
258 of AC_LANG_SOURCE.
259 * Makefile.in: Re-generate.
260 * aclocal.m4: Re-generate.
261 * configure: Re-generate.
262 * testsuite/Makefile.in: Re-generate.
263
264 2018-05-10 Stephen Crane <sjc@immunant.com>
265
266 * aarch64.cc (Target_aarch64::do_finalize_sections): Use size of
267 .got section for the _GLOBAL_OFFSET_TABLE_ symbol computation.
268
269 2018-04-24 Cary Coutant <ccoutant@gmail.com>
270
271 PR gold/20642
272 PR gold/22820
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.
276
277 2018-04-24 Cary Coutant <ccoutant@gmail.com>
278
279 PR gold/16504
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.
295
296 2018-04-19 Cary Coutant <ccoutant@gmail.com>
297
298 PR gold/23046
299 * gc.h (gc_process_relocs): Pass target to
300 scan.local_reloc_may_be_function_pointer.
301
302 2018-04-18 Nick Clifton <nickc@redhat.com>
303
304 * po/es.po: Updated Spanish translation.
305
306 2018-04-14 Cary Coutant <ccoutant@gmail.com>
307
308 PR gold/23046
309 * gc.h (gc_process_relocs): Pass target to
310 scan.global_reloc_may_be_function_pointer.
311
312 2018-04-09 Alan Modra <amodra@gmail.com>
313
314 * configure: Regenerate.
315
316 2018-04-09 Alan Modra <amodra@gmail.com>
317
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.
323
324 2018-04-09 Alan Modra <amodra@gmail.com>
325
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.
338
339 2018-04-09 Alan Modra <amodra@gmail.com>
340
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.
354
355 2018-04-06 Cary Coutant <ccoutant@gmail.com>
356
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
373 kept_section.
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.
384
385 2018-04-05 Cary Coutant <ccoutant@gmail.com>
386
387 * target-reloc.h (relocate_section): Add local symbol index or global
388 symbol name to warning about relocation that refers to discarded
389 section.
390
391 2018-04-05 James Cowgill <james.cowgill@mips.com>
392
393 Revert previous patch and apply revised patch.
394
395 PR gold/22770
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.
401
402 2018-04-05 James Cowgill <james.cowgill@mips.com>
403
404 PR gold/22770
405 * mips.cc (Mips_got_info::record_got_page_entry): Fetch existing
406 page entries for the object's GOT.
407
408 2018-04-05 Alan Modra <amodra@gmail.com>
409
410 * powerpc.cc (Target_powerpc::make_brlt_section): Make .branch_lt relro.
411
412 2018-04-04 Nick Clifton <nickc@redhat.com>
413
414 * po/es.po: Updated Spanish translation.
415
416 2018-04-02 Cary Coutant <ccoutant@gmail.com>
417
418 PR gold/23016
419 * incremental.cc (can_incremental_update): Check for unwind section
420 type.
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
427 and .eh_frame_hdr.
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
431 parameter.
432 * object.cc (Sized_relobj_file::check_eh_frame_flags): Check for
433 unwind section type.
434 (Sized_relobj_file::layout_section): Add sh_type parameter; pass it
435 to Layout::layout.
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.
447
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.
457
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.
467
468 2018-03-28 Cary Coutant <ccoutant@gmail.com>
469
470 PR gold/21423
471 PR gold/22500
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
477 enabled.
478 * Makefile.in: Regenerate.
479 * aclocal.m4: Regenerate.
480 * configure: Regenerate.
481 * testsuite/Makefile.in: Regenerate.
482
483 2018-03-28 Cary Coutant <ccoutant@gmail.com>
484
485 PR gold/22969
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.
492
493 2018-03-27 Roland McGrath <mcgrathr@google.com>
494
495 * testsuite/split_x86_64.sh: Fix bad regexp.
496
497 2018-03-26 Cary Coutant <ccoutant@gmail.com>
498
499 PR gold/22868
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.
507
508 2018-03-23 Cary Coutant <ccoutant@gmail.com>
509
510 * plugin.cc (link_or_copy_file): Remove newlines from warning messages.
511 Add pedantic check for return value from ::write.
512
513 2018-03-23 Cary Coutant <ccoutant@gmail.com>
514
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.
533
534 2018-03-07 Sriraman Tallam <tmsriram@google.com>
535
536 * layout.cc (Layout::default_section_order): Check for text section
537 prefixes.
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.
554
555 2018-02-22 Sriraman Tallam <tmsriram@google.com>
556
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
561 interface.
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.
567
568 2018-02-07 Sriraman Tallam <tmsriram@google.com>
569
570 * expression.cc (Symbol_expression::set_expr_sym_in_real_elf):
571 New method.
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.
593
594 2018-02-07 Alan Modra <amodra@gmail.com>
595
596 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
597 * options.h: Remove --speculate-indirect-jumps support.
598 * powerpc.cc: Likewise.
599
600 2018-02-02 Cary Coutant <ccoutant@gmail.com>
601
602 * PR gold/22776
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.
606
607 2018-01-18 Alan Modra <amodra@gmail.com>
608
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.
614
615 2018-01-17 Alan Modra <amodra@gmail.com>
616
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.
624
625 2018-01-17 Alan Modra <amodra@gmail.com>
626
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.
640
641 2018-01-15 Cary Coutant <ccoutant@gmail.com>
642
643 PR gold/22694
644 * options.h (-fuse-ld): Add correct helparg.
645
646 2018-01-15 Nick Clifton <nickc@redhat.com>
647
648 * po/uk.po: Updated Ukranian translation.
649
650 2018-01-13 Nick Clifton <nickc@redhat.com>
651
652 * po/gold.pot: Regenerated.
653
654 2018-01-13 Nick Clifton <nickc@redhat.com>
655
656 2.30 branch created.
657
658 2018-01-12 Cary Coutant <ccoutant@gmail.com>
659
660 * NEWS: Add new features in 1.15.
661 * version.cc (version_string): Bump to 1.15.
662
663 2018-01-12 Sterling Augustine <saugustine@google.com>
664
665 * cref.cc (Cref_inputs::Cref_table_compare::operator): Add
666 conditionals and calls to is_forwarder.
667
668 2018-01-03 Alan Modra <amodra@gmail.com>
669
670 Update year range in copyright notice of all files.
671
672 For older changes see ChangeLog-2017
673 \f
674 Copyright (C) 2018 Free Software Foundation, Inc.
675
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.
679
680 Local Variables:
681 mode: change-log
682 left-margin: 8
683 fill-column: 74
684 version-control: never
685 End: