Commit | Line | Data |
---|---|---|
c54b27d1 CC |
1 | 2018-04-05 Cary Coutant <ccoutant@gmail.com> |
2 | ||
3 | * target-reloc.h (relocate_section): Add local symbol index or global | |
4 | symbol name to warning about relocation that refers to discarded | |
5 | section. | |
6 | ||
494e49c9 CC |
7 | 2018-04-05 James Cowgill <james.cowgill@mips.com> |
8 | ||
9 | Revert previous patch and apply revised patch. | |
10 | ||
11 | PR gold/22770 | |
12 | * mips.cc (Mips_got_info::record_got_page_entry): Don't insert | |
13 | Got_page_entry for object's GOT. | |
14 | (Mips_got_info::add_got_page_entries): Add all pages from from's GOT. | |
15 | Rename to add_got_page_count. | |
16 | (Got_page_entry): Remove num_pages. | |
17 | ||
67faf1f4 JC |
18 | 2018-04-05 James Cowgill <james.cowgill@mips.com> |
19 | ||
20 | PR gold/22770 | |
21 | * mips.cc (Mips_got_info::record_got_page_entry): Fetch existing | |
22 | page entries for the object's GOT. | |
23 | ||
54483898 AM |
24 | 2018-04-05 Alan Modra <amodra@gmail.com> |
25 | ||
26 | * powerpc.cc (Target_powerpc::make_brlt_section): Make .branch_lt relro. | |
27 | ||
4fb0d2b9 NC |
28 | 2018-04-04 Nick Clifton <nickc@redhat.com> |
29 | ||
30 | * po/es.po: Updated Spanish translation. | |
31 | ||
bce5a025 CC |
32 | 2018-04-02 Cary Coutant <ccoutant@gmail.com> |
33 | ||
34 | PR gold/23016 | |
35 | * incremental.cc (can_incremental_update): Check for unwind section | |
36 | type. | |
37 | * layout.h (Layout::layout): Add sh_type parameter. | |
38 | * layout.cc (Layout::layout): Likewise. | |
39 | (Layout::layout_reloc): Create new output reloc section if data | |
40 | section does not already have one. | |
41 | (Layout::layout_eh_frame): Check for unwind section type. | |
42 | (Layout::make_eh_frame_section): Use unwind section type for .eh_frame | |
43 | and .eh_frame_hdr. | |
44 | * object.h (Sized_relobj_file::Shdr_write): New typedef. | |
45 | (Sized_relobj_file::layout_section): Add sh_type parameter. | |
46 | (Sized_relobj_file::Deferred_layout::Deferred_layout): Add sh_type | |
47 | parameter. | |
48 | * object.cc (Sized_relobj_file::check_eh_frame_flags): Check for | |
49 | unwind section type. | |
50 | (Sized_relobj_file::layout_section): Add sh_type parameter; pass it | |
51 | to Layout::layout. | |
52 | (Sized_relobj_file::do_layout): Make local copy of sh_type. | |
53 | Force .eh_frame sections to unwind section type. | |
54 | Pass sh_type to layout_section. | |
55 | (Sized_relobj_file<size, big_endian>::do_layout_deferred_sections): | |
56 | Pass sh_type to layout_section. | |
57 | * output.cc (Output_section::Output_section): Initialize reloc_section_. | |
58 | * output.h (Output_section::reloc_section): New method. | |
59 | (Output_section::set_reloc_section): New method. | |
60 | (Output_section::reloc_section_): New data member. | |
61 | * target.h (Target::unwind_section_type): New method. | |
62 | (Target::Target_info::unwind_section_type): New data member. | |
63 | ||
64 | * aarch64.cc (aarch64_info): Add unwind_section_type. | |
65 | * arm.cc (arm_info, arm_nacl_info): Likewise. | |
66 | * i386.cc (i386_info, i386_nacl_info, iamcu_info): Likewise. | |
67 | * mips.cc (mips_info, mips_nacl_info): Likewise. | |
68 | * powerpc.cc (powerpc_info): Likewise. | |
69 | * s390.cc (s390_info): Likewise. | |
70 | * sparc.cc (sparc_info): Likewise. | |
71 | * tilegx.cc (tilegx_info): Likewise. | |
72 | * x86_64.cc (x86_64_info, x86_64_nacl_info): Likewise. | |
73 | ||
74 | * testsuite/Makefile.am (pr23016_1, pr23016_2): New test cases. | |
75 | * testsuite/Makefile.in: Regenerate. | |
76 | * testsuite/testfile.cc: Add unwind_section_type. | |
77 | * testsuite/pr23016_1.sh: New test script. | |
78 | * testsuite/pr23016_1a.s: New source file. | |
79 | * testsuite/pr23016_1b.s: New source file. | |
80 | * testsuite/pr23016_2.sh: New test script. | |
81 | * testsuite/pr23016_2a.s: New source file. | |
82 | * testsuite/pr23016_2b.s: New source file. | |
83 | ||
24538276 CC |
84 | 2018-03-28 Cary Coutant <ccoutant@gmail.com> |
85 | ||
86 | PR gold/21423 | |
87 | PR gold/22500 | |
88 | * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS. | |
89 | Replace check for --enable-plugins with AC_PLUGINS. | |
90 | * options.cc (parse_plugin, parse_plugin_opt): Remove #ifdef. | |
91 | (General_options::finalize): Check if plugins enabled. | |
92 | * options.h (--plugin, --plugin-opt): Define even if plugins not | |
93 | enabled. | |
94 | * Makefile.in: Regenerate. | |
95 | * aclocal.m4: Regenerate. | |
96 | * configure: Regenerate. | |
97 | * testsuite/Makefile.in: Regenerate. | |
98 | ||
e82e6b2b CC |
99 | 2018-03-28 Cary Coutant <ccoutant@gmail.com> |
100 | ||
101 | PR gold/22969 | |
102 | * aarch64-reloc.def: Add TLSLE_LDST* relocations. | |
103 | * aarch64.cc (Target_aarch64::optimize_tls_reloc): Likewise. | |
104 | (Target_aarch64::Scan::local): Likewise. | |
105 | (Target_aarch64::Scan::global): Likewise. | |
106 | (Target_aarch64::Relocate::relocate): Likewise. | |
107 | (Target_aarch64::Relocate::relocate_tls): Likewise. | |
108 | ||
9c75b456 RM |
109 | 2018-03-27 Roland McGrath <mcgrathr@google.com> |
110 | ||
111 | * testsuite/split_x86_64.sh: Fix bad regexp. | |
112 | ||
0b7a4aa6 CC |
113 | 2018-03-26 Cary Coutant <ccoutant@gmail.com> |
114 | ||
0b7a4aa6 CC |
115 | PR gold/22868 |
116 | * plugin.cc (Sized_pluginobj::do_add_symbols): Use a real section | |
117 | index instead of SHN_ABS for defined symbols. | |
118 | * testsuite/Makefile.am (plugin_pr22868): New test case. | |
119 | * testsuite/Makefile.in: Regenerate | |
120 | * testsuite/plugin_pr22868.sh: New test script. | |
121 | * testsuite/plugin_pr22868_a.c: New source file. | |
122 | * testsuite/plugin_pr22868_b.c: New source file. | |
123 | ||
8da9a904 CC |
124 | 2018-03-23 Cary Coutant <ccoutant@gmail.com> |
125 | ||
126 | * plugin.cc (link_or_copy_file): Remove newlines from warning messages. | |
127 | Add pedantic check for return value from ::write. | |
128 | ||
3215deaa CC |
129 | 2018-03-23 Cary Coutant <ccoutant@gmail.com> |
130 | ||
131 | * debug.h (DEBUG_PLUGIN): New constant. | |
132 | (DEBUG_ALL): Add DEBUG_PLUGIN. | |
133 | (debug_string_to_enum): Likewise. | |
134 | * plugin.cc (make_sized_plugin_object): Add filename parameter. | |
135 | (Plugin_recorder): New class. | |
136 | (Plugin_manager::~Plugin_manager): Delete recorder_. | |
137 | (Plugin_manager::load_plugins): Create and initialize recorder_. | |
138 | (Plugin_manager::claim_file): Record claimed and unclaimed files. | |
139 | (Plugin_manager::make_plugin_object): Use object name as name for | |
140 | plugin object, if available. | |
141 | (Plugin_manager::add_input_file): Record replacement files. | |
142 | (Sized_pluginobj::do_add_symbols): Record plugin symbols. | |
143 | (Plugin_finish::run): Call Plugin_recorder::finish(). | |
144 | (make_sized_plugin_object): Add filename parameter and pass to | |
145 | Sized_pluginobj constructor. | |
146 | * plugin.h (Plugin::filename): New method. | |
147 | (Plugin::recorder): New method. | |
148 | (Plugin::recorder_): New data member. | |
149 | ||
779bdadb ST |
150 | 2018-03-07 Sriraman Tallam <tmsriram@google.com> |
151 | ||
152 | * layout.cc (Layout::default_section_order): Check for text section | |
153 | prefixes. | |
154 | (Layout::text_section_name_mapping): New static member. | |
155 | (Layout::text_section_name_mapping_count): New static member. | |
156 | (Layout::match_section_name): New static function. | |
157 | (Layout::output_section_name): Check for text section prefixes. | |
158 | * layout.h (Output_section_order::ORDER_TEXT_HOT): New enum value. | |
159 | (Output_section_order::ORDER_TEXT_STARTUP): New enum value. | |
160 | (Output_section_order::ORDER_TEXT_EXIT): New enum value. | |
161 | (Output_section_order::ORDER_TEXT_UNLIKELY): New enum value. | |
162 | (Layout::text_section_name_mapping): New static member. | |
163 | (Layout::text_section_name_mapping_count): New static member. | |
164 | (Layout::match_section_name): New static function. | |
165 | * options.h (keep_text_section_prefix): New -z option. | |
166 | * testsuite/Makefile.am (keep_text_section_prefix): New test. | |
167 | * testsuite/Makefile.in: Regenerate. | |
168 | * testsuite/keep_text_section_prefix.cc: New test source. | |
169 | * testsuite/keep_text_section_prefix.sh: New test script. | |
170 | ||
0b65c07b ST |
171 | 2018-02-22 Sriraman Tallam <tmsriram@google.com> |
172 | ||
173 | * plugin.cc (get_wrap_symbols): New plugin interface. | |
174 | (load): Add get_wrap_symbols to transfer vector. | |
175 | * plugin-api.h (ld_plugin_get_wrap_symbols): New plugin interface. | |
176 | * testsuite/plugin_test.c (onload): Call and check get_wrap_symbols | |
177 | interface. | |
178 | * testsuite/plugin_test_wrap_symbols.sh: New test script. | |
179 | * testsuite/plugin_test_wrap_symbols_1.cc: New file. | |
180 | * testsuite/plugin_test_wrap_symbols_2.cc: New file. | |
181 | * testsuite/Makefile.am (plugin_test_wrap_symbols): New test. | |
182 | * testsuite/Makefile.in: Regenerate. | |
183 | ||
3281b315 ST |
184 | 2018-02-07 Sriraman Tallam <tmsriram@google.com> |
185 | ||
186 | * expression.cc (Symbol_expression::set_expr_sym_in_real_elf): | |
187 | New method. | |
188 | (Unary_expression::set_expr_sym_in_real_elf): New method. | |
189 | (Binary_expression::set_expr_sym_in_real_elf): New method. | |
190 | (Trinary_expression::set_expr_sym_in_real_elf): New method. | |
191 | * plugin.cc (get_symbol_resolution_info): Fix symbol resolution if | |
192 | defined or used in defsyms. | |
193 | * plugin.h (Plugin_manager::is_defsym_def): New method. | |
194 | (Plugin_manager::Plugin_manager): Initialize defsym_defines_set_. | |
195 | (Plugin_manager::defsym_defines_set_): New member. | |
196 | (Plugin_manager::Defsym_defines_set): New typedef. | |
197 | * script.cc (Script_options::set_defsym_uses_in_real_elf): New method. | |
198 | (Script_options::find_defsym_defs): New method. | |
199 | * script.h (Expression::set_expr_sym_in_real_elf): New method. | |
200 | (Symbol_assignment::is_defsym): New method. | |
201 | (Symbol_assignment::value): New method. | |
202 | (Script_options::find_defsym_defs): New method. | |
203 | (Script_options::set_defsym_uses_in_real_elf): New method. | |
204 | * testsuite/Makefile.am (plugin_test_defsym): New test. | |
205 | * testsuite/Makefile.in: Regenerate. | |
206 | * testsuite/plugin_test.c: Check for new symbol resolution. | |
207 | * testsuite/plugin_test_defsym.sh: New script. | |
208 | * testsuite/plugin_test_defsym.c: New test source. | |
209 | ||
407aa07c AM |
210 | 2018-02-07 Alan Modra <amodra@gmail.com> |
211 | ||
212 | Revert 2018-01-17 Alan Modra <amodra@gmail.com> | |
213 | * options.h: Remove --speculate-indirect-jumps support. | |
214 | * powerpc.cc: Likewise. | |
215 | ||
c8334458 CC |
216 | 2018-02-02 Cary Coutant <ccoutant@gmail.com> |
217 | ||
218 | * PR gold/22776 | |
219 | * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog): Add | |
220 | support for DWARF-4 line number tables. | |
221 | * dwarf_reader.h (Sized_dwarf_line_info::max_ops_per_insn): New field. | |
222 | ||
691d2e9a AM |
223 | 2018-01-18 Alan Modra <amodra@gmail.com> |
224 | ||
225 | * powerpc.cc (param_plt_align): New function supplying default | |
226 | --plt-align values. Use it.. | |
227 | (Stub_table::plt_call_align): ..here, and.. | |
228 | (Output_data_glink::global_entry_align): ..here. | |
229 | (Stub_table::stub_align): Correct 32-bit minimum alignment. | |
230 | ||
1be5d8d3 AM |
231 | 2018-01-17 Alan Modra <amodra@gmail.com> |
232 | ||
233 | * options.h (speculate_indirect_jumps): New option. | |
234 | * powerpc.cc (beqctrm, beqctrlm, crseteq): New insn constants. | |
235 | (output_bctr): New function. | |
236 | (Stub_table::plt_call_size): Add space for speculation barrier. | |
237 | (Stub_table::branch_stub_size): Likewise. | |
238 | (Output_data_glink::pltresolve_size): Likewise. | |
239 | (Stub_table::do_write): Output speculation barriers. | |
240 | ||
9e390558 AM |
241 | 2018-01-17 Alan Modra <amodra@gmail.com> |
242 | ||
243 | * options.h (plt_align): Support for PowerPC32 too. | |
244 | * powerpc.cc (Stub_table::stub_align): Heed --plt-align for 32-bit. | |
245 | (Stub_table::plt_call_size, branch_stub_size): Tidy. | |
246 | (Stub_table::plt_call_align): Implement using stub_align. | |
247 | (Output_data_glink::global_entry_align): New function. | |
248 | (Output_data_glink::global_entry_off): New function. | |
249 | (Output_data_glink::global_entry_address): Use global_entry_off. | |
250 | (Output_data_glink::pltresolve_size): New function, replacing | |
251 | pltresolve_size_ constant. Update all uses. | |
252 | (Output_data_glink::add_global_entry): Align offset. | |
253 | (Output_data_glink::set_final_data_size): Use global_entry_align. | |
254 | (Stub_table::do_write): Don't pad __glink_PLTrelsolve with nops. | |
255 | Tidy stub output. Use global_entry_off. | |
256 | ||
930b5f8b CC |
257 | 2018-01-15 Cary Coutant <ccoutant@gmail.com> |
258 | ||
259 | PR gold/22694 | |
260 | * options.h (-fuse-ld): Add correct helparg. | |
261 | ||
616dcb87 NC |
262 | 2018-01-15 Nick Clifton <nickc@redhat.com> |
263 | ||
264 | * po/uk.po: Updated Ukranian translation. | |
265 | ||
3957a496 NC |
266 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
267 | ||
268 | * po/gold.pot: Regenerated. | |
269 | ||
faf766e3 NC |
270 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
271 | ||
272 | 2.30 branch created. | |
273 | ||
27f7b092 CC |
274 | 2018-01-12 Cary Coutant <ccoutant@gmail.com> |
275 | ||
276 | * NEWS: Add new features in 1.15. | |
277 | * version.cc (version_string): Bump to 1.15. | |
278 | ||
279 | 2018-01-12 Sterling Augustine <saugustine@google.com> | |
b4b07ef1 EC |
280 | |
281 | * cref.cc (Cref_inputs::Cref_table_compare::operator): Add | |
282 | conditionals and calls to is_forwarder. | |
283 | ||
219d1afa AM |
284 | 2018-01-03 Alan Modra <amodra@gmail.com> |
285 | ||
286 | Update year range in copyright notice of all files. | |
287 | ||
1e563868 | 288 | For older changes see ChangeLog-2017 |
3499769a | 289 | \f |
1e563868 | 290 | Copyright (C) 2018 Free Software Foundation, Inc. |
3499769a AM |
291 | |
292 | Copying and distribution of this file, with or without modification, | |
293 | are permitted in any medium without royalty provided the copyright | |
294 | notice and this notice are preserved. | |
295 | ||
296 | Local Variables: | |
297 | mode: change-log | |
298 | left-margin: 8 | |
299 | fill-column: 74 | |
300 | version-control: never | |
301 | End: |