Fix problem where mixed section types can cause internal error during a -r link.
[deliverable/binutils-gdb.git] / gold / ChangeLog
CommitLineData
bce5a025
CC
12018-04-02 Cary Coutant <ccoutant@gmail.com>
2
3 PR gold/23016
4 * incremental.cc (can_incremental_update): Check for unwind section
5 type.
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
12 and .eh_frame_hdr.
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
16 parameter.
17 * object.cc (Sized_relobj_file::check_eh_frame_flags): Check for
18 unwind section type.
19 (Sized_relobj_file::layout_section): Add sh_type parameter; pass it
20 to Layout::layout.
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.
32
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.
42
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.
52
24538276
CC
532018-03-28 Cary Coutant <ccoutant@gmail.com>
54
55 PR gold/21423
56 PR gold/22500
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
62 enabled.
63 * Makefile.in: Regenerate.
64 * aclocal.m4: Regenerate.
65 * configure: Regenerate.
66 * testsuite/Makefile.in: Regenerate.
67
e82e6b2b
CC
682018-03-28 Cary Coutant <ccoutant@gmail.com>
69
70 PR gold/22969
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.
77
9c75b456
RM
782018-03-27 Roland McGrath <mcgrathr@google.com>
79
80 * testsuite/split_x86_64.sh: Fix bad regexp.
81
0b7a4aa6
CC
822018-03-26 Cary Coutant <ccoutant@gmail.com>
83
0b7a4aa6
CC
84 PR gold/22868
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.
92
8da9a904
CC
932018-03-23 Cary Coutant <ccoutant@gmail.com>
94
95 * plugin.cc (link_or_copy_file): Remove newlines from warning messages.
96 Add pedantic check for return value from ::write.
97
3215deaa
CC
982018-03-23 Cary Coutant <ccoutant@gmail.com>
99
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.
118
779bdadb
ST
1192018-03-07 Sriraman Tallam <tmsriram@google.com>
120
121 * layout.cc (Layout::default_section_order): Check for text section
122 prefixes.
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.
139
0b65c07b
ST
1402018-02-22 Sriraman Tallam <tmsriram@google.com>
141
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
146 interface.
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.
152
3281b315
ST
1532018-02-07 Sriraman Tallam <tmsriram@google.com>
154
155 * expression.cc (Symbol_expression::set_expr_sym_in_real_elf):
156 New method.
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.
178
407aa07c
AM
1792018-02-07 Alan Modra <amodra@gmail.com>
180
181 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
182 * options.h: Remove --speculate-indirect-jumps support.
183 * powerpc.cc: Likewise.
184
c8334458
CC
1852018-02-02 Cary Coutant <ccoutant@gmail.com>
186
187 * PR gold/22776
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.
191
691d2e9a
AM
1922018-01-18 Alan Modra <amodra@gmail.com>
193
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.
199
1be5d8d3
AM
2002018-01-17 Alan Modra <amodra@gmail.com>
201
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.
209
9e390558
AM
2102018-01-17 Alan Modra <amodra@gmail.com>
211
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.
225
930b5f8b
CC
2262018-01-15 Cary Coutant <ccoutant@gmail.com>
227
228 PR gold/22694
229 * options.h (-fuse-ld): Add correct helparg.
230
616dcb87
NC
2312018-01-15 Nick Clifton <nickc@redhat.com>
232
233 * po/uk.po: Updated Ukranian translation.
234
3957a496
NC
2352018-01-13 Nick Clifton <nickc@redhat.com>
236
237 * po/gold.pot: Regenerated.
238
faf766e3
NC
2392018-01-13 Nick Clifton <nickc@redhat.com>
240
241 2.30 branch created.
242
27f7b092
CC
2432018-01-12 Cary Coutant <ccoutant@gmail.com>
244
245 * NEWS: Add new features in 1.15.
246 * version.cc (version_string): Bump to 1.15.
247
2482018-01-12 Sterling Augustine <saugustine@google.com>
b4b07ef1
EC
249
250 * cref.cc (Cref_inputs::Cref_table_compare::operator): Add
251 conditionals and calls to is_forwarder.
252
219d1afa
AM
2532018-01-03 Alan Modra <amodra@gmail.com>
254
255 Update year range in copyright notice of all files.
256
1e563868 257For older changes see ChangeLog-2017
3499769a 258\f
1e563868 259Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
260
261Copying and distribution of this file, with or without modification,
262are permitted in any medium without royalty provided the copyright
263notice and this notice are preserved.
264
265Local Variables:
266mode: change-log
267left-margin: 8
268fill-column: 74
269version-control: never
270End:
This page took 0.123485 seconds and 4 git commands to generate.