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