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