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