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