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