Commit | Line | Data |
---|---|---|
a2575bec CC |
1 | 2018-06-22 Cary Coutant <ccoutant@gmail.com> |
2 | ||
3 | PR gold/22914 | |
4 | * layout.cc (read_sized_value): Fix spelling of section name. | |
5 | (Layout::layout_gnu_property): Call Sized_target::record_gnu_property | |
6 | for target-specific properties; | |
7 | don't store them with target-independent properties yet. | |
8 | (Layout::merge_gnu_properties): New method. | |
9 | (Layout::add_gnu_property): New method. | |
10 | (Layout::create_gnu_properties_note): Call target to finalize | |
11 | target-specific properties. Fix spelling of output section name. | |
12 | * layout.h (Layout::merge_gnu_properties): New method. | |
13 | (Layout::add_gnu_property): New method. | |
14 | * object.cc (Sized_relobj_file::do_layout): Call | |
15 | Layout::merge_gnu_properties. | |
16 | * target.h (Target::merge_gnu_property): Remove. | |
17 | (Target::finalize_gnu_properties): New method. | |
18 | (Target::do_merge_gnu_property): Move to Sized_target and rename. | |
19 | (Target::do_finalize_gnu_properties): New virtual method. | |
20 | (Sized_target::record_gnu_property): Moved and renamed from | |
21 | Target::do_merge_gnu_property. | |
22 | (Sized_target::merge_gnu_properties): New virtual method. | |
23 | * x86_64.cc (Target_x86_64::isa_1_used_, isa_1_needed_) | |
24 | (feature_1_, object_feature_1_, seen_first_object_): New data members. | |
25 | (Target_x86_64::do_merge_gnu_property): Rename to ... | |
26 | (Target_x86_64::record_gnu_property): ... this. Save target-specific | |
27 | properties in Target class object. | |
28 | (Target_x86_64::merge_gnu_properties): New method. | |
29 | (add_property): New static inline function. | |
30 | (Target_x86_64::do_finalize_gnu_properties): New method. | |
31 | * testsuite/Makefile.am (gnu_property_test): Remove C source file; | |
32 | link directly without compiler driver. | |
33 | * testsuite/Makefile.in: Regenerate. | |
34 | * testsuite/gnu_property_a.S: Add _start. | |
35 | ||
a1893a82 CC |
36 | 2018-06-22 Cary Coutant <ccoutant@gmail.com> |
37 | ||
38 | * incremental.cc (Sized_incremental_binary::setup_readers): Use | |
39 | emplace_back for GCC 5 and later. | |
40 | * incremental.h (Incremental_binary::Input_reader): Provide copy | |
41 | constructor. | |
42 | (Sized_incremental_binary::Sized_input_reader): Likewise. | |
43 | ||
6c04fd9b CC |
44 | 2018-06-22 Cary Coutant <ccoutant@gmail.com> |
45 | ||
46 | PR gold/22914 | |
47 | * layout.cc (Layout::Layout): Initialize gnu_properties_. | |
48 | (read_sized_value, write_sized_value): New functions. | |
49 | (Layout::layout_gnu_property): New method. | |
50 | (Layout::create_notes): Call create_gnu_properties_note. | |
51 | (Layout::create_gnu_properties_note): New method. | |
52 | * layout.h (Layout::layout_gnu_property): New method. | |
53 | (Layout::create_gnu_properties_note): New method. | |
54 | (Layout::Gnu_property, Layout::Gnu_properties): New types. | |
55 | (Layout::gnu_properties_): New data member. | |
56 | * object.cc (Sized_relobj_file::layout_gnu_property_section): New | |
57 | method. | |
58 | (Sized_relobj_file::do_layout): Handle .note.gnu.property sections. | |
59 | * object.h (Sized_relobj_file::layout_gnu_property_section): New | |
60 | method. | |
61 | * target.h (Target::merge_gnu_property): New method. | |
62 | (Target::do_merge_gnu_property): New virtual method. | |
63 | * x86_64.cc (Target_x86_64::do_merge_gnu_property): New method. | |
64 | * testsuite/Makefile.am (gnu_property_test): New test case. | |
65 | * testsuite/Makefile.in: Regenerate. | |
66 | * testsuite/gnu_property_a.S: New source file. | |
67 | * testsuite/gnu_property_b.S: New source file. | |
68 | * testsuite/gnu_property_c.S: New source file. | |
69 | * testsuite/gnu_property_main.c: New source file. | |
70 | * testsuite/gnu_property_test.sh: New test script. | |
71 | ||
cea6ffbd CC |
72 | 2018-06-21 Cary Coutant <ccoutant@gmail.com> |
73 | ||
74 | * resolve.cc (Symbol_table::resolve): Rename tobinding to | |
75 | orig_tobinding. Call set_is_needed() for objects that resolve | |
76 | non-weak references. | |
77 | (Symbol_table::should_override): Allow a dynamic definition to | |
78 | override an earlier one in a not-needed library. | |
79 | * symtab.cc (Symbol_table::set_dynsym_indexes): Remove separate | |
80 | processing for as-needed symbols. Add warning when discarding | |
81 | version informatin. | |
82 | * testsuite/Makefile.am (weak_as_needed): New test case. | |
83 | * testsuite/Makefile.in: Regenerate. | |
84 | * testsuite/weak_as_needed.sh: New test script. | |
85 | * testsuite/weak_as_needed_a.c: New source file. | |
86 | * testsuite/weak_as_needed_b.c: New source file. | |
87 | * testsuite/weak_as_needed_b.script: New version script. | |
88 | * testsuite/weak_as_needed_c.c: New source file. | |
89 | * testsuite/weak_as_needed_c.script: New version script. | |
90 | ||
ebb13322 CC |
91 | 2018-06-20 Cary Coutant <ccoutant@gmail.com> |
92 | ||
93 | PR gold/23268 | |
94 | * dynobj.cc (Versions::Versions): Change init for needs_base_version_. | |
95 | (Versions::record_version): Add verdefs for both shared objects and | |
96 | executables. | |
97 | (Versions::add_def): Likewise for base version. | |
98 | (Versions::add_need): Don't add base version for executables. | |
99 | (Versions::version_index): Look up version for both shared objects and | |
100 | executables. | |
101 | * testsuite/Makefile.am (ver_test_14): New test case. | |
102 | * testsuite/Makefile.in: Regenerate. | |
103 | * testsuite/ver_test_14.script: New version script. | |
104 | * testsuite/ver_test_14.sh: New test script. | |
105 | ||
c8dc28bc CC |
106 | 2018-06-19 Joshua Watt <jpewhacker@gmail.com> |
107 | Cary Coutant <ccoutant@gmail.com> | |
108 | ||
109 | * configure.ac: Replace manual thread configuration with AX_PTHREAD. | |
110 | Add --enable-threads=auto. | |
111 | * Makefile.am (THREADFLAGS, THREADLIBS): New defines. | |
4ef2c1b9 | 112 | (AM_CFLAGS, AM_CXXFLAGS): Add $(THREADFLAGS). |
c8dc28bc CC |
113 | (THREADSLIB): Remove; change all references to THREADLIBS. |
114 | * Makefile.in: Regenerate. | |
115 | * aclocal.m4: Regenerate. | |
116 | * config.in: Regenerate. | |
117 | * configure: Regenerate. | |
118 | * testsuite/Makefile.am (THREADSLIB): Replace with... | |
119 | (THREADFLAGS, THREADLIBS): ... these. | |
120 | (LDADD): Remove; add as individual defines for... | |
121 | (object_unittest, binary_unittest, leb128_unittest) | |
122 | (overflow_unittest): ... these tests. | |
123 | (tls_test, tls_pic_test, tls_pie_test, tls_pie_pic_test) | |
124 | (tls_shared_test, tls_shared_ie_test, tls_shared_gd_to_ie_test) | |
125 | (tls_shared_gnu2_gd_to_ie_test, tls_shared_gnu2_test_LDFLAGS) | |
126 | (tls_shared_nonpic_test_LDFLAGS): Add $(THREADFLAGS) and ($THREADLIBS). | |
127 | * testsuite/Makefile.in: Regenerate. | |
128 | ||
27ab0424 CC |
129 | 2018-06-19 Cary Coutant <ccoutant@gmail.com> |
130 | ||
131 | * testsuite/Makefile.am (MOSTLYCLEANFILES): Add *.stderr. | |
132 | * testsuite/Makefile.in: Regenerate. | |
133 | ||
d0ac1c44 SM |
134 | 2018-06-19 Simon Marchi <simon.marchi@ericsson.com> |
135 | ||
136 | * configure.ac: Remove AC_PREREQ, add missing quoting and usage | |
137 | of AC_LANG_SOURCE. | |
138 | * Makefile.in: Re-generate. | |
139 | * aclocal.m4: Re-generate. | |
140 | * configure: Re-generate. | |
141 | * testsuite/Makefile.in: Re-generate. | |
142 | ||
a45a8f91 SC |
143 | 2018-05-10 Stephen Crane <sjc@immunant.com> |
144 | ||
145 | * aarch64.cc (Target_aarch64::do_finalize_sections): Use size of | |
146 | .got section for the _GLOBAL_OFFSET_TABLE_ symbol computation. | |
147 | ||
651d1620 CC |
148 | 2018-04-24 Cary Coutant <ccoutant@gmail.com> |
149 | ||
150 | PR gold/20642 | |
151 | PR gold/22820 | |
152 | * gc.h (gc_process_relocs): Flag STT_SECTION symbols in symvec. | |
153 | * icf.cc (get_section_contents): For merge sections, ignore the | |
154 | addend for relocations against non-section symbols. | |
155 | ||
890d1555 CC |
156 | 2018-04-24 Cary Coutant <ccoutant@gmail.com> |
157 | ||
158 | PR gold/16504 | |
159 | * dynobj.cc (Versions::symbol_section_contents): Don't set | |
160 | VERSYM_HIDDEN flag for undefined symbols. | |
161 | * symtab.cc (Symbol_table::add_from_object): Don't override default | |
162 | version definition with a different default version. | |
163 | * symtab.h (Symbol::from_dyn): New method. | |
164 | * testsuite/plugin_test.c (struct sym_info): Add ver field. | |
165 | (claim_file_hook): Pass symbol version to plugin API. | |
166 | (parse_readelf_line): Parse symbol version. | |
167 | * testsuite/Makefile.am (ver_test_pr16504): New test case. | |
168 | * testsuite/Makefile.in: Regenerate. | |
169 | * testsuite/ver_test_pr16504.sh: New test script. | |
170 | * testsuite/ver_test_pr16504_a.c: New source file. | |
171 | * testsuite/ver_test_pr16504_a.script: New version script. | |
172 | * testsuite/ver_test_pr16504_b.c: New source file. | |
173 | * testsuite/ver_test_pr16504_b.script: New version script. | |
174 | ||
d83d5403 CC |
175 | 2018-04-19 Cary Coutant <ccoutant@gmail.com> |
176 | ||
177 | PR gold/23046 | |
178 | * gc.h (gc_process_relocs): Pass target to | |
179 | scan.local_reloc_may_be_function_pointer. | |
180 | ||
f792cedd NC |
181 | 2018-04-18 Nick Clifton <nickc@redhat.com> |
182 | ||
183 | * po/es.po: Updated Spanish translation. | |
184 | ||
aae82809 CC |
185 | 2018-04-14 Cary Coutant <ccoutant@gmail.com> |
186 | ||
187 | PR gold/23046 | |
188 | * gc.h (gc_process_relocs): Pass target to | |
189 | scan.global_reloc_may_be_function_pointer. | |
190 | ||
c4a614e2 AM |
191 | 2018-04-09 Alan Modra <amodra@gmail.com> |
192 | ||
193 | * configure: Regenerate. | |
194 | ||
23cedd1d AM |
195 | 2018-04-09 Alan Modra <amodra@gmail.com> |
196 | ||
197 | * powerpc.cc (Target_powerpc::Track_tls::maybe_skip_tls_get_addr_call): | |
198 | Handle inline plt sequence relocs. | |
199 | (Stub_table::Plt_stub_key::Plt_stub_key): Likewise. | |
200 | (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Likewise. | |
201 | (Target_powerpc::Relocate::relocate): Likewise. | |
202 | ||
2d7ad24e AM |
203 | 2018-04-09 Alan Modra <amodra@gmail.com> |
204 | ||
205 | * powerpc.cc (Target_powerpc::lplt_): New variable. | |
206 | (Target_powerpc::lplt_section): Associated accessor. | |
207 | (Target_powerpc::plt_off): Handle local non-ifunc symbols. | |
208 | (Target_powerpc::make_lplt_section): New function. | |
209 | (Target_powerpc::make_local_plt_entry): New function. | |
210 | (Powerpc_relobj::do_relocate_sections): Write out lplt. | |
211 | (Output_data_plt_powerpc::first_plt_entry_offset): Zero for lplt. | |
212 | (Output_data_plt_powerpc::add_local_entry): New function. | |
213 | (Output_data_plt_powerpc::do_write): Ignore lplt. | |
214 | (Target_powerpc::make_iplt_section): Make lplt first. | |
215 | (Target_powerpc::make_brlt_section): Make .branch_lt relro. | |
216 | (Target_powerpc::Scan::local): Handle PLT16 relocs. | |
217 | ||
08be3224 AM |
218 | 2018-04-09 Alan Modra <amodra@gmail.com> |
219 | ||
220 | * powerpc.cc (Target_powerpc::plt_off): New functions. | |
221 | (is_plt16_reloc): New function. | |
222 | (Stub_table::plt_off): Use Target_powerpc::plt_off. | |
223 | (Stub_table::plt_call_size): Use plt_off. | |
224 | (Stub_table::do_write): Likewise. | |
225 | (Target_powerpc::Scan::get_reference_flags): Return RELATIVE_REF | |
226 | for PLT16 relocations. | |
227 | (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Return true | |
228 | for PLT16 relocations. | |
229 | (Target_powerpc::Scan::global): Make a PLT entry for PLT16 relocations. | |
230 | (Target_powerpc::Relocate::relocate): Support PLT16 relocations. | |
231 | (Powerpc_scan_relocatable_reloc::global_strategy): Return RELOC_SPECIAL | |
232 | for ppc32 plt16 relocs. | |
233 | ||
43193fe9 CC |
234 | 2018-04-06 Cary Coutant <ccoutant@gmail.com> |
235 | ||
236 | * object.cc (Sized_relobj_file::include_section_group): Store | |
237 | reference to Kept_section info for discarded comdat sections | |
238 | regardless of size. Move size checking to map_to_kept_section. | |
239 | (Sized_relobj_file::include_linkonce_section): Likewise. | |
240 | (Sized_relobj_file::map_to_kept_section): Add section name parameter. | |
241 | Insert size checking logic from above functions. | |
242 | (Sized_relobj_file::find_kept_section_object): New method. | |
243 | (Sized_relobj_file::get_symbol_name): New method. | |
244 | * object.h (Sized_relobj_file::map_to_kept_section): Add section_name | |
245 | parameter. Adjust all callers. | |
246 | (Sized_relobj_file::find_kept_section_object): New method. | |
247 | (Sized_relobj_file::get_symbol_name): New method. | |
248 | (Sized_relobj_file::Kept_comdat_section): Replace object and shndx | |
249 | fields with sh_size, kept_section, symndx, and is_comdat fields. | |
250 | (Sized_relobj_file::set_kept_comdat_section): Replace kept_object | |
251 | and kept_shndx parameters with is_comdat, symndx, sh_size, and | |
252 | kept_section. | |
253 | (Sized_relobj_file::get_kept_comdat_section): Likewise. | |
254 | * target-reloc.h (enum Comdat_behavior): Change CB_WARNING to CB_ERROR. | |
255 | Adjust all references. | |
256 | (issue_undefined_symbol_error): New function template. | |
257 | (relocate_section): Pass section name to map_to_kept_section. | |
258 | Move discarded section code to new function above. | |
259 | * aarch64.cc (Target_aarch64::scan_reloc_section_for_stubs): Move | |
260 | declaration for gsym out one level. Call issue_discarded_error. | |
261 | * arm.cc (Target_arm::scan_reloc_section_for_stubs): Likewise. | |
262 | * powerpc.cc (Relocate_comdat_behavior): Change CB_WARNING to CB_ERROR. | |
263 | ||
c54b27d1 CC |
264 | 2018-04-05 Cary Coutant <ccoutant@gmail.com> |
265 | ||
266 | * target-reloc.h (relocate_section): Add local symbol index or global | |
267 | symbol name to warning about relocation that refers to discarded | |
268 | section. | |
269 | ||
494e49c9 CC |
270 | 2018-04-05 James Cowgill <james.cowgill@mips.com> |
271 | ||
272 | Revert previous patch and apply revised patch. | |
273 | ||
274 | PR gold/22770 | |
275 | * mips.cc (Mips_got_info::record_got_page_entry): Don't insert | |
276 | Got_page_entry for object's GOT. | |
277 | (Mips_got_info::add_got_page_entries): Add all pages from from's GOT. | |
278 | Rename to add_got_page_count. | |
279 | (Got_page_entry): Remove num_pages. | |
280 | ||
67faf1f4 JC |
281 | 2018-04-05 James Cowgill <james.cowgill@mips.com> |
282 | ||
283 | PR gold/22770 | |
284 | * mips.cc (Mips_got_info::record_got_page_entry): Fetch existing | |
285 | page entries for the object's GOT. | |
286 | ||
54483898 AM |
287 | 2018-04-05 Alan Modra <amodra@gmail.com> |
288 | ||
289 | * powerpc.cc (Target_powerpc::make_brlt_section): Make .branch_lt relro. | |
290 | ||
4fb0d2b9 NC |
291 | 2018-04-04 Nick Clifton <nickc@redhat.com> |
292 | ||
293 | * po/es.po: Updated Spanish translation. | |
294 | ||
bce5a025 CC |
295 | 2018-04-02 Cary Coutant <ccoutant@gmail.com> |
296 | ||
297 | PR gold/23016 | |
298 | * incremental.cc (can_incremental_update): Check for unwind section | |
299 | type. | |
300 | * layout.h (Layout::layout): Add sh_type parameter. | |
301 | * layout.cc (Layout::layout): Likewise. | |
302 | (Layout::layout_reloc): Create new output reloc section if data | |
303 | section does not already have one. | |
304 | (Layout::layout_eh_frame): Check for unwind section type. | |
305 | (Layout::make_eh_frame_section): Use unwind section type for .eh_frame | |
306 | and .eh_frame_hdr. | |
307 | * object.h (Sized_relobj_file::Shdr_write): New typedef. | |
308 | (Sized_relobj_file::layout_section): Add sh_type parameter. | |
309 | (Sized_relobj_file::Deferred_layout::Deferred_layout): Add sh_type | |
310 | parameter. | |
311 | * object.cc (Sized_relobj_file::check_eh_frame_flags): Check for | |
312 | unwind section type. | |
313 | (Sized_relobj_file::layout_section): Add sh_type parameter; pass it | |
314 | to Layout::layout. | |
315 | (Sized_relobj_file::do_layout): Make local copy of sh_type. | |
316 | Force .eh_frame sections to unwind section type. | |
317 | Pass sh_type to layout_section. | |
318 | (Sized_relobj_file<size, big_endian>::do_layout_deferred_sections): | |
319 | Pass sh_type to layout_section. | |
320 | * output.cc (Output_section::Output_section): Initialize reloc_section_. | |
321 | * output.h (Output_section::reloc_section): New method. | |
322 | (Output_section::set_reloc_section): New method. | |
323 | (Output_section::reloc_section_): New data member. | |
324 | * target.h (Target::unwind_section_type): New method. | |
325 | (Target::Target_info::unwind_section_type): New data member. | |
326 | ||
327 | * aarch64.cc (aarch64_info): Add unwind_section_type. | |
328 | * arm.cc (arm_info, arm_nacl_info): Likewise. | |
329 | * i386.cc (i386_info, i386_nacl_info, iamcu_info): Likewise. | |
330 | * mips.cc (mips_info, mips_nacl_info): Likewise. | |
331 | * powerpc.cc (powerpc_info): Likewise. | |
332 | * s390.cc (s390_info): Likewise. | |
333 | * sparc.cc (sparc_info): Likewise. | |
334 | * tilegx.cc (tilegx_info): Likewise. | |
335 | * x86_64.cc (x86_64_info, x86_64_nacl_info): Likewise. | |
336 | ||
337 | * testsuite/Makefile.am (pr23016_1, pr23016_2): New test cases. | |
338 | * testsuite/Makefile.in: Regenerate. | |
339 | * testsuite/testfile.cc: Add unwind_section_type. | |
340 | * testsuite/pr23016_1.sh: New test script. | |
341 | * testsuite/pr23016_1a.s: New source file. | |
342 | * testsuite/pr23016_1b.s: New source file. | |
343 | * testsuite/pr23016_2.sh: New test script. | |
344 | * testsuite/pr23016_2a.s: New source file. | |
345 | * testsuite/pr23016_2b.s: New source file. | |
346 | ||
24538276 CC |
347 | 2018-03-28 Cary Coutant <ccoutant@gmail.com> |
348 | ||
349 | PR gold/21423 | |
350 | PR gold/22500 | |
351 | * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS. | |
352 | Replace check for --enable-plugins with AC_PLUGINS. | |
353 | * options.cc (parse_plugin, parse_plugin_opt): Remove #ifdef. | |
354 | (General_options::finalize): Check if plugins enabled. | |
355 | * options.h (--plugin, --plugin-opt): Define even if plugins not | |
356 | enabled. | |
357 | * Makefile.in: Regenerate. | |
358 | * aclocal.m4: Regenerate. | |
359 | * configure: Regenerate. | |
360 | * testsuite/Makefile.in: Regenerate. | |
361 | ||
e82e6b2b CC |
362 | 2018-03-28 Cary Coutant <ccoutant@gmail.com> |
363 | ||
364 | PR gold/22969 | |
365 | * aarch64-reloc.def: Add TLSLE_LDST* relocations. | |
366 | * aarch64.cc (Target_aarch64::optimize_tls_reloc): Likewise. | |
367 | (Target_aarch64::Scan::local): Likewise. | |
368 | (Target_aarch64::Scan::global): Likewise. | |
369 | (Target_aarch64::Relocate::relocate): Likewise. | |
370 | (Target_aarch64::Relocate::relocate_tls): Likewise. | |
371 | ||
9c75b456 RM |
372 | 2018-03-27 Roland McGrath <mcgrathr@google.com> |
373 | ||
374 | * testsuite/split_x86_64.sh: Fix bad regexp. | |
375 | ||
0b7a4aa6 CC |
376 | 2018-03-26 Cary Coutant <ccoutant@gmail.com> |
377 | ||
0b7a4aa6 CC |
378 | PR gold/22868 |
379 | * plugin.cc (Sized_pluginobj::do_add_symbols): Use a real section | |
380 | index instead of SHN_ABS for defined symbols. | |
381 | * testsuite/Makefile.am (plugin_pr22868): New test case. | |
382 | * testsuite/Makefile.in: Regenerate | |
383 | * testsuite/plugin_pr22868.sh: New test script. | |
384 | * testsuite/plugin_pr22868_a.c: New source file. | |
385 | * testsuite/plugin_pr22868_b.c: New source file. | |
386 | ||
8da9a904 CC |
387 | 2018-03-23 Cary Coutant <ccoutant@gmail.com> |
388 | ||
389 | * plugin.cc (link_or_copy_file): Remove newlines from warning messages. | |
390 | Add pedantic check for return value from ::write. | |
391 | ||
3215deaa CC |
392 | 2018-03-23 Cary Coutant <ccoutant@gmail.com> |
393 | ||
394 | * debug.h (DEBUG_PLUGIN): New constant. | |
395 | (DEBUG_ALL): Add DEBUG_PLUGIN. | |
396 | (debug_string_to_enum): Likewise. | |
397 | * plugin.cc (make_sized_plugin_object): Add filename parameter. | |
398 | (Plugin_recorder): New class. | |
399 | (Plugin_manager::~Plugin_manager): Delete recorder_. | |
400 | (Plugin_manager::load_plugins): Create and initialize recorder_. | |
401 | (Plugin_manager::claim_file): Record claimed and unclaimed files. | |
402 | (Plugin_manager::make_plugin_object): Use object name as name for | |
403 | plugin object, if available. | |
404 | (Plugin_manager::add_input_file): Record replacement files. | |
405 | (Sized_pluginobj::do_add_symbols): Record plugin symbols. | |
406 | (Plugin_finish::run): Call Plugin_recorder::finish(). | |
407 | (make_sized_plugin_object): Add filename parameter and pass to | |
408 | Sized_pluginobj constructor. | |
409 | * plugin.h (Plugin::filename): New method. | |
410 | (Plugin::recorder): New method. | |
411 | (Plugin::recorder_): New data member. | |
412 | ||
779bdadb ST |
413 | 2018-03-07 Sriraman Tallam <tmsriram@google.com> |
414 | ||
415 | * layout.cc (Layout::default_section_order): Check for text section | |
416 | prefixes. | |
417 | (Layout::text_section_name_mapping): New static member. | |
418 | (Layout::text_section_name_mapping_count): New static member. | |
419 | (Layout::match_section_name): New static function. | |
420 | (Layout::output_section_name): Check for text section prefixes. | |
421 | * layout.h (Output_section_order::ORDER_TEXT_HOT): New enum value. | |
422 | (Output_section_order::ORDER_TEXT_STARTUP): New enum value. | |
423 | (Output_section_order::ORDER_TEXT_EXIT): New enum value. | |
424 | (Output_section_order::ORDER_TEXT_UNLIKELY): New enum value. | |
425 | (Layout::text_section_name_mapping): New static member. | |
426 | (Layout::text_section_name_mapping_count): New static member. | |
427 | (Layout::match_section_name): New static function. | |
428 | * options.h (keep_text_section_prefix): New -z option. | |
429 | * testsuite/Makefile.am (keep_text_section_prefix): New test. | |
430 | * testsuite/Makefile.in: Regenerate. | |
431 | * testsuite/keep_text_section_prefix.cc: New test source. | |
432 | * testsuite/keep_text_section_prefix.sh: New test script. | |
433 | ||
0b65c07b ST |
434 | 2018-02-22 Sriraman Tallam <tmsriram@google.com> |
435 | ||
436 | * plugin.cc (get_wrap_symbols): New plugin interface. | |
437 | (load): Add get_wrap_symbols to transfer vector. | |
438 | * plugin-api.h (ld_plugin_get_wrap_symbols): New plugin interface. | |
439 | * testsuite/plugin_test.c (onload): Call and check get_wrap_symbols | |
440 | interface. | |
441 | * testsuite/plugin_test_wrap_symbols.sh: New test script. | |
442 | * testsuite/plugin_test_wrap_symbols_1.cc: New file. | |
443 | * testsuite/plugin_test_wrap_symbols_2.cc: New file. | |
444 | * testsuite/Makefile.am (plugin_test_wrap_symbols): New test. | |
445 | * testsuite/Makefile.in: Regenerate. | |
446 | ||
3281b315 ST |
447 | 2018-02-07 Sriraman Tallam <tmsriram@google.com> |
448 | ||
449 | * expression.cc (Symbol_expression::set_expr_sym_in_real_elf): | |
450 | New method. | |
451 | (Unary_expression::set_expr_sym_in_real_elf): New method. | |
452 | (Binary_expression::set_expr_sym_in_real_elf): New method. | |
453 | (Trinary_expression::set_expr_sym_in_real_elf): New method. | |
454 | * plugin.cc (get_symbol_resolution_info): Fix symbol resolution if | |
455 | defined or used in defsyms. | |
456 | * plugin.h (Plugin_manager::is_defsym_def): New method. | |
457 | (Plugin_manager::Plugin_manager): Initialize defsym_defines_set_. | |
458 | (Plugin_manager::defsym_defines_set_): New member. | |
459 | (Plugin_manager::Defsym_defines_set): New typedef. | |
460 | * script.cc (Script_options::set_defsym_uses_in_real_elf): New method. | |
461 | (Script_options::find_defsym_defs): New method. | |
462 | * script.h (Expression::set_expr_sym_in_real_elf): New method. | |
463 | (Symbol_assignment::is_defsym): New method. | |
464 | (Symbol_assignment::value): New method. | |
465 | (Script_options::find_defsym_defs): New method. | |
466 | (Script_options::set_defsym_uses_in_real_elf): New method. | |
467 | * testsuite/Makefile.am (plugin_test_defsym): New test. | |
468 | * testsuite/Makefile.in: Regenerate. | |
469 | * testsuite/plugin_test.c: Check for new symbol resolution. | |
470 | * testsuite/plugin_test_defsym.sh: New script. | |
471 | * testsuite/plugin_test_defsym.c: New test source. | |
472 | ||
407aa07c AM |
473 | 2018-02-07 Alan Modra <amodra@gmail.com> |
474 | ||
475 | Revert 2018-01-17 Alan Modra <amodra@gmail.com> | |
476 | * options.h: Remove --speculate-indirect-jumps support. | |
477 | * powerpc.cc: Likewise. | |
478 | ||
c8334458 CC |
479 | 2018-02-02 Cary Coutant <ccoutant@gmail.com> |
480 | ||
481 | * PR gold/22776 | |
482 | * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog): Add | |
483 | support for DWARF-4 line number tables. | |
484 | * dwarf_reader.h (Sized_dwarf_line_info::max_ops_per_insn): New field. | |
485 | ||
691d2e9a AM |
486 | 2018-01-18 Alan Modra <amodra@gmail.com> |
487 | ||
488 | * powerpc.cc (param_plt_align): New function supplying default | |
489 | --plt-align values. Use it.. | |
490 | (Stub_table::plt_call_align): ..here, and.. | |
491 | (Output_data_glink::global_entry_align): ..here. | |
492 | (Stub_table::stub_align): Correct 32-bit minimum alignment. | |
493 | ||
1be5d8d3 AM |
494 | 2018-01-17 Alan Modra <amodra@gmail.com> |
495 | ||
496 | * options.h (speculate_indirect_jumps): New option. | |
497 | * powerpc.cc (beqctrm, beqctrlm, crseteq): New insn constants. | |
498 | (output_bctr): New function. | |
499 | (Stub_table::plt_call_size): Add space for speculation barrier. | |
500 | (Stub_table::branch_stub_size): Likewise. | |
501 | (Output_data_glink::pltresolve_size): Likewise. | |
502 | (Stub_table::do_write): Output speculation barriers. | |
503 | ||
9e390558 AM |
504 | 2018-01-17 Alan Modra <amodra@gmail.com> |
505 | ||
506 | * options.h (plt_align): Support for PowerPC32 too. | |
507 | * powerpc.cc (Stub_table::stub_align): Heed --plt-align for 32-bit. | |
508 | (Stub_table::plt_call_size, branch_stub_size): Tidy. | |
509 | (Stub_table::plt_call_align): Implement using stub_align. | |
510 | (Output_data_glink::global_entry_align): New function. | |
511 | (Output_data_glink::global_entry_off): New function. | |
512 | (Output_data_glink::global_entry_address): Use global_entry_off. | |
513 | (Output_data_glink::pltresolve_size): New function, replacing | |
514 | pltresolve_size_ constant. Update all uses. | |
515 | (Output_data_glink::add_global_entry): Align offset. | |
516 | (Output_data_glink::set_final_data_size): Use global_entry_align. | |
517 | (Stub_table::do_write): Don't pad __glink_PLTrelsolve with nops. | |
518 | Tidy stub output. Use global_entry_off. | |
519 | ||
930b5f8b CC |
520 | 2018-01-15 Cary Coutant <ccoutant@gmail.com> |
521 | ||
522 | PR gold/22694 | |
523 | * options.h (-fuse-ld): Add correct helparg. | |
524 | ||
616dcb87 NC |
525 | 2018-01-15 Nick Clifton <nickc@redhat.com> |
526 | ||
527 | * po/uk.po: Updated Ukranian translation. | |
528 | ||
3957a496 NC |
529 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
530 | ||
531 | * po/gold.pot: Regenerated. | |
532 | ||
faf766e3 NC |
533 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
534 | ||
535 | 2.30 branch created. | |
536 | ||
27f7b092 CC |
537 | 2018-01-12 Cary Coutant <ccoutant@gmail.com> |
538 | ||
539 | * NEWS: Add new features in 1.15. | |
540 | * version.cc (version_string): Bump to 1.15. | |
541 | ||
542 | 2018-01-12 Sterling Augustine <saugustine@google.com> | |
b4b07ef1 EC |
543 | |
544 | * cref.cc (Cref_inputs::Cref_table_compare::operator): Add | |
545 | conditionals and calls to is_forwarder. | |
546 | ||
219d1afa AM |
547 | 2018-01-03 Alan Modra <amodra@gmail.com> |
548 | ||
549 | Update year range in copyright notice of all files. | |
550 | ||
1e563868 | 551 | For older changes see ChangeLog-2017 |
3499769a | 552 | \f |
1e563868 | 553 | Copyright (C) 2018 Free Software Foundation, Inc. |
3499769a AM |
554 | |
555 | Copying and distribution of this file, with or without modification, | |
556 | are permitted in any medium without royalty provided the copyright | |
557 | notice and this notice are preserved. | |
558 | ||
559 | Local Variables: | |
560 | mode: change-log | |
561 | left-margin: 8 | |
562 | fill-column: 74 | |
563 | version-control: never | |
564 | End: |