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