Remove *.stderr when "make clean".
[deliverable/binutils-gdb.git] / gold / ChangeLog
1 2018-06-19 Cary Coutant <ccoutant@gmail.com>
2
3 * testsuite/Makefile.am (MOSTLYCLEANFILES): Add *.stderr.
4 * testsuite/Makefile.in: Regenerate.
5
6 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
7
8 * configure.ac: Remove AC_PREREQ, add missing quoting and usage
9 of AC_LANG_SOURCE.
10 * Makefile.in: Re-generate.
11 * aclocal.m4: Re-generate.
12 * configure: Re-generate.
13 * testsuite/Makefile.in: Re-generate.
14
15 2018-05-10 Stephen Crane <sjc@immunant.com>
16
17 * aarch64.cc (Target_aarch64::do_finalize_sections): Use size of
18 .got section for the _GLOBAL_OFFSET_TABLE_ symbol computation.
19
20 2018-04-24 Cary Coutant <ccoutant@gmail.com>
21
22 PR gold/20642
23 PR gold/22820
24 * gc.h (gc_process_relocs): Flag STT_SECTION symbols in symvec.
25 * icf.cc (get_section_contents): For merge sections, ignore the
26 addend for relocations against non-section symbols.
27
28 2018-04-24 Cary Coutant <ccoutant@gmail.com>
29
30 PR gold/16504
31 * dynobj.cc (Versions::symbol_section_contents): Don't set
32 VERSYM_HIDDEN flag for undefined symbols.
33 * symtab.cc (Symbol_table::add_from_object): Don't override default
34 version definition with a different default version.
35 * symtab.h (Symbol::from_dyn): New method.
36 * testsuite/plugin_test.c (struct sym_info): Add ver field.
37 (claim_file_hook): Pass symbol version to plugin API.
38 (parse_readelf_line): Parse symbol version.
39 * testsuite/Makefile.am (ver_test_pr16504): New test case.
40 * testsuite/Makefile.in: Regenerate.
41 * testsuite/ver_test_pr16504.sh: New test script.
42 * testsuite/ver_test_pr16504_a.c: New source file.
43 * testsuite/ver_test_pr16504_a.script: New version script.
44 * testsuite/ver_test_pr16504_b.c: New source file.
45 * testsuite/ver_test_pr16504_b.script: New version script.
46
47 2018-04-19 Cary Coutant <ccoutant@gmail.com>
48
49 PR gold/23046
50 * gc.h (gc_process_relocs): Pass target to
51 scan.local_reloc_may_be_function_pointer.
52
53 2018-04-18 Nick Clifton <nickc@redhat.com>
54
55 * po/es.po: Updated Spanish translation.
56
57 2018-04-14 Cary Coutant <ccoutant@gmail.com>
58
59 PR gold/23046
60 * gc.h (gc_process_relocs): Pass target to
61 scan.global_reloc_may_be_function_pointer.
62
63 2018-04-09 Alan Modra <amodra@gmail.com>
64
65 * configure: Regenerate.
66
67 2018-04-09 Alan Modra <amodra@gmail.com>
68
69 * powerpc.cc (Target_powerpc::Track_tls::maybe_skip_tls_get_addr_call):
70 Handle inline plt sequence relocs.
71 (Stub_table::Plt_stub_key::Plt_stub_key): Likewise.
72 (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Likewise.
73 (Target_powerpc::Relocate::relocate): Likewise.
74
75 2018-04-09 Alan Modra <amodra@gmail.com>
76
77 * powerpc.cc (Target_powerpc::lplt_): New variable.
78 (Target_powerpc::lplt_section): Associated accessor.
79 (Target_powerpc::plt_off): Handle local non-ifunc symbols.
80 (Target_powerpc::make_lplt_section): New function.
81 (Target_powerpc::make_local_plt_entry): New function.
82 (Powerpc_relobj::do_relocate_sections): Write out lplt.
83 (Output_data_plt_powerpc::first_plt_entry_offset): Zero for lplt.
84 (Output_data_plt_powerpc::add_local_entry): New function.
85 (Output_data_plt_powerpc::do_write): Ignore lplt.
86 (Target_powerpc::make_iplt_section): Make lplt first.
87 (Target_powerpc::make_brlt_section): Make .branch_lt relro.
88 (Target_powerpc::Scan::local): Handle PLT16 relocs.
89
90 2018-04-09 Alan Modra <amodra@gmail.com>
91
92 * powerpc.cc (Target_powerpc::plt_off): New functions.
93 (is_plt16_reloc): New function.
94 (Stub_table::plt_off): Use Target_powerpc::plt_off.
95 (Stub_table::plt_call_size): Use plt_off.
96 (Stub_table::do_write): Likewise.
97 (Target_powerpc::Scan::get_reference_flags): Return RELATIVE_REF
98 for PLT16 relocations.
99 (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Return true
100 for PLT16 relocations.
101 (Target_powerpc::Scan::global): Make a PLT entry for PLT16 relocations.
102 (Target_powerpc::Relocate::relocate): Support PLT16 relocations.
103 (Powerpc_scan_relocatable_reloc::global_strategy): Return RELOC_SPECIAL
104 for ppc32 plt16 relocs.
105
106 2018-04-06 Cary Coutant <ccoutant@gmail.com>
107
108 * object.cc (Sized_relobj_file::include_section_group): Store
109 reference to Kept_section info for discarded comdat sections
110 regardless of size. Move size checking to map_to_kept_section.
111 (Sized_relobj_file::include_linkonce_section): Likewise.
112 (Sized_relobj_file::map_to_kept_section): Add section name parameter.
113 Insert size checking logic from above functions.
114 (Sized_relobj_file::find_kept_section_object): New method.
115 (Sized_relobj_file::get_symbol_name): New method.
116 * object.h (Sized_relobj_file::map_to_kept_section): Add section_name
117 parameter. Adjust all callers.
118 (Sized_relobj_file::find_kept_section_object): New method.
119 (Sized_relobj_file::get_symbol_name): New method.
120 (Sized_relobj_file::Kept_comdat_section): Replace object and shndx
121 fields with sh_size, kept_section, symndx, and is_comdat fields.
122 (Sized_relobj_file::set_kept_comdat_section): Replace kept_object
123 and kept_shndx parameters with is_comdat, symndx, sh_size, and
124 kept_section.
125 (Sized_relobj_file::get_kept_comdat_section): Likewise.
126 * target-reloc.h (enum Comdat_behavior): Change CB_WARNING to CB_ERROR.
127 Adjust all references.
128 (issue_undefined_symbol_error): New function template.
129 (relocate_section): Pass section name to map_to_kept_section.
130 Move discarded section code to new function above.
131 * aarch64.cc (Target_aarch64::scan_reloc_section_for_stubs): Move
132 declaration for gsym out one level. Call issue_discarded_error.
133 * arm.cc (Target_arm::scan_reloc_section_for_stubs): Likewise.
134 * powerpc.cc (Relocate_comdat_behavior): Change CB_WARNING to CB_ERROR.
135
136 2018-04-05 Cary Coutant <ccoutant@gmail.com>
137
138 * target-reloc.h (relocate_section): Add local symbol index or global
139 symbol name to warning about relocation that refers to discarded
140 section.
141
142 2018-04-05 James Cowgill <james.cowgill@mips.com>
143
144 Revert previous patch and apply revised patch.
145
146 PR gold/22770
147 * mips.cc (Mips_got_info::record_got_page_entry): Don't insert
148 Got_page_entry for object's GOT.
149 (Mips_got_info::add_got_page_entries): Add all pages from from's GOT.
150 Rename to add_got_page_count.
151 (Got_page_entry): Remove num_pages.
152
153 2018-04-05 James Cowgill <james.cowgill@mips.com>
154
155 PR gold/22770
156 * mips.cc (Mips_got_info::record_got_page_entry): Fetch existing
157 page entries for the object's GOT.
158
159 2018-04-05 Alan Modra <amodra@gmail.com>
160
161 * powerpc.cc (Target_powerpc::make_brlt_section): Make .branch_lt relro.
162
163 2018-04-04 Nick Clifton <nickc@redhat.com>
164
165 * po/es.po: Updated Spanish translation.
166
167 2018-04-02 Cary Coutant <ccoutant@gmail.com>
168
169 PR gold/23016
170 * incremental.cc (can_incremental_update): Check for unwind section
171 type.
172 * layout.h (Layout::layout): Add sh_type parameter.
173 * layout.cc (Layout::layout): Likewise.
174 (Layout::layout_reloc): Create new output reloc section if data
175 section does not already have one.
176 (Layout::layout_eh_frame): Check for unwind section type.
177 (Layout::make_eh_frame_section): Use unwind section type for .eh_frame
178 and .eh_frame_hdr.
179 * object.h (Sized_relobj_file::Shdr_write): New typedef.
180 (Sized_relobj_file::layout_section): Add sh_type parameter.
181 (Sized_relobj_file::Deferred_layout::Deferred_layout): Add sh_type
182 parameter.
183 * object.cc (Sized_relobj_file::check_eh_frame_flags): Check for
184 unwind section type.
185 (Sized_relobj_file::layout_section): Add sh_type parameter; pass it
186 to Layout::layout.
187 (Sized_relobj_file::do_layout): Make local copy of sh_type.
188 Force .eh_frame sections to unwind section type.
189 Pass sh_type to layout_section.
190 (Sized_relobj_file<size, big_endian>::do_layout_deferred_sections):
191 Pass sh_type to layout_section.
192 * output.cc (Output_section::Output_section): Initialize reloc_section_.
193 * output.h (Output_section::reloc_section): New method.
194 (Output_section::set_reloc_section): New method.
195 (Output_section::reloc_section_): New data member.
196 * target.h (Target::unwind_section_type): New method.
197 (Target::Target_info::unwind_section_type): New data member.
198
199 * aarch64.cc (aarch64_info): Add unwind_section_type.
200 * arm.cc (arm_info, arm_nacl_info): Likewise.
201 * i386.cc (i386_info, i386_nacl_info, iamcu_info): Likewise.
202 * mips.cc (mips_info, mips_nacl_info): Likewise.
203 * powerpc.cc (powerpc_info): Likewise.
204 * s390.cc (s390_info): Likewise.
205 * sparc.cc (sparc_info): Likewise.
206 * tilegx.cc (tilegx_info): Likewise.
207 * x86_64.cc (x86_64_info, x86_64_nacl_info): Likewise.
208
209 * testsuite/Makefile.am (pr23016_1, pr23016_2): New test cases.
210 * testsuite/Makefile.in: Regenerate.
211 * testsuite/testfile.cc: Add unwind_section_type.
212 * testsuite/pr23016_1.sh: New test script.
213 * testsuite/pr23016_1a.s: New source file.
214 * testsuite/pr23016_1b.s: New source file.
215 * testsuite/pr23016_2.sh: New test script.
216 * testsuite/pr23016_2a.s: New source file.
217 * testsuite/pr23016_2b.s: New source file.
218
219 2018-03-28 Cary Coutant <ccoutant@gmail.com>
220
221 PR gold/21423
222 PR gold/22500
223 * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS.
224 Replace check for --enable-plugins with AC_PLUGINS.
225 * options.cc (parse_plugin, parse_plugin_opt): Remove #ifdef.
226 (General_options::finalize): Check if plugins enabled.
227 * options.h (--plugin, --plugin-opt): Define even if plugins not
228 enabled.
229 * Makefile.in: Regenerate.
230 * aclocal.m4: Regenerate.
231 * configure: Regenerate.
232 * testsuite/Makefile.in: Regenerate.
233
234 2018-03-28 Cary Coutant <ccoutant@gmail.com>
235
236 PR gold/22969
237 * aarch64-reloc.def: Add TLSLE_LDST* relocations.
238 * aarch64.cc (Target_aarch64::optimize_tls_reloc): Likewise.
239 (Target_aarch64::Scan::local): Likewise.
240 (Target_aarch64::Scan::global): Likewise.
241 (Target_aarch64::Relocate::relocate): Likewise.
242 (Target_aarch64::Relocate::relocate_tls): Likewise.
243
244 2018-03-27 Roland McGrath <mcgrathr@google.com>
245
246 * testsuite/split_x86_64.sh: Fix bad regexp.
247
248 2018-03-26 Cary Coutant <ccoutant@gmail.com>
249
250 PR gold/22868
251 * plugin.cc (Sized_pluginobj::do_add_symbols): Use a real section
252 index instead of SHN_ABS for defined symbols.
253 * testsuite/Makefile.am (plugin_pr22868): New test case.
254 * testsuite/Makefile.in: Regenerate
255 * testsuite/plugin_pr22868.sh: New test script.
256 * testsuite/plugin_pr22868_a.c: New source file.
257 * testsuite/plugin_pr22868_b.c: New source file.
258
259 2018-03-23 Cary Coutant <ccoutant@gmail.com>
260
261 * plugin.cc (link_or_copy_file): Remove newlines from warning messages.
262 Add pedantic check for return value from ::write.
263
264 2018-03-23 Cary Coutant <ccoutant@gmail.com>
265
266 * debug.h (DEBUG_PLUGIN): New constant.
267 (DEBUG_ALL): Add DEBUG_PLUGIN.
268 (debug_string_to_enum): Likewise.
269 * plugin.cc (make_sized_plugin_object): Add filename parameter.
270 (Plugin_recorder): New class.
271 (Plugin_manager::~Plugin_manager): Delete recorder_.
272 (Plugin_manager::load_plugins): Create and initialize recorder_.
273 (Plugin_manager::claim_file): Record claimed and unclaimed files.
274 (Plugin_manager::make_plugin_object): Use object name as name for
275 plugin object, if available.
276 (Plugin_manager::add_input_file): Record replacement files.
277 (Sized_pluginobj::do_add_symbols): Record plugin symbols.
278 (Plugin_finish::run): Call Plugin_recorder::finish().
279 (make_sized_plugin_object): Add filename parameter and pass to
280 Sized_pluginobj constructor.
281 * plugin.h (Plugin::filename): New method.
282 (Plugin::recorder): New method.
283 (Plugin::recorder_): New data member.
284
285 2018-03-07 Sriraman Tallam <tmsriram@google.com>
286
287 * layout.cc (Layout::default_section_order): Check for text section
288 prefixes.
289 (Layout::text_section_name_mapping): New static member.
290 (Layout::text_section_name_mapping_count): New static member.
291 (Layout::match_section_name): New static function.
292 (Layout::output_section_name): Check for text section prefixes.
293 * layout.h (Output_section_order::ORDER_TEXT_HOT): New enum value.
294 (Output_section_order::ORDER_TEXT_STARTUP): New enum value.
295 (Output_section_order::ORDER_TEXT_EXIT): New enum value.
296 (Output_section_order::ORDER_TEXT_UNLIKELY): New enum value.
297 (Layout::text_section_name_mapping): New static member.
298 (Layout::text_section_name_mapping_count): New static member.
299 (Layout::match_section_name): New static function.
300 * options.h (keep_text_section_prefix): New -z option.
301 * testsuite/Makefile.am (keep_text_section_prefix): New test.
302 * testsuite/Makefile.in: Regenerate.
303 * testsuite/keep_text_section_prefix.cc: New test source.
304 * testsuite/keep_text_section_prefix.sh: New test script.
305
306 2018-02-22 Sriraman Tallam <tmsriram@google.com>
307
308 * plugin.cc (get_wrap_symbols): New plugin interface.
309 (load): Add get_wrap_symbols to transfer vector.
310 * plugin-api.h (ld_plugin_get_wrap_symbols): New plugin interface.
311 * testsuite/plugin_test.c (onload): Call and check get_wrap_symbols
312 interface.
313 * testsuite/plugin_test_wrap_symbols.sh: New test script.
314 * testsuite/plugin_test_wrap_symbols_1.cc: New file.
315 * testsuite/plugin_test_wrap_symbols_2.cc: New file.
316 * testsuite/Makefile.am (plugin_test_wrap_symbols): New test.
317 * testsuite/Makefile.in: Regenerate.
318
319 2018-02-07 Sriraman Tallam <tmsriram@google.com>
320
321 * expression.cc (Symbol_expression::set_expr_sym_in_real_elf):
322 New method.
323 (Unary_expression::set_expr_sym_in_real_elf): New method.
324 (Binary_expression::set_expr_sym_in_real_elf): New method.
325 (Trinary_expression::set_expr_sym_in_real_elf): New method.
326 * plugin.cc (get_symbol_resolution_info): Fix symbol resolution if
327 defined or used in defsyms.
328 * plugin.h (Plugin_manager::is_defsym_def): New method.
329 (Plugin_manager::Plugin_manager): Initialize defsym_defines_set_.
330 (Plugin_manager::defsym_defines_set_): New member.
331 (Plugin_manager::Defsym_defines_set): New typedef.
332 * script.cc (Script_options::set_defsym_uses_in_real_elf): New method.
333 (Script_options::find_defsym_defs): New method.
334 * script.h (Expression::set_expr_sym_in_real_elf): New method.
335 (Symbol_assignment::is_defsym): New method.
336 (Symbol_assignment::value): New method.
337 (Script_options::find_defsym_defs): New method.
338 (Script_options::set_defsym_uses_in_real_elf): New method.
339 * testsuite/Makefile.am (plugin_test_defsym): New test.
340 * testsuite/Makefile.in: Regenerate.
341 * testsuite/plugin_test.c: Check for new symbol resolution.
342 * testsuite/plugin_test_defsym.sh: New script.
343 * testsuite/plugin_test_defsym.c: New test source.
344
345 2018-02-07 Alan Modra <amodra@gmail.com>
346
347 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
348 * options.h: Remove --speculate-indirect-jumps support.
349 * powerpc.cc: Likewise.
350
351 2018-02-02 Cary Coutant <ccoutant@gmail.com>
352
353 * PR gold/22776
354 * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog): Add
355 support for DWARF-4 line number tables.
356 * dwarf_reader.h (Sized_dwarf_line_info::max_ops_per_insn): New field.
357
358 2018-01-18 Alan Modra <amodra@gmail.com>
359
360 * powerpc.cc (param_plt_align): New function supplying default
361 --plt-align values. Use it..
362 (Stub_table::plt_call_align): ..here, and..
363 (Output_data_glink::global_entry_align): ..here.
364 (Stub_table::stub_align): Correct 32-bit minimum alignment.
365
366 2018-01-17 Alan Modra <amodra@gmail.com>
367
368 * options.h (speculate_indirect_jumps): New option.
369 * powerpc.cc (beqctrm, beqctrlm, crseteq): New insn constants.
370 (output_bctr): New function.
371 (Stub_table::plt_call_size): Add space for speculation barrier.
372 (Stub_table::branch_stub_size): Likewise.
373 (Output_data_glink::pltresolve_size): Likewise.
374 (Stub_table::do_write): Output speculation barriers.
375
376 2018-01-17 Alan Modra <amodra@gmail.com>
377
378 * options.h (plt_align): Support for PowerPC32 too.
379 * powerpc.cc (Stub_table::stub_align): Heed --plt-align for 32-bit.
380 (Stub_table::plt_call_size, branch_stub_size): Tidy.
381 (Stub_table::plt_call_align): Implement using stub_align.
382 (Output_data_glink::global_entry_align): New function.
383 (Output_data_glink::global_entry_off): New function.
384 (Output_data_glink::global_entry_address): Use global_entry_off.
385 (Output_data_glink::pltresolve_size): New function, replacing
386 pltresolve_size_ constant. Update all uses.
387 (Output_data_glink::add_global_entry): Align offset.
388 (Output_data_glink::set_final_data_size): Use global_entry_align.
389 (Stub_table::do_write): Don't pad __glink_PLTrelsolve with nops.
390 Tidy stub output. Use global_entry_off.
391
392 2018-01-15 Cary Coutant <ccoutant@gmail.com>
393
394 PR gold/22694
395 * options.h (-fuse-ld): Add correct helparg.
396
397 2018-01-15 Nick Clifton <nickc@redhat.com>
398
399 * po/uk.po: Updated Ukranian translation.
400
401 2018-01-13 Nick Clifton <nickc@redhat.com>
402
403 * po/gold.pot: Regenerated.
404
405 2018-01-13 Nick Clifton <nickc@redhat.com>
406
407 2.30 branch created.
408
409 2018-01-12 Cary Coutant <ccoutant@gmail.com>
410
411 * NEWS: Add new features in 1.15.
412 * version.cc (version_string): Bump to 1.15.
413
414 2018-01-12 Sterling Augustine <saugustine@google.com>
415
416 * cref.cc (Cref_inputs::Cref_table_compare::operator): Add
417 conditionals and calls to is_forwarder.
418
419 2018-01-03 Alan Modra <amodra@gmail.com>
420
421 Update year range in copyright notice of all files.
422
423 For older changes see ChangeLog-2017
424 \f
425 Copyright (C) 2018 Free Software Foundation, Inc.
426
427 Copying and distribution of this file, with or without modification,
428 are permitted in any medium without royalty provided the copyright
429 notice and this notice are preserved.
430
431 Local Variables:
432 mode: change-log
433 left-margin: 8
434 fill-column: 74
435 version-control: never
436 End:
This page took 0.042969 seconds and 5 git commands to generate.