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