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