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