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