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