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