gold: Get alignment of uncompressed section from ch_addralign
[deliverable/binutils-gdb.git] / gold / ChangeLog
1 2018-12-02 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR binutils/23919
4 * merge.cc (Output_merge_string<Char_type>::do_add_input_section):
5 Get addralign from decompressed_section_contents.
6 * object.cc (build_compressed_section_map): Set info.addralign.
7 (Object::decompressed_section_contents): Add a palign
8 argument and store p->second.addralign in *palign if it isn't
9 NULL.
10 * object.h (Compressed_section_info): Add addralign.
11 (section_is_compressed): Add a palign argument, default it
12 to NULL, store p->second.addralign in *palign if it isn't NULL.
13 (Object::decompressed_section_contents): Likewise.
14 * output.cc (Output_section::add_input_section): Get addralign
15 from section_is_compressed.
16
17 2018-11-26 Alan Modra <amodra@gmail.com>
18
19 * testsuite/Makefile.am (justsyms_lib): Link with -z norelro.
20 * testsuite/Makefile.in: Regenerate.
21 * testsuite/justsyms_exec.c (main): Do check exported_func
22 on PowerPC64 ELFv2.
23
24 2018-11-26 Alan Modra <amodra@gmail.com>
25
26 * testsuite/ver_test_14.sh: Accept objdump -T display of st_other
27 bits on powerpc64le.
28
29 2018-11-08 Alan Modra <amodra@gmail.com>
30
31 * Makefile.am (gcctestdir1/ld): Use $@ and absolute paths.
32 (gcctestdir1/collect-ld): New.
33 (ld1_DEPENDENCIES): Add gcctestdir1/collect-ld.
34 (ld1_LDFLAGS): Remove -Bgcctestdir1/.
35 (editcc1, ld1_LINK): Define.
36 (gcctestdir2/ld, gcctestdir2/collect-ld, ld2_DEPENDENCIES),
37 (ld2_LDFLAGS, editcc2, ld2_LINK),
38 (ld1_r_DEPENDENCIES, ld1_r_LDFLAGS, ld1_r_LINK),
39 (gcctestdir2-r/ld, gcctestdir2-r/collect-ld, ld2_r_DEPENDENCIES),
40 (ld2_r_LDFLAGS, editcc2r, ld2_r_LINK),
41 (gcctestdir3/ld, gcctestdir3/collect-ld, ld3_DEPENDENCIES),
42 (ld3_LDFLAGS, editcc3, ld3_LINK),
43 (gcctestdir4/ld, gcctestdir4/collect-ld, ld4_DEPENDENCIES),
44 (ld4_LDFLAGS, editcc4, ld4_LINK): Similarly.
45 * Makefile.in: Regenerate.
46 * testsuite/Makefile.am (editcc): Define sed command to put
47 our -B option first. Remove other occurrences of -Bgcctestdir/
48 throughout file.
49 (editcc1): Define for -D_FORTIFY_SOURCE stripping.
50 (editcc2): Define for -static-libgcc/libstdc++ stripping.
51 (LINK1, CXXLINK1): Don't use CCLD or CXXLD.
52 (CCLD, CXXLD, COMPILE, LINK, CXXCOMPILE, CXXLINK, CXXLINK_S): Define
53 using editcc macros.
54 (gcctestdir/collect-ld): New rule, add as a dependency of..
55 (gcctestdir/ld): ..this. Use $@ and abs_top_buildir.
56 (gcctestdir/as): Use $@.
57 * testsuite/Makefile.in: Regenerate.
58 * testsuite/incremental_test.sh (actual): Match collect-ld too.
59
60 2018-11-02 Alan Modra <amodra@gmail.com>
61
62 * Makefile.am (MOSTLYCLEANFILES): Define.
63 * Makefile.in: Regnerate.
64 * testsuite/Makefile.am (MOSTLYCLEANFILES): Add ver_test_14 and
65 gnu_property_test.
66 * testsuite/Makefile.in: Regnerate.
67
68 2018-10-16 Cherry Zhang <cherryyz@google.com>
69
70 PR 23769
71 * gold.cc (queue_middle_tasks): Correct split-stack error message.
72
73 2018-08-29 Chenghua Xu <paul.hua.gm@gmail.com>
74
75 * mips.cc (Mips_mach, add_machine_extensions, elf_mips_mach):
76 Rename loongson3a to gs464.
77 (mips_isa_ext_mach, mips_isa_ext): Delete loongson3a.
78 (infer_abiflags): Use ases instead of isa_ext for infer ABI
79 flags.
80 (elf_mips_mach_name): Rename loongson3a to gs464.
81
82 2018-07-10 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
83
84 * object.cc (Sized_relobj_file::map_to_kept_section): Initialize
85 kept_file.
86
87 2018-08-07 Cary Coutant <ccoutant@gmail.com>
88
89 PR ld/23486
90 * x86_64.cc (Target_x86_64::Target_x86_64): Initialize
91 object_isa_1_used_.
92 (Target_x86_64::object_isa_1_used_): New data member.
93 (Target_x86_64::record_gnu_property): Save ISA_1_USED bits for object.
94 (Target_x86_64::merge_gnu_properties): Merge ISA_1_USED bits.
95
96 2018-08-06 Cary Coutant <ccoutant@gmail.com>
97
98 PR gold/23455
99 * options.h (General_options): Add --warn-drop-version option.
100 * symtab.cc (Symbol_table::set_dynsym_indexes): Check it.
101
102 2018-08-06 Cary Coutant <ccoutant@gmail.com>
103
104 * target.h (Sized_target::record_gnu_property): Change first two
105 parameters to unsigned int.
106 * x86_64.cc (Target_x86_64::record_gnu_property): Likewise.
107
108 2018-07-30 Nick Clifton <nickc@redhat.com>
109
110 * layout.cc (section_name_mapping): Add an entry for
111 .gnu.build.attributes.
112
113 2018-07-18 Nick Clifton <nickc@redhat.com>
114
115 * po/fr.po: Updated French translation.
116
117 2018-07-14 Cary Coutant <ccoutant@gmail.com>
118
119 PR gold/23397
120 * object.cc (Sized_relobj_file::do_layout): Mark section as deferred.
121 * testsuite/Makefile.am (plugin_test_1): Add --emit-relocs option to
122 existing test case.
123 * testsuite/Makefile.in: Regenerate.
124
125 2018-07-14 Cary Coutant <ccoutant@gmail.com>
126
127 PR gold/23409
128 * symtab.cc (Symbol_table::define_special_symbol): Add check for
129 version name on existing symbol.
130 * testsuite/Makefile.am (ver_test_pr23409): New test case.
131 * testsuite/Makefile.in: Regenerate.
132 * testsuite/ver_test_pr23409.sh: New test script.
133 * testsuite/ver_test_pr23409_1.script: New version script.
134 * testsuite/ver_test_pr23409_2.script: New version script.
135
136 2018-07-11 Franz Sirl <franz.sirl-kernel@lauterbach.com>
137
138 * main.cc (main): Print m.arena as long long.
139
140 2018-07-09 Cary Coutant <ccoutant@gmail.com>
141
142 * incremental.cc (Sized_incremental_binary::setup_readers): Use
143 emplace_back for C++ 11 or later.
144
145 2018-07-06 Alan Modra <amodra@gmail.com>
146
147 * powerpc.cc: Include attributes.h.
148 (Powerpc_relobj::attributes_section_data_): New variable, with
149 accessor and associated constructor and destructor support.
150 (Powerpc_dynobj::attributes_section_data_): Likewise.
151 (Powerpc_relobj::do_read_symbols): Stash SHT_GNU_ATTRIBUTES section
152 contents in attributes_section_data_.
153 (Powerpc_dynobj::do_read_symbols): Likewise.
154 (Target_powerpc): Add attributes_section_data_, last_fp_, last_ld_,
155 last_vec_, and last_struct_ vars.
156 (Target_powerpc::merge_object_attributes): New function.
157 (Target_powerpc::do_finalize_sections): Iterate over input objects
158 merging attributes. Create output attributes section.
159
160 2018-06-26 Nick Clifton <nickc@redhat.com>
161
162 * po/uk.po: Updated Ukranian translation.
163
164 2018-06-24 Nick Clifton <nickc@redhat.com>
165
166 * po/gold.pot: Regenerate.
167
168 2018-06-24 Nick Clifton <nickc@redhat.com>
169
170 2.31 branch created.
171
172 2018-06-23 Cary Coutant <ccoutant@gmail.com>
173
174 * version.cc (version_string): Bump to 1.16.
175 * NEWS: Add new features in 1.16.
176
177 2018-06-23 Cary Coutant <ccoutant@gmail.com>
178
179 PR gold/22914
180 * x86_64.cc (Target_x86_64::record_gnu_property): Initialize val.
181
182 2018-06-23 Cary Coutant <ccoutant@gmail.com>
183
184 PR gold/22915
185 * x86_64.cc (Output_data_plt_x86_64_ibt): New class.
186 (Target_x86_64::do_make_data_plt): (All instantiations) Check for
187 IBT feature bit and create IBT PLTs.
188
189 2018-06-22 Cary Coutant <ccoutant@gmail.com>
190
191 PR gold/22914
192 * layout.cc (read_sized_value): Fix spelling of section name.
193 (Layout::layout_gnu_property): Call Sized_target::record_gnu_property
194 for target-specific properties;
195 don't store them with target-independent properties yet.
196 (Layout::merge_gnu_properties): New method.
197 (Layout::add_gnu_property): New method.
198 (Layout::create_gnu_properties_note): Call target to finalize
199 target-specific properties. Fix spelling of output section name.
200 * layout.h (Layout::merge_gnu_properties): New method.
201 (Layout::add_gnu_property): New method.
202 * object.cc (Sized_relobj_file::do_layout): Call
203 Layout::merge_gnu_properties.
204 * target.h (Target::merge_gnu_property): Remove.
205 (Target::finalize_gnu_properties): New method.
206 (Target::do_merge_gnu_property): Move to Sized_target and rename.
207 (Target::do_finalize_gnu_properties): New virtual method.
208 (Sized_target::record_gnu_property): Moved and renamed from
209 Target::do_merge_gnu_property.
210 (Sized_target::merge_gnu_properties): New virtual method.
211 * x86_64.cc (Target_x86_64::isa_1_used_, isa_1_needed_)
212 (feature_1_, object_feature_1_, seen_first_object_): New data members.
213 (Target_x86_64::do_merge_gnu_property): Rename to ...
214 (Target_x86_64::record_gnu_property): ... this. Save target-specific
215 properties in Target class object.
216 (Target_x86_64::merge_gnu_properties): New method.
217 (add_property): New static inline function.
218 (Target_x86_64::do_finalize_gnu_properties): New method.
219 * testsuite/Makefile.am (gnu_property_test): Remove C source file;
220 link directly without compiler driver.
221 * testsuite/Makefile.in: Regenerate.
222 * testsuite/gnu_property_a.S: Add _start.
223
224 2018-06-22 Cary Coutant <ccoutant@gmail.com>
225
226 * incremental.cc (Sized_incremental_binary::setup_readers): Use
227 emplace_back for GCC 5 and later.
228 * incremental.h (Incremental_binary::Input_reader): Provide copy
229 constructor.
230 (Sized_incremental_binary::Sized_input_reader): Likewise.
231
232 2018-06-22 Cary Coutant <ccoutant@gmail.com>
233
234 PR gold/22914
235 * layout.cc (Layout::Layout): Initialize gnu_properties_.
236 (read_sized_value, write_sized_value): New functions.
237 (Layout::layout_gnu_property): New method.
238 (Layout::create_notes): Call create_gnu_properties_note.
239 (Layout::create_gnu_properties_note): New method.
240 * layout.h (Layout::layout_gnu_property): New method.
241 (Layout::create_gnu_properties_note): New method.
242 (Layout::Gnu_property, Layout::Gnu_properties): New types.
243 (Layout::gnu_properties_): New data member.
244 * object.cc (Sized_relobj_file::layout_gnu_property_section): New
245 method.
246 (Sized_relobj_file::do_layout): Handle .note.gnu.property sections.
247 * object.h (Sized_relobj_file::layout_gnu_property_section): New
248 method.
249 * target.h (Target::merge_gnu_property): New method.
250 (Target::do_merge_gnu_property): New virtual method.
251 * x86_64.cc (Target_x86_64::do_merge_gnu_property): New method.
252 * testsuite/Makefile.am (gnu_property_test): New test case.
253 * testsuite/Makefile.in: Regenerate.
254 * testsuite/gnu_property_a.S: New source file.
255 * testsuite/gnu_property_b.S: New source file.
256 * testsuite/gnu_property_c.S: New source file.
257 * testsuite/gnu_property_main.c: New source file.
258 * testsuite/gnu_property_test.sh: New test script.
259
260 2018-06-21 Cary Coutant <ccoutant@gmail.com>
261
262 * resolve.cc (Symbol_table::resolve): Rename tobinding to
263 orig_tobinding. Call set_is_needed() for objects that resolve
264 non-weak references.
265 (Symbol_table::should_override): Allow a dynamic definition to
266 override an earlier one in a not-needed library.
267 * symtab.cc (Symbol_table::set_dynsym_indexes): Remove separate
268 processing for as-needed symbols. Add warning when discarding
269 version informatin.
270 * testsuite/Makefile.am (weak_as_needed): New test case.
271 * testsuite/Makefile.in: Regenerate.
272 * testsuite/weak_as_needed.sh: New test script.
273 * testsuite/weak_as_needed_a.c: New source file.
274 * testsuite/weak_as_needed_b.c: New source file.
275 * testsuite/weak_as_needed_b.script: New version script.
276 * testsuite/weak_as_needed_c.c: New source file.
277 * testsuite/weak_as_needed_c.script: New version script.
278
279 2018-06-20 Cary Coutant <ccoutant@gmail.com>
280
281 PR gold/23268
282 * dynobj.cc (Versions::Versions): Change init for needs_base_version_.
283 (Versions::record_version): Add verdefs for both shared objects and
284 executables.
285 (Versions::add_def): Likewise for base version.
286 (Versions::add_need): Don't add base version for executables.
287 (Versions::version_index): Look up version for both shared objects and
288 executables.
289 * testsuite/Makefile.am (ver_test_14): New test case.
290 * testsuite/Makefile.in: Regenerate.
291 * testsuite/ver_test_14.script: New version script.
292 * testsuite/ver_test_14.sh: New test script.
293
294 2018-06-19 Joshua Watt <jpewhacker@gmail.com>
295 Cary Coutant <ccoutant@gmail.com>
296
297 * configure.ac: Replace manual thread configuration with AX_PTHREAD.
298 Add --enable-threads=auto.
299 * Makefile.am (THREADFLAGS, THREADLIBS): New defines.
300 (AM_CFLAGS, AM_CXXFLAGS): Add $(THREADFLAGS).
301 (THREADSLIB): Remove; change all references to THREADLIBS.
302 * Makefile.in: Regenerate.
303 * aclocal.m4: Regenerate.
304 * config.in: Regenerate.
305 * configure: Regenerate.
306 * testsuite/Makefile.am (THREADSLIB): Replace with...
307 (THREADFLAGS, THREADLIBS): ... these.
308 (LDADD): Remove; add as individual defines for...
309 (object_unittest, binary_unittest, leb128_unittest)
310 (overflow_unittest): ... these tests.
311 (tls_test, tls_pic_test, tls_pie_test, tls_pie_pic_test)
312 (tls_shared_test, tls_shared_ie_test, tls_shared_gd_to_ie_test)
313 (tls_shared_gnu2_gd_to_ie_test, tls_shared_gnu2_test_LDFLAGS)
314 (tls_shared_nonpic_test_LDFLAGS): Add $(THREADFLAGS) and ($THREADLIBS).
315 * testsuite/Makefile.in: Regenerate.
316
317 2018-06-19 Cary Coutant <ccoutant@gmail.com>
318
319 * testsuite/Makefile.am (MOSTLYCLEANFILES): Add *.stderr.
320 * testsuite/Makefile.in: Regenerate.
321
322 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
323
324 * configure.ac: Remove AC_PREREQ, add missing quoting and usage
325 of AC_LANG_SOURCE.
326 * Makefile.in: Re-generate.
327 * aclocal.m4: Re-generate.
328 * configure: Re-generate.
329 * testsuite/Makefile.in: Re-generate.
330
331 2018-05-10 Stephen Crane <sjc@immunant.com>
332
333 * aarch64.cc (Target_aarch64::do_finalize_sections): Use size of
334 .got section for the _GLOBAL_OFFSET_TABLE_ symbol computation.
335
336 2018-04-24 Cary Coutant <ccoutant@gmail.com>
337
338 PR gold/20642
339 PR gold/22820
340 * gc.h (gc_process_relocs): Flag STT_SECTION symbols in symvec.
341 * icf.cc (get_section_contents): For merge sections, ignore the
342 addend for relocations against non-section symbols.
343
344 2018-04-24 Cary Coutant <ccoutant@gmail.com>
345
346 PR gold/16504
347 * dynobj.cc (Versions::symbol_section_contents): Don't set
348 VERSYM_HIDDEN flag for undefined symbols.
349 * symtab.cc (Symbol_table::add_from_object): Don't override default
350 version definition with a different default version.
351 * symtab.h (Symbol::from_dyn): New method.
352 * testsuite/plugin_test.c (struct sym_info): Add ver field.
353 (claim_file_hook): Pass symbol version to plugin API.
354 (parse_readelf_line): Parse symbol version.
355 * testsuite/Makefile.am (ver_test_pr16504): New test case.
356 * testsuite/Makefile.in: Regenerate.
357 * testsuite/ver_test_pr16504.sh: New test script.
358 * testsuite/ver_test_pr16504_a.c: New source file.
359 * testsuite/ver_test_pr16504_a.script: New version script.
360 * testsuite/ver_test_pr16504_b.c: New source file.
361 * testsuite/ver_test_pr16504_b.script: New version script.
362
363 2018-04-19 Cary Coutant <ccoutant@gmail.com>
364
365 PR gold/23046
366 * gc.h (gc_process_relocs): Pass target to
367 scan.local_reloc_may_be_function_pointer.
368
369 2018-04-18 Nick Clifton <nickc@redhat.com>
370
371 * po/es.po: Updated Spanish translation.
372
373 2018-04-14 Cary Coutant <ccoutant@gmail.com>
374
375 PR gold/23046
376 * gc.h (gc_process_relocs): Pass target to
377 scan.global_reloc_may_be_function_pointer.
378
379 2018-04-09 Alan Modra <amodra@gmail.com>
380
381 * configure: Regenerate.
382
383 2018-04-09 Alan Modra <amodra@gmail.com>
384
385 * powerpc.cc (Target_powerpc::Track_tls::maybe_skip_tls_get_addr_call):
386 Handle inline plt sequence relocs.
387 (Stub_table::Plt_stub_key::Plt_stub_key): Likewise.
388 (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Likewise.
389 (Target_powerpc::Relocate::relocate): Likewise.
390
391 2018-04-09 Alan Modra <amodra@gmail.com>
392
393 * powerpc.cc (Target_powerpc::lplt_): New variable.
394 (Target_powerpc::lplt_section): Associated accessor.
395 (Target_powerpc::plt_off): Handle local non-ifunc symbols.
396 (Target_powerpc::make_lplt_section): New function.
397 (Target_powerpc::make_local_plt_entry): New function.
398 (Powerpc_relobj::do_relocate_sections): Write out lplt.
399 (Output_data_plt_powerpc::first_plt_entry_offset): Zero for lplt.
400 (Output_data_plt_powerpc::add_local_entry): New function.
401 (Output_data_plt_powerpc::do_write): Ignore lplt.
402 (Target_powerpc::make_iplt_section): Make lplt first.
403 (Target_powerpc::make_brlt_section): Make .branch_lt relro.
404 (Target_powerpc::Scan::local): Handle PLT16 relocs.
405
406 2018-04-09 Alan Modra <amodra@gmail.com>
407
408 * powerpc.cc (Target_powerpc::plt_off): New functions.
409 (is_plt16_reloc): New function.
410 (Stub_table::plt_off): Use Target_powerpc::plt_off.
411 (Stub_table::plt_call_size): Use plt_off.
412 (Stub_table::do_write): Likewise.
413 (Target_powerpc::Scan::get_reference_flags): Return RELATIVE_REF
414 for PLT16 relocations.
415 (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Return true
416 for PLT16 relocations.
417 (Target_powerpc::Scan::global): Make a PLT entry for PLT16 relocations.
418 (Target_powerpc::Relocate::relocate): Support PLT16 relocations.
419 (Powerpc_scan_relocatable_reloc::global_strategy): Return RELOC_SPECIAL
420 for ppc32 plt16 relocs.
421
422 2018-04-06 Cary Coutant <ccoutant@gmail.com>
423
424 * object.cc (Sized_relobj_file::include_section_group): Store
425 reference to Kept_section info for discarded comdat sections
426 regardless of size. Move size checking to map_to_kept_section.
427 (Sized_relobj_file::include_linkonce_section): Likewise.
428 (Sized_relobj_file::map_to_kept_section): Add section name parameter.
429 Insert size checking logic from above functions.
430 (Sized_relobj_file::find_kept_section_object): New method.
431 (Sized_relobj_file::get_symbol_name): New method.
432 * object.h (Sized_relobj_file::map_to_kept_section): Add section_name
433 parameter. Adjust all callers.
434 (Sized_relobj_file::find_kept_section_object): New method.
435 (Sized_relobj_file::get_symbol_name): New method.
436 (Sized_relobj_file::Kept_comdat_section): Replace object and shndx
437 fields with sh_size, kept_section, symndx, and is_comdat fields.
438 (Sized_relobj_file::set_kept_comdat_section): Replace kept_object
439 and kept_shndx parameters with is_comdat, symndx, sh_size, and
440 kept_section.
441 (Sized_relobj_file::get_kept_comdat_section): Likewise.
442 * target-reloc.h (enum Comdat_behavior): Change CB_WARNING to CB_ERROR.
443 Adjust all references.
444 (issue_undefined_symbol_error): New function template.
445 (relocate_section): Pass section name to map_to_kept_section.
446 Move discarded section code to new function above.
447 * aarch64.cc (Target_aarch64::scan_reloc_section_for_stubs): Move
448 declaration for gsym out one level. Call issue_discarded_error.
449 * arm.cc (Target_arm::scan_reloc_section_for_stubs): Likewise.
450 * powerpc.cc (Relocate_comdat_behavior): Change CB_WARNING to CB_ERROR.
451
452 2018-04-05 Cary Coutant <ccoutant@gmail.com>
453
454 * target-reloc.h (relocate_section): Add local symbol index or global
455 symbol name to warning about relocation that refers to discarded
456 section.
457
458 2018-04-05 James Cowgill <james.cowgill@mips.com>
459
460 Revert previous patch and apply revised patch.
461
462 PR gold/22770
463 * mips.cc (Mips_got_info::record_got_page_entry): Don't insert
464 Got_page_entry for object's GOT.
465 (Mips_got_info::add_got_page_entries): Add all pages from from's GOT.
466 Rename to add_got_page_count.
467 (Got_page_entry): Remove num_pages.
468
469 2018-04-05 James Cowgill <james.cowgill@mips.com>
470
471 PR gold/22770
472 * mips.cc (Mips_got_info::record_got_page_entry): Fetch existing
473 page entries for the object's GOT.
474
475 2018-04-05 Alan Modra <amodra@gmail.com>
476
477 * powerpc.cc (Target_powerpc::make_brlt_section): Make .branch_lt relro.
478
479 2018-04-04 Nick Clifton <nickc@redhat.com>
480
481 * po/es.po: Updated Spanish translation.
482
483 2018-04-02 Cary Coutant <ccoutant@gmail.com>
484
485 PR gold/23016
486 * incremental.cc (can_incremental_update): Check for unwind section
487 type.
488 * layout.h (Layout::layout): Add sh_type parameter.
489 * layout.cc (Layout::layout): Likewise.
490 (Layout::layout_reloc): Create new output reloc section if data
491 section does not already have one.
492 (Layout::layout_eh_frame): Check for unwind section type.
493 (Layout::make_eh_frame_section): Use unwind section type for .eh_frame
494 and .eh_frame_hdr.
495 * object.h (Sized_relobj_file::Shdr_write): New typedef.
496 (Sized_relobj_file::layout_section): Add sh_type parameter.
497 (Sized_relobj_file::Deferred_layout::Deferred_layout): Add sh_type
498 parameter.
499 * object.cc (Sized_relobj_file::check_eh_frame_flags): Check for
500 unwind section type.
501 (Sized_relobj_file::layout_section): Add sh_type parameter; pass it
502 to Layout::layout.
503 (Sized_relobj_file::do_layout): Make local copy of sh_type.
504 Force .eh_frame sections to unwind section type.
505 Pass sh_type to layout_section.
506 (Sized_relobj_file<size, big_endian>::do_layout_deferred_sections):
507 Pass sh_type to layout_section.
508 * output.cc (Output_section::Output_section): Initialize reloc_section_.
509 * output.h (Output_section::reloc_section): New method.
510 (Output_section::set_reloc_section): New method.
511 (Output_section::reloc_section_): New data member.
512 * target.h (Target::unwind_section_type): New method.
513 (Target::Target_info::unwind_section_type): New data member.
514
515 * aarch64.cc (aarch64_info): Add unwind_section_type.
516 * arm.cc (arm_info, arm_nacl_info): Likewise.
517 * i386.cc (i386_info, i386_nacl_info, iamcu_info): Likewise.
518 * mips.cc (mips_info, mips_nacl_info): Likewise.
519 * powerpc.cc (powerpc_info): Likewise.
520 * s390.cc (s390_info): Likewise.
521 * sparc.cc (sparc_info): Likewise.
522 * tilegx.cc (tilegx_info): Likewise.
523 * x86_64.cc (x86_64_info, x86_64_nacl_info): Likewise.
524
525 * testsuite/Makefile.am (pr23016_1, pr23016_2): New test cases.
526 * testsuite/Makefile.in: Regenerate.
527 * testsuite/testfile.cc: Add unwind_section_type.
528 * testsuite/pr23016_1.sh: New test script.
529 * testsuite/pr23016_1a.s: New source file.
530 * testsuite/pr23016_1b.s: New source file.
531 * testsuite/pr23016_2.sh: New test script.
532 * testsuite/pr23016_2a.s: New source file.
533 * testsuite/pr23016_2b.s: New source file.
534
535 2018-03-28 Cary Coutant <ccoutant@gmail.com>
536
537 PR gold/21423
538 PR gold/22500
539 * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS.
540 Replace check for --enable-plugins with AC_PLUGINS.
541 * options.cc (parse_plugin, parse_plugin_opt): Remove #ifdef.
542 (General_options::finalize): Check if plugins enabled.
543 * options.h (--plugin, --plugin-opt): Define even if plugins not
544 enabled.
545 * Makefile.in: Regenerate.
546 * aclocal.m4: Regenerate.
547 * configure: Regenerate.
548 * testsuite/Makefile.in: Regenerate.
549
550 2018-03-28 Cary Coutant <ccoutant@gmail.com>
551
552 PR gold/22969
553 * aarch64-reloc.def: Add TLSLE_LDST* relocations.
554 * aarch64.cc (Target_aarch64::optimize_tls_reloc): Likewise.
555 (Target_aarch64::Scan::local): Likewise.
556 (Target_aarch64::Scan::global): Likewise.
557 (Target_aarch64::Relocate::relocate): Likewise.
558 (Target_aarch64::Relocate::relocate_tls): Likewise.
559
560 2018-03-27 Roland McGrath <mcgrathr@google.com>
561
562 * testsuite/split_x86_64.sh: Fix bad regexp.
563
564 2018-03-26 Cary Coutant <ccoutant@gmail.com>
565
566 PR gold/22868
567 * plugin.cc (Sized_pluginobj::do_add_symbols): Use a real section
568 index instead of SHN_ABS for defined symbols.
569 * testsuite/Makefile.am (plugin_pr22868): New test case.
570 * testsuite/Makefile.in: Regenerate
571 * testsuite/plugin_pr22868.sh: New test script.
572 * testsuite/plugin_pr22868_a.c: New source file.
573 * testsuite/plugin_pr22868_b.c: New source file.
574
575 2018-03-23 Cary Coutant <ccoutant@gmail.com>
576
577 * plugin.cc (link_or_copy_file): Remove newlines from warning messages.
578 Add pedantic check for return value from ::write.
579
580 2018-03-23 Cary Coutant <ccoutant@gmail.com>
581
582 * debug.h (DEBUG_PLUGIN): New constant.
583 (DEBUG_ALL): Add DEBUG_PLUGIN.
584 (debug_string_to_enum): Likewise.
585 * plugin.cc (make_sized_plugin_object): Add filename parameter.
586 (Plugin_recorder): New class.
587 (Plugin_manager::~Plugin_manager): Delete recorder_.
588 (Plugin_manager::load_plugins): Create and initialize recorder_.
589 (Plugin_manager::claim_file): Record claimed and unclaimed files.
590 (Plugin_manager::make_plugin_object): Use object name as name for
591 plugin object, if available.
592 (Plugin_manager::add_input_file): Record replacement files.
593 (Sized_pluginobj::do_add_symbols): Record plugin symbols.
594 (Plugin_finish::run): Call Plugin_recorder::finish().
595 (make_sized_plugin_object): Add filename parameter and pass to
596 Sized_pluginobj constructor.
597 * plugin.h (Plugin::filename): New method.
598 (Plugin::recorder): New method.
599 (Plugin::recorder_): New data member.
600
601 2018-03-07 Sriraman Tallam <tmsriram@google.com>
602
603 * layout.cc (Layout::default_section_order): Check for text section
604 prefixes.
605 (Layout::text_section_name_mapping): New static member.
606 (Layout::text_section_name_mapping_count): New static member.
607 (Layout::match_section_name): New static function.
608 (Layout::output_section_name): Check for text section prefixes.
609 * layout.h (Output_section_order::ORDER_TEXT_HOT): New enum value.
610 (Output_section_order::ORDER_TEXT_STARTUP): New enum value.
611 (Output_section_order::ORDER_TEXT_EXIT): New enum value.
612 (Output_section_order::ORDER_TEXT_UNLIKELY): New enum value.
613 (Layout::text_section_name_mapping): New static member.
614 (Layout::text_section_name_mapping_count): New static member.
615 (Layout::match_section_name): New static function.
616 * options.h (keep_text_section_prefix): New -z option.
617 * testsuite/Makefile.am (keep_text_section_prefix): New test.
618 * testsuite/Makefile.in: Regenerate.
619 * testsuite/keep_text_section_prefix.cc: New test source.
620 * testsuite/keep_text_section_prefix.sh: New test script.
621
622 2018-02-22 Sriraman Tallam <tmsriram@google.com>
623
624 * plugin.cc (get_wrap_symbols): New plugin interface.
625 (load): Add get_wrap_symbols to transfer vector.
626 * plugin-api.h (ld_plugin_get_wrap_symbols): New plugin interface.
627 * testsuite/plugin_test.c (onload): Call and check get_wrap_symbols
628 interface.
629 * testsuite/plugin_test_wrap_symbols.sh: New test script.
630 * testsuite/plugin_test_wrap_symbols_1.cc: New file.
631 * testsuite/plugin_test_wrap_symbols_2.cc: New file.
632 * testsuite/Makefile.am (plugin_test_wrap_symbols): New test.
633 * testsuite/Makefile.in: Regenerate.
634
635 2018-02-07 Sriraman Tallam <tmsriram@google.com>
636
637 * expression.cc (Symbol_expression::set_expr_sym_in_real_elf):
638 New method.
639 (Unary_expression::set_expr_sym_in_real_elf): New method.
640 (Binary_expression::set_expr_sym_in_real_elf): New method.
641 (Trinary_expression::set_expr_sym_in_real_elf): New method.
642 * plugin.cc (get_symbol_resolution_info): Fix symbol resolution if
643 defined or used in defsyms.
644 * plugin.h (Plugin_manager::is_defsym_def): New method.
645 (Plugin_manager::Plugin_manager): Initialize defsym_defines_set_.
646 (Plugin_manager::defsym_defines_set_): New member.
647 (Plugin_manager::Defsym_defines_set): New typedef.
648 * script.cc (Script_options::set_defsym_uses_in_real_elf): New method.
649 (Script_options::find_defsym_defs): New method.
650 * script.h (Expression::set_expr_sym_in_real_elf): New method.
651 (Symbol_assignment::is_defsym): New method.
652 (Symbol_assignment::value): New method.
653 (Script_options::find_defsym_defs): New method.
654 (Script_options::set_defsym_uses_in_real_elf): New method.
655 * testsuite/Makefile.am (plugin_test_defsym): New test.
656 * testsuite/Makefile.in: Regenerate.
657 * testsuite/plugin_test.c: Check for new symbol resolution.
658 * testsuite/plugin_test_defsym.sh: New script.
659 * testsuite/plugin_test_defsym.c: New test source.
660
661 2018-02-07 Alan Modra <amodra@gmail.com>
662
663 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
664 * options.h: Remove --speculate-indirect-jumps support.
665 * powerpc.cc: Likewise.
666
667 2018-02-02 Cary Coutant <ccoutant@gmail.com>
668
669 * PR gold/22776
670 * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog): Add
671 support for DWARF-4 line number tables.
672 * dwarf_reader.h (Sized_dwarf_line_info::max_ops_per_insn): New field.
673
674 2018-01-18 Alan Modra <amodra@gmail.com>
675
676 * powerpc.cc (param_plt_align): New function supplying default
677 --plt-align values. Use it..
678 (Stub_table::plt_call_align): ..here, and..
679 (Output_data_glink::global_entry_align): ..here.
680 (Stub_table::stub_align): Correct 32-bit minimum alignment.
681
682 2018-01-17 Alan Modra <amodra@gmail.com>
683
684 * options.h (speculate_indirect_jumps): New option.
685 * powerpc.cc (beqctrm, beqctrlm, crseteq): New insn constants.
686 (output_bctr): New function.
687 (Stub_table::plt_call_size): Add space for speculation barrier.
688 (Stub_table::branch_stub_size): Likewise.
689 (Output_data_glink::pltresolve_size): Likewise.
690 (Stub_table::do_write): Output speculation barriers.
691
692 2018-01-17 Alan Modra <amodra@gmail.com>
693
694 * options.h (plt_align): Support for PowerPC32 too.
695 * powerpc.cc (Stub_table::stub_align): Heed --plt-align for 32-bit.
696 (Stub_table::plt_call_size, branch_stub_size): Tidy.
697 (Stub_table::plt_call_align): Implement using stub_align.
698 (Output_data_glink::global_entry_align): New function.
699 (Output_data_glink::global_entry_off): New function.
700 (Output_data_glink::global_entry_address): Use global_entry_off.
701 (Output_data_glink::pltresolve_size): New function, replacing
702 pltresolve_size_ constant. Update all uses.
703 (Output_data_glink::add_global_entry): Align offset.
704 (Output_data_glink::set_final_data_size): Use global_entry_align.
705 (Stub_table::do_write): Don't pad __glink_PLTrelsolve with nops.
706 Tidy stub output. Use global_entry_off.
707
708 2018-01-15 Cary Coutant <ccoutant@gmail.com>
709
710 PR gold/22694
711 * options.h (-fuse-ld): Add correct helparg.
712
713 2018-01-15 Nick Clifton <nickc@redhat.com>
714
715 * po/uk.po: Updated Ukranian translation.
716
717 2018-01-13 Nick Clifton <nickc@redhat.com>
718
719 * po/gold.pot: Regenerated.
720
721 2018-01-13 Nick Clifton <nickc@redhat.com>
722
723 2.30 branch created.
724
725 2018-01-12 Cary Coutant <ccoutant@gmail.com>
726
727 * NEWS: Add new features in 1.15.
728 * version.cc (version_string): Bump to 1.15.
729
730 2018-01-12 Sterling Augustine <saugustine@google.com>
731
732 * cref.cc (Cref_inputs::Cref_table_compare::operator): Add
733 conditionals and calls to is_forwarder.
734
735 2018-01-03 Alan Modra <amodra@gmail.com>
736
737 Update year range in copyright notice of all files.
738
739 For older changes see ChangeLog-2017
740 \f
741 Copyright (C) 2018 Free Software Foundation, Inc.
742
743 Copying and distribution of this file, with or without modification,
744 are permitted in any medium without royalty provided the copyright
745 notice and this notice are preserved.
746
747 Local Variables:
748 mode: change-log
749 left-margin: 8
750 fill-column: 74
751 version-control: never
752 End:
This page took 0.043965 seconds and 5 git commands to generate.