1 2018-04-06 Cary Coutant <ccoutant@gmail.com>
3 * object.cc (Sized_relobj_file::include_section_group): Store
4 reference to Kept_section info for discarded comdat sections
5 regardless of size. Move size checking to map_to_kept_section.
6 (Sized_relobj_file::include_linkonce_section): Likewise.
7 (Sized_relobj_file::map_to_kept_section): Add section name parameter.
8 Insert size checking logic from above functions.
9 (Sized_relobj_file::find_kept_section_object): New method.
10 (Sized_relobj_file::get_symbol_name): New method.
11 * object.h (Sized_relobj_file::map_to_kept_section): Add section_name
12 parameter. Adjust all callers.
13 (Sized_relobj_file::find_kept_section_object): New method.
14 (Sized_relobj_file::get_symbol_name): New method.
15 (Sized_relobj_file::Kept_comdat_section): Replace object and shndx
16 fields with sh_size, kept_section, symndx, and is_comdat fields.
17 (Sized_relobj_file::set_kept_comdat_section): Replace kept_object
18 and kept_shndx parameters with is_comdat, symndx, sh_size, and
20 (Sized_relobj_file::get_kept_comdat_section): Likewise.
21 * target-reloc.h (enum Comdat_behavior): Change CB_WARNING to CB_ERROR.
22 Adjust all references.
23 (issue_undefined_symbol_error): New function template.
24 (relocate_section): Pass section name to map_to_kept_section.
25 Move discarded section code to new function above.
26 * aarch64.cc (Target_aarch64::scan_reloc_section_for_stubs): Move
27 declaration for gsym out one level. Call issue_discarded_error.
28 * arm.cc (Target_arm::scan_reloc_section_for_stubs): Likewise.
29 * powerpc.cc (Relocate_comdat_behavior): Change CB_WARNING to CB_ERROR.
31 2018-04-05 Cary Coutant <ccoutant@gmail.com>
33 * target-reloc.h (relocate_section): Add local symbol index or global
34 symbol name to warning about relocation that refers to discarded
37 2018-04-05 James Cowgill <james.cowgill@mips.com>
39 Revert previous patch and apply revised patch.
42 * mips.cc (Mips_got_info::record_got_page_entry): Don't insert
43 Got_page_entry for object's GOT.
44 (Mips_got_info::add_got_page_entries): Add all pages from from's GOT.
45 Rename to add_got_page_count.
46 (Got_page_entry): Remove num_pages.
48 2018-04-05 James Cowgill <james.cowgill@mips.com>
51 * mips.cc (Mips_got_info::record_got_page_entry): Fetch existing
52 page entries for the object's GOT.
54 2018-04-05 Alan Modra <amodra@gmail.com>
56 * powerpc.cc (Target_powerpc::make_brlt_section): Make .branch_lt relro.
58 2018-04-04 Nick Clifton <nickc@redhat.com>
60 * po/es.po: Updated Spanish translation.
62 2018-04-02 Cary Coutant <ccoutant@gmail.com>
65 * incremental.cc (can_incremental_update): Check for unwind section
67 * layout.h (Layout::layout): Add sh_type parameter.
68 * layout.cc (Layout::layout): Likewise.
69 (Layout::layout_reloc): Create new output reloc section if data
70 section does not already have one.
71 (Layout::layout_eh_frame): Check for unwind section type.
72 (Layout::make_eh_frame_section): Use unwind section type for .eh_frame
74 * object.h (Sized_relobj_file::Shdr_write): New typedef.
75 (Sized_relobj_file::layout_section): Add sh_type parameter.
76 (Sized_relobj_file::Deferred_layout::Deferred_layout): Add sh_type
78 * object.cc (Sized_relobj_file::check_eh_frame_flags): Check for
80 (Sized_relobj_file::layout_section): Add sh_type parameter; pass it
82 (Sized_relobj_file::do_layout): Make local copy of sh_type.
83 Force .eh_frame sections to unwind section type.
84 Pass sh_type to layout_section.
85 (Sized_relobj_file<size, big_endian>::do_layout_deferred_sections):
86 Pass sh_type to layout_section.
87 * output.cc (Output_section::Output_section): Initialize reloc_section_.
88 * output.h (Output_section::reloc_section): New method.
89 (Output_section::set_reloc_section): New method.
90 (Output_section::reloc_section_): New data member.
91 * target.h (Target::unwind_section_type): New method.
92 (Target::Target_info::unwind_section_type): New data member.
94 * aarch64.cc (aarch64_info): Add unwind_section_type.
95 * arm.cc (arm_info, arm_nacl_info): Likewise.
96 * i386.cc (i386_info, i386_nacl_info, iamcu_info): Likewise.
97 * mips.cc (mips_info, mips_nacl_info): Likewise.
98 * powerpc.cc (powerpc_info): Likewise.
99 * s390.cc (s390_info): Likewise.
100 * sparc.cc (sparc_info): Likewise.
101 * tilegx.cc (tilegx_info): Likewise.
102 * x86_64.cc (x86_64_info, x86_64_nacl_info): Likewise.
104 * testsuite/Makefile.am (pr23016_1, pr23016_2): New test cases.
105 * testsuite/Makefile.in: Regenerate.
106 * testsuite/testfile.cc: Add unwind_section_type.
107 * testsuite/pr23016_1.sh: New test script.
108 * testsuite/pr23016_1a.s: New source file.
109 * testsuite/pr23016_1b.s: New source file.
110 * testsuite/pr23016_2.sh: New test script.
111 * testsuite/pr23016_2a.s: New source file.
112 * testsuite/pr23016_2b.s: New source file.
114 2018-03-28 Cary Coutant <ccoutant@gmail.com>
118 * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS.
119 Replace check for --enable-plugins with AC_PLUGINS.
120 * options.cc (parse_plugin, parse_plugin_opt): Remove #ifdef.
121 (General_options::finalize): Check if plugins enabled.
122 * options.h (--plugin, --plugin-opt): Define even if plugins not
124 * Makefile.in: Regenerate.
125 * aclocal.m4: Regenerate.
126 * configure: Regenerate.
127 * testsuite/Makefile.in: Regenerate.
129 2018-03-28 Cary Coutant <ccoutant@gmail.com>
132 * aarch64-reloc.def: Add TLSLE_LDST* relocations.
133 * aarch64.cc (Target_aarch64::optimize_tls_reloc): Likewise.
134 (Target_aarch64::Scan::local): Likewise.
135 (Target_aarch64::Scan::global): Likewise.
136 (Target_aarch64::Relocate::relocate): Likewise.
137 (Target_aarch64::Relocate::relocate_tls): Likewise.
139 2018-03-27 Roland McGrath <mcgrathr@google.com>
141 * testsuite/split_x86_64.sh: Fix bad regexp.
143 2018-03-26 Cary Coutant <ccoutant@gmail.com>
146 * plugin.cc (Sized_pluginobj::do_add_symbols): Use a real section
147 index instead of SHN_ABS for defined symbols.
148 * testsuite/Makefile.am (plugin_pr22868): New test case.
149 * testsuite/Makefile.in: Regenerate
150 * testsuite/plugin_pr22868.sh: New test script.
151 * testsuite/plugin_pr22868_a.c: New source file.
152 * testsuite/plugin_pr22868_b.c: New source file.
154 2018-03-23 Cary Coutant <ccoutant@gmail.com>
156 * plugin.cc (link_or_copy_file): Remove newlines from warning messages.
157 Add pedantic check for return value from ::write.
159 2018-03-23 Cary Coutant <ccoutant@gmail.com>
161 * debug.h (DEBUG_PLUGIN): New constant.
162 (DEBUG_ALL): Add DEBUG_PLUGIN.
163 (debug_string_to_enum): Likewise.
164 * plugin.cc (make_sized_plugin_object): Add filename parameter.
165 (Plugin_recorder): New class.
166 (Plugin_manager::~Plugin_manager): Delete recorder_.
167 (Plugin_manager::load_plugins): Create and initialize recorder_.
168 (Plugin_manager::claim_file): Record claimed and unclaimed files.
169 (Plugin_manager::make_plugin_object): Use object name as name for
170 plugin object, if available.
171 (Plugin_manager::add_input_file): Record replacement files.
172 (Sized_pluginobj::do_add_symbols): Record plugin symbols.
173 (Plugin_finish::run): Call Plugin_recorder::finish().
174 (make_sized_plugin_object): Add filename parameter and pass to
175 Sized_pluginobj constructor.
176 * plugin.h (Plugin::filename): New method.
177 (Plugin::recorder): New method.
178 (Plugin::recorder_): New data member.
180 2018-03-07 Sriraman Tallam <tmsriram@google.com>
182 * layout.cc (Layout::default_section_order): Check for text section
184 (Layout::text_section_name_mapping): New static member.
185 (Layout::text_section_name_mapping_count): New static member.
186 (Layout::match_section_name): New static function.
187 (Layout::output_section_name): Check for text section prefixes.
188 * layout.h (Output_section_order::ORDER_TEXT_HOT): New enum value.
189 (Output_section_order::ORDER_TEXT_STARTUP): New enum value.
190 (Output_section_order::ORDER_TEXT_EXIT): New enum value.
191 (Output_section_order::ORDER_TEXT_UNLIKELY): New enum value.
192 (Layout::text_section_name_mapping): New static member.
193 (Layout::text_section_name_mapping_count): New static member.
194 (Layout::match_section_name): New static function.
195 * options.h (keep_text_section_prefix): New -z option.
196 * testsuite/Makefile.am (keep_text_section_prefix): New test.
197 * testsuite/Makefile.in: Regenerate.
198 * testsuite/keep_text_section_prefix.cc: New test source.
199 * testsuite/keep_text_section_prefix.sh: New test script.
201 2018-02-22 Sriraman Tallam <tmsriram@google.com>
203 * plugin.cc (get_wrap_symbols): New plugin interface.
204 (load): Add get_wrap_symbols to transfer vector.
205 * plugin-api.h (ld_plugin_get_wrap_symbols): New plugin interface.
206 * testsuite/plugin_test.c (onload): Call and check get_wrap_symbols
208 * testsuite/plugin_test_wrap_symbols.sh: New test script.
209 * testsuite/plugin_test_wrap_symbols_1.cc: New file.
210 * testsuite/plugin_test_wrap_symbols_2.cc: New file.
211 * testsuite/Makefile.am (plugin_test_wrap_symbols): New test.
212 * testsuite/Makefile.in: Regenerate.
214 2018-02-07 Sriraman Tallam <tmsriram@google.com>
216 * expression.cc (Symbol_expression::set_expr_sym_in_real_elf):
218 (Unary_expression::set_expr_sym_in_real_elf): New method.
219 (Binary_expression::set_expr_sym_in_real_elf): New method.
220 (Trinary_expression::set_expr_sym_in_real_elf): New method.
221 * plugin.cc (get_symbol_resolution_info): Fix symbol resolution if
222 defined or used in defsyms.
223 * plugin.h (Plugin_manager::is_defsym_def): New method.
224 (Plugin_manager::Plugin_manager): Initialize defsym_defines_set_.
225 (Plugin_manager::defsym_defines_set_): New member.
226 (Plugin_manager::Defsym_defines_set): New typedef.
227 * script.cc (Script_options::set_defsym_uses_in_real_elf): New method.
228 (Script_options::find_defsym_defs): New method.
229 * script.h (Expression::set_expr_sym_in_real_elf): New method.
230 (Symbol_assignment::is_defsym): New method.
231 (Symbol_assignment::value): New method.
232 (Script_options::find_defsym_defs): New method.
233 (Script_options::set_defsym_uses_in_real_elf): New method.
234 * testsuite/Makefile.am (plugin_test_defsym): New test.
235 * testsuite/Makefile.in: Regenerate.
236 * testsuite/plugin_test.c: Check for new symbol resolution.
237 * testsuite/plugin_test_defsym.sh: New script.
238 * testsuite/plugin_test_defsym.c: New test source.
240 2018-02-07 Alan Modra <amodra@gmail.com>
242 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
243 * options.h: Remove --speculate-indirect-jumps support.
244 * powerpc.cc: Likewise.
246 2018-02-02 Cary Coutant <ccoutant@gmail.com>
249 * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog): Add
250 support for DWARF-4 line number tables.
251 * dwarf_reader.h (Sized_dwarf_line_info::max_ops_per_insn): New field.
253 2018-01-18 Alan Modra <amodra@gmail.com>
255 * powerpc.cc (param_plt_align): New function supplying default
256 --plt-align values. Use it..
257 (Stub_table::plt_call_align): ..here, and..
258 (Output_data_glink::global_entry_align): ..here.
259 (Stub_table::stub_align): Correct 32-bit minimum alignment.
261 2018-01-17 Alan Modra <amodra@gmail.com>
263 * options.h (speculate_indirect_jumps): New option.
264 * powerpc.cc (beqctrm, beqctrlm, crseteq): New insn constants.
265 (output_bctr): New function.
266 (Stub_table::plt_call_size): Add space for speculation barrier.
267 (Stub_table::branch_stub_size): Likewise.
268 (Output_data_glink::pltresolve_size): Likewise.
269 (Stub_table::do_write): Output speculation barriers.
271 2018-01-17 Alan Modra <amodra@gmail.com>
273 * options.h (plt_align): Support for PowerPC32 too.
274 * powerpc.cc (Stub_table::stub_align): Heed --plt-align for 32-bit.
275 (Stub_table::plt_call_size, branch_stub_size): Tidy.
276 (Stub_table::plt_call_align): Implement using stub_align.
277 (Output_data_glink::global_entry_align): New function.
278 (Output_data_glink::global_entry_off): New function.
279 (Output_data_glink::global_entry_address): Use global_entry_off.
280 (Output_data_glink::pltresolve_size): New function, replacing
281 pltresolve_size_ constant. Update all uses.
282 (Output_data_glink::add_global_entry): Align offset.
283 (Output_data_glink::set_final_data_size): Use global_entry_align.
284 (Stub_table::do_write): Don't pad __glink_PLTrelsolve with nops.
285 Tidy stub output. Use global_entry_off.
287 2018-01-15 Cary Coutant <ccoutant@gmail.com>
290 * options.h (-fuse-ld): Add correct helparg.
292 2018-01-15 Nick Clifton <nickc@redhat.com>
294 * po/uk.po: Updated Ukranian translation.
296 2018-01-13 Nick Clifton <nickc@redhat.com>
298 * po/gold.pot: Regenerated.
300 2018-01-13 Nick Clifton <nickc@redhat.com>
304 2018-01-12 Cary Coutant <ccoutant@gmail.com>
306 * NEWS: Add new features in 1.15.
307 * version.cc (version_string): Bump to 1.15.
309 2018-01-12 Sterling Augustine <saugustine@google.com>
311 * cref.cc (Cref_inputs::Cref_table_compare::operator): Add
312 conditionals and calls to is_forwarder.
314 2018-01-03 Alan Modra <amodra@gmail.com>
316 Update year range in copyright notice of all files.
318 For older changes see ChangeLog-2017
320 Copyright (C) 2018 Free Software Foundation, Inc.
322 Copying and distribution of this file, with or without modification,
323 are permitted in any medium without royalty provided the copyright
324 notice and this notice are preserved.
330 version-control: never