1 2018-04-05 Cary Coutant <ccoutant@gmail.com>
3 * target-reloc.h (relocate_section): Add local symbol index or global
4 symbol name to warning about relocation that refers to discarded
7 2018-04-05 James Cowgill <james.cowgill@mips.com>
9 Revert previous patch and apply revised patch.
12 * mips.cc (Mips_got_info::record_got_page_entry): Don't insert
13 Got_page_entry for object's GOT.
14 (Mips_got_info::add_got_page_entries): Add all pages from from's GOT.
15 Rename to add_got_page_count.
16 (Got_page_entry): Remove num_pages.
18 2018-04-05 James Cowgill <james.cowgill@mips.com>
21 * mips.cc (Mips_got_info::record_got_page_entry): Fetch existing
22 page entries for the object's GOT.
24 2018-04-05 Alan Modra <amodra@gmail.com>
26 * powerpc.cc (Target_powerpc::make_brlt_section): Make .branch_lt relro.
28 2018-04-04 Nick Clifton <nickc@redhat.com>
30 * po/es.po: Updated Spanish translation.
32 2018-04-02 Cary Coutant <ccoutant@gmail.com>
35 * incremental.cc (can_incremental_update): Check for unwind section
37 * layout.h (Layout::layout): Add sh_type parameter.
38 * layout.cc (Layout::layout): Likewise.
39 (Layout::layout_reloc): Create new output reloc section if data
40 section does not already have one.
41 (Layout::layout_eh_frame): Check for unwind section type.
42 (Layout::make_eh_frame_section): Use unwind section type for .eh_frame
44 * object.h (Sized_relobj_file::Shdr_write): New typedef.
45 (Sized_relobj_file::layout_section): Add sh_type parameter.
46 (Sized_relobj_file::Deferred_layout::Deferred_layout): Add sh_type
48 * object.cc (Sized_relobj_file::check_eh_frame_flags): Check for
50 (Sized_relobj_file::layout_section): Add sh_type parameter; pass it
52 (Sized_relobj_file::do_layout): Make local copy of sh_type.
53 Force .eh_frame sections to unwind section type.
54 Pass sh_type to layout_section.
55 (Sized_relobj_file<size, big_endian>::do_layout_deferred_sections):
56 Pass sh_type to layout_section.
57 * output.cc (Output_section::Output_section): Initialize reloc_section_.
58 * output.h (Output_section::reloc_section): New method.
59 (Output_section::set_reloc_section): New method.
60 (Output_section::reloc_section_): New data member.
61 * target.h (Target::unwind_section_type): New method.
62 (Target::Target_info::unwind_section_type): New data member.
64 * aarch64.cc (aarch64_info): Add unwind_section_type.
65 * arm.cc (arm_info, arm_nacl_info): Likewise.
66 * i386.cc (i386_info, i386_nacl_info, iamcu_info): Likewise.
67 * mips.cc (mips_info, mips_nacl_info): Likewise.
68 * powerpc.cc (powerpc_info): Likewise.
69 * s390.cc (s390_info): Likewise.
70 * sparc.cc (sparc_info): Likewise.
71 * tilegx.cc (tilegx_info): Likewise.
72 * x86_64.cc (x86_64_info, x86_64_nacl_info): Likewise.
74 * testsuite/Makefile.am (pr23016_1, pr23016_2): New test cases.
75 * testsuite/Makefile.in: Regenerate.
76 * testsuite/testfile.cc: Add unwind_section_type.
77 * testsuite/pr23016_1.sh: New test script.
78 * testsuite/pr23016_1a.s: New source file.
79 * testsuite/pr23016_1b.s: New source file.
80 * testsuite/pr23016_2.sh: New test script.
81 * testsuite/pr23016_2a.s: New source file.
82 * testsuite/pr23016_2b.s: New source file.
84 2018-03-28 Cary Coutant <ccoutant@gmail.com>
88 * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS.
89 Replace check for --enable-plugins with AC_PLUGINS.
90 * options.cc (parse_plugin, parse_plugin_opt): Remove #ifdef.
91 (General_options::finalize): Check if plugins enabled.
92 * options.h (--plugin, --plugin-opt): Define even if plugins not
94 * Makefile.in: Regenerate.
95 * aclocal.m4: Regenerate.
96 * configure: Regenerate.
97 * testsuite/Makefile.in: Regenerate.
99 2018-03-28 Cary Coutant <ccoutant@gmail.com>
102 * aarch64-reloc.def: Add TLSLE_LDST* relocations.
103 * aarch64.cc (Target_aarch64::optimize_tls_reloc): Likewise.
104 (Target_aarch64::Scan::local): Likewise.
105 (Target_aarch64::Scan::global): Likewise.
106 (Target_aarch64::Relocate::relocate): Likewise.
107 (Target_aarch64::Relocate::relocate_tls): Likewise.
109 2018-03-27 Roland McGrath <mcgrathr@google.com>
111 * testsuite/split_x86_64.sh: Fix bad regexp.
113 2018-03-26 Cary Coutant <ccoutant@gmail.com>
116 * plugin.cc (Sized_pluginobj::do_add_symbols): Use a real section
117 index instead of SHN_ABS for defined symbols.
118 * testsuite/Makefile.am (plugin_pr22868): New test case.
119 * testsuite/Makefile.in: Regenerate
120 * testsuite/plugin_pr22868.sh: New test script.
121 * testsuite/plugin_pr22868_a.c: New source file.
122 * testsuite/plugin_pr22868_b.c: New source file.
124 2018-03-23 Cary Coutant <ccoutant@gmail.com>
126 * plugin.cc (link_or_copy_file): Remove newlines from warning messages.
127 Add pedantic check for return value from ::write.
129 2018-03-23 Cary Coutant <ccoutant@gmail.com>
131 * debug.h (DEBUG_PLUGIN): New constant.
132 (DEBUG_ALL): Add DEBUG_PLUGIN.
133 (debug_string_to_enum): Likewise.
134 * plugin.cc (make_sized_plugin_object): Add filename parameter.
135 (Plugin_recorder): New class.
136 (Plugin_manager::~Plugin_manager): Delete recorder_.
137 (Plugin_manager::load_plugins): Create and initialize recorder_.
138 (Plugin_manager::claim_file): Record claimed and unclaimed files.
139 (Plugin_manager::make_plugin_object): Use object name as name for
140 plugin object, if available.
141 (Plugin_manager::add_input_file): Record replacement files.
142 (Sized_pluginobj::do_add_symbols): Record plugin symbols.
143 (Plugin_finish::run): Call Plugin_recorder::finish().
144 (make_sized_plugin_object): Add filename parameter and pass to
145 Sized_pluginobj constructor.
146 * plugin.h (Plugin::filename): New method.
147 (Plugin::recorder): New method.
148 (Plugin::recorder_): New data member.
150 2018-03-07 Sriraman Tallam <tmsriram@google.com>
152 * layout.cc (Layout::default_section_order): Check for text section
154 (Layout::text_section_name_mapping): New static member.
155 (Layout::text_section_name_mapping_count): New static member.
156 (Layout::match_section_name): New static function.
157 (Layout::output_section_name): Check for text section prefixes.
158 * layout.h (Output_section_order::ORDER_TEXT_HOT): New enum value.
159 (Output_section_order::ORDER_TEXT_STARTUP): New enum value.
160 (Output_section_order::ORDER_TEXT_EXIT): New enum value.
161 (Output_section_order::ORDER_TEXT_UNLIKELY): New enum value.
162 (Layout::text_section_name_mapping): New static member.
163 (Layout::text_section_name_mapping_count): New static member.
164 (Layout::match_section_name): New static function.
165 * options.h (keep_text_section_prefix): New -z option.
166 * testsuite/Makefile.am (keep_text_section_prefix): New test.
167 * testsuite/Makefile.in: Regenerate.
168 * testsuite/keep_text_section_prefix.cc: New test source.
169 * testsuite/keep_text_section_prefix.sh: New test script.
171 2018-02-22 Sriraman Tallam <tmsriram@google.com>
173 * plugin.cc (get_wrap_symbols): New plugin interface.
174 (load): Add get_wrap_symbols to transfer vector.
175 * plugin-api.h (ld_plugin_get_wrap_symbols): New plugin interface.
176 * testsuite/plugin_test.c (onload): Call and check get_wrap_symbols
178 * testsuite/plugin_test_wrap_symbols.sh: New test script.
179 * testsuite/plugin_test_wrap_symbols_1.cc: New file.
180 * testsuite/plugin_test_wrap_symbols_2.cc: New file.
181 * testsuite/Makefile.am (plugin_test_wrap_symbols): New test.
182 * testsuite/Makefile.in: Regenerate.
184 2018-02-07 Sriraman Tallam <tmsriram@google.com>
186 * expression.cc (Symbol_expression::set_expr_sym_in_real_elf):
188 (Unary_expression::set_expr_sym_in_real_elf): New method.
189 (Binary_expression::set_expr_sym_in_real_elf): New method.
190 (Trinary_expression::set_expr_sym_in_real_elf): New method.
191 * plugin.cc (get_symbol_resolution_info): Fix symbol resolution if
192 defined or used in defsyms.
193 * plugin.h (Plugin_manager::is_defsym_def): New method.
194 (Plugin_manager::Plugin_manager): Initialize defsym_defines_set_.
195 (Plugin_manager::defsym_defines_set_): New member.
196 (Plugin_manager::Defsym_defines_set): New typedef.
197 * script.cc (Script_options::set_defsym_uses_in_real_elf): New method.
198 (Script_options::find_defsym_defs): New method.
199 * script.h (Expression::set_expr_sym_in_real_elf): New method.
200 (Symbol_assignment::is_defsym): New method.
201 (Symbol_assignment::value): New method.
202 (Script_options::find_defsym_defs): New method.
203 (Script_options::set_defsym_uses_in_real_elf): New method.
204 * testsuite/Makefile.am (plugin_test_defsym): New test.
205 * testsuite/Makefile.in: Regenerate.
206 * testsuite/plugin_test.c: Check for new symbol resolution.
207 * testsuite/plugin_test_defsym.sh: New script.
208 * testsuite/plugin_test_defsym.c: New test source.
210 2018-02-07 Alan Modra <amodra@gmail.com>
212 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
213 * options.h: Remove --speculate-indirect-jumps support.
214 * powerpc.cc: Likewise.
216 2018-02-02 Cary Coutant <ccoutant@gmail.com>
219 * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog): Add
220 support for DWARF-4 line number tables.
221 * dwarf_reader.h (Sized_dwarf_line_info::max_ops_per_insn): New field.
223 2018-01-18 Alan Modra <amodra@gmail.com>
225 * powerpc.cc (param_plt_align): New function supplying default
226 --plt-align values. Use it..
227 (Stub_table::plt_call_align): ..here, and..
228 (Output_data_glink::global_entry_align): ..here.
229 (Stub_table::stub_align): Correct 32-bit minimum alignment.
231 2018-01-17 Alan Modra <amodra@gmail.com>
233 * options.h (speculate_indirect_jumps): New option.
234 * powerpc.cc (beqctrm, beqctrlm, crseteq): New insn constants.
235 (output_bctr): New function.
236 (Stub_table::plt_call_size): Add space for speculation barrier.
237 (Stub_table::branch_stub_size): Likewise.
238 (Output_data_glink::pltresolve_size): Likewise.
239 (Stub_table::do_write): Output speculation barriers.
241 2018-01-17 Alan Modra <amodra@gmail.com>
243 * options.h (plt_align): Support for PowerPC32 too.
244 * powerpc.cc (Stub_table::stub_align): Heed --plt-align for 32-bit.
245 (Stub_table::plt_call_size, branch_stub_size): Tidy.
246 (Stub_table::plt_call_align): Implement using stub_align.
247 (Output_data_glink::global_entry_align): New function.
248 (Output_data_glink::global_entry_off): New function.
249 (Output_data_glink::global_entry_address): Use global_entry_off.
250 (Output_data_glink::pltresolve_size): New function, replacing
251 pltresolve_size_ constant. Update all uses.
252 (Output_data_glink::add_global_entry): Align offset.
253 (Output_data_glink::set_final_data_size): Use global_entry_align.
254 (Stub_table::do_write): Don't pad __glink_PLTrelsolve with nops.
255 Tidy stub output. Use global_entry_off.
257 2018-01-15 Cary Coutant <ccoutant@gmail.com>
260 * options.h (-fuse-ld): Add correct helparg.
262 2018-01-15 Nick Clifton <nickc@redhat.com>
264 * po/uk.po: Updated Ukranian translation.
266 2018-01-13 Nick Clifton <nickc@redhat.com>
268 * po/gold.pot: Regenerated.
270 2018-01-13 Nick Clifton <nickc@redhat.com>
274 2018-01-12 Cary Coutant <ccoutant@gmail.com>
276 * NEWS: Add new features in 1.15.
277 * version.cc (version_string): Bump to 1.15.
279 2018-01-12 Sterling Augustine <saugustine@google.com>
281 * cref.cc (Cref_inputs::Cref_table_compare::operator): Add
282 conditionals and calls to is_forwarder.
284 2018-01-03 Alan Modra <amodra@gmail.com>
286 Update year range in copyright notice of all files.
288 For older changes see ChangeLog-2017
290 Copyright (C) 2018 Free Software Foundation, Inc.
292 Copying and distribution of this file, with or without modification,
293 are permitted in any medium without royalty provided the copyright
294 notice and this notice are preserved.
300 version-control: never