1 2016-12-21 Alan Modra <amodra@gmail.com>
3 * arm.cc: Fix comment chars with high bit set.
5 2016-12-20 Cary Coutant <ccoutant@gmail.com>
7 * testsuite/Makefile.am: Add missing dependencies on gcctestdir/ld
9 * testsuite/Makefile.in: Regenerate.
11 2016-12-19 Cary Coutant <ccoutant@gmail.com>
14 * script.cc (Lex::get_token): Don't look ahead past NUL characters.
16 2016-12-19 Cary Coutant <ccoutant@gmail.com>
20 * layout.h (Layout::choose_output_section): Add match_input_spec
21 parameter. Adjust all callers.
22 * layout.cc (Layout::choose_output_section): Likewise. Pass
23 match_input_spec to Script_sections::output_section_name().
24 (Layout::create_note): Pass true for match_input_spec.
25 * script-sections.h (Script_sections::output_section_name): Add
26 match_input_spec parameter.
27 * script-sections.cc (Sections_element::output_section_name): Likewise.
28 (Output_section_definition::output_section_name): Likewise.
29 (Script_sections::output_section_name): Likewise.
31 2016-12-19 Igor Kudrin <ikudrin@accesssoftek.com>
33 * arm.cc (Target_arm::Target_arm): Move initialization code ...
34 (Target_arm::do_select_as_default_target): ... to here.
35 * testsuite/Makefile.am (arm_target_lazy_init): New test case.
36 * testsuite/Makefile.in: Regenerate.
37 * testsuite/arm_target_lazy_init.s: New source file.
38 * testsuite/arm_target_lazy_init.t: New linker script.
40 2016-12-19 Cary Coutant <ccoutant@gmail.com>
43 * symtab.cc (Symbol_table::sized_write_globals): Use address of
44 output section, not input section.
45 * testsuite/Makefile.am (pr20976): New test case.
46 * testsuite/Makefile.in: Regenerate.
47 * testsuite/pr20976.c: New source file.
49 2016-12-13 Cary Coutant <ccoutant@gmail.com>
52 * options.h (--orphan-handling): New option.
53 (General_options::Orphan_handling): New enum.
54 (General_options::orphan_handling_enum): New method.
55 (General_options::set_orphan_handling_enum): New method.
56 (General_options::orphan_handling_enum_): New data member.
57 * options.cc (General_options::General_options): Initialize new member.
58 (General_options::finalize): Convert --orphan-handling argument to enum.
59 * script-sections.cc (Script_sections::output_section_name): Check it.
61 2016-12-13 Cary Coutant <ccoutant@gmail.com>
64 * layout.cc (Layout::choose_output_section): Add is_reloc parameter.
65 Adjust all callers. Do not use linker script for is_reloc sections.
66 (Layout::layout_reloc): Pass is_reloc == true.
67 * layout.h (Layout::choose_output_section): Add is_reloc parameter.
69 2016-12-12 Igor Kudrin <ikudrin@accesssoftek.com>
70 Cary Coutant <ccoutant@gmail.com>
73 * script-sections.cc (Output_section_definition::output_section_name):
74 For linker-generated sections, compare with output section name.
75 * testsuite/Makefile.am (script_test_13): New test.
76 * testsuite/Makefile.in: Regenerate.
77 * testsuite/script_test_13.c: New source file.
78 * testsuite/script_test_13.sh: New script.
79 * testsuite/script_test_13.t: New linker script.
81 2016-12-12 Cary Coutant <ccoutant@gmail.com>
83 * script-sections.cc (Orphan_section_placement::update_last_alloc):
85 (Orphan_section_placement::find_place): Place orphan .data section
86 after either RODATA or TEXT.
87 (Script_sections::place_orphan): Call update_last_alloc for allocated
89 (Script_sections::create_segments): Improve handling of BSS.
91 2016-12-13 Alan Modra <amodra@gmail.com>
94 * testsuite/script_test_15a.sh: Allows larger p_filesz.
95 * testsuite/script_test_15b.sh: Likewise.
96 * testsuite/script_test_15c.sh: Likewise.
98 2016-12-13 Alan Modra <amodra@gmail.com>
101 * testsuite/pr20717.t: Add .got output section containing .toc.
103 2016-12-11 Igor Kudrin <ikudrin@accesssoftek.com>
106 * testsuite/Makefile.am (pr20717): New test.
107 * testsuite/Makefile.in: Regenerate.
108 * testsuite/pr20717.c: New test source file.
109 * testsuite/pr20717.sh: New test script.
110 * testsuite/pr20717.t: New test linker script.
112 2016-12-11 Cary Coutant <ccoutant@gmail.com>
115 * output.cc (Output_section::set_final_data_size): Calculate data size
116 based on relative offset rather than file offset.
117 (Output_segment::set_section_addresses): Track file offset separately
119 (Output_segment::set_section_list_addresses): Add pfoff parameter.
120 Track file offset separately. Don't move file offset for BSS
122 * output.h (Output_segment::set_section_list_addresses): Add pfoff
124 * script-sections.cc (Orphan_section_placement): Add PLACE_LAST_ALLOC.
125 (Orphan_section_placement::Orphan_section_placement): Initialize it.
126 (Orphan_section_placement::output_section_init): Track last allocated
128 (Orphan_section_placement::find_place): Place BSS after last allocated
130 (Output_section_element_input::set_section_addresses): Always override
131 input section alignment when SUBALIGN is specified.
132 (Output_section_definition::set_section_addresses): Override alignment
133 of output section when SUBALIGN is specified.
135 * testsuite/Makefile.am (script_test_15a, script_test_15b)
136 (script_test_15c): New test cases.
137 * testsuite/Makefile.in: Regenerate.
138 * testsuite/script_test_2.cc: Adjust expected layout.
139 * testsuite/script_test_15.c: New source file.
140 * testsuite/script_test_15a.sh: New shell script.
141 * testsuite/script_test_15a.t: New linker script.
142 * testsuite/script_test_15b.sh: New shell script.
143 * testsuite/script_test_15b.t: New linker script.
144 * testsuite/script_test_15c.sh: New shell script.
145 * testsuite/script_test_15c.t: New linker script.
147 2016-12-08 Alan Modra <amodra@gmail.com>
149 * powerpc.cc (Powerpc_relobj::stub_table): Return NULL rather
152 2016-12-08 Alan Modra <amodra@gmail.com>
154 * options.h (--stub-group-multi): Fix typo.
156 2016-12-07 Alan Modra <amodra@gmail.com>
158 * options.h (--stub-group-multi): New PowerPC option.
159 * powerpc.cc (Stub_control): Add multi_os_ var and param
160 to constructor. Sort start_ var later. Comment State.
161 (Stub_control::can_add_to_stub_group): Heed multi_os_.
162 (Target_powerpc::group_sections): Update.
164 2016-12-07 Alan Modra <amodra@gmail.com>
167 * powerpc.cc (Stub_control): Replace stubs_always_before_branch_
168 with stubs_always_after_branch_, group_end_addr_ with
170 (Stub_control::can_add_to_stub_group): Rewrite to suit scanning
171 sections by increasing address.
172 (Target_powerpc::group_sections): Scan that way. Delete corner
174 * options.h (--stub-group-size): Update help string.
176 2016-12-07 Alan Modra <amodra@gmail.com>
178 * powerpc.cc (Stub_table_owner): Provide constructor.
179 (Powerpc_relobj::set_stub_table): Resize fill with -1.
180 (Target_powerpc::Branch_info::make_stub): Provide target debug
181 output on returning false.
183 2016-12-05 Cary Coutant <ccoutant@gmail.com>
184 Tristan Gingold <gingold@adacore.com>
186 * object.cc (Sized_relobj_file::do_count_local_symbols): Check
187 is_ordinary before using shndx.
188 * testsuite/Makefile.am (file_in_many_sections_test.sh): New test case.
189 * testsuite/Makefile.in: Regenerate.
190 * testsuite/file_in_many_sections.c: New source file.
191 * testsuite/file_in_many_sections_test.sh: New script.
193 2016-12-01 Cary Coutant <ccoutant@gmail.com>
194 Igor Kudrin <ikudrin@accesssoftek.com>
197 * script-sections.cc (Script_sections): Set *keep to false when
200 2016-12-01 Cary Coutant <ccoutant@gmail.com>
203 * target.h (Target::default_text_segment_address): Bump default
204 start address up to ABI page size.
206 2016-12-01 Cary Coutant <ccoutant@gmail.com>
209 * options.cc (General_options::object_format_to_string): New function.
210 (General_options::copy_from_posdep_options): New function.
211 (General_options::parse_push_state): New function.
212 (General_options::parse_pop_state): New function.
213 * options.h (--push-state, --pop-state): New options.
214 (General_options::object_format_to_string): New method.
215 (General_options::set_incremental_disposition): New method.
216 (General_options::copy_from_posdep_options): New method.
217 (General_options::options_stack_): New data member.
219 2016-12-01 Cary Coutant <ccoutant@gmail.com>
222 * aarch64.cc (Target_aarch64::scan_reloc_section_for_stubs): Handle
223 section symbols correctly.
224 * arm.cc (Target_arm): Likewise.
225 * powerpc.cc (Target_powerpc): Likewise.
227 2016-11-27 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
229 * aarch64-reloc.def: Fix spelling in comments.
231 2016-11-27 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
233 * aarch64.cc: Fix spelling in comments.
234 * arm.cc: Fix spelling in comments.
235 * icf.cc: Fix spelling in comments.
236 * layout.cc: Fix spelling in comments.
237 * layout.h: Fix spelling in comments.
238 * mips.cc: Fix spelling in comments.
239 * output.h: Fix spelling in comments.
240 * plugin.h: Fix spelling in comments.
241 * script-sections.h: Fix spelling in comments.
242 * script.h: Fix spelling in comments.
243 * stringpool.h: Fix spelling in comments.
244 * tilegx.cc: Fix spelling in comments.
246 2016-11-22 Cary Coutant <ccoutant@gmail.com>
249 * options.cc (One_option::print): Print "(default)" when appropriate.
250 * options.h: Clean up and re-sort options.
251 (One_option::is_default): New data member.
252 (One_option::One_option): Add is_default parameter; adjust all calls.
253 (DEFINE_var): Add is_default__ parameter; adjust all calls.
254 (DEFINE_bool): Set is_default based on default_value__.
255 (DEFINE_bool_ignore): New macro.
256 (--no-eh-frame-hdr): New option.
257 (--enable-new-dtags): Remove mention of DT_FLAGS.
259 2016-11-22 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
261 * configure: Regenerate.
263 2016-11-21 Cary Coutant <ccoutant@gmail.com>
266 * gold.cc (queue_middle_tasks): Force valid target earlier.
268 2016-11-21 Igor Kudrin <ikudrin@accesssoftek.com>
270 * layout.cc: Include windows.h and rpcdce.h (for MinGW32).
271 (Layout::create_build_id): Generate uuid using UuidCreate().
273 2016-11-04 Loïc Yhuel <loic.yhuel@softathome.com>
275 * configure.ac: add missing '$'.
276 * configure: Regenerate.
278 2016-10-21 Gergely Nagy <ngg@tresorit.com>
281 * icf.cc (match_sections): Add new parameter section_addraligns.
282 Check section alignment and keep the section with the strictest
284 (find_identical_sections): New local variable section_addraligns.
285 Store each section's alignment.
286 * testsuite/pr17704a_test.s: New file.
287 * testsuite/Makefile.am (pr17704a_test): New test.
288 * testsuite/Makefile.in: Regenerate.
290 2016-10-06 Alan Modra <amodra@gmail.com>
292 * powerpc.cc (Target_powerpc::Relocate::relocate): Add fall
294 * tilegx.cc (Target_tilegx::Relocate::relocate): Likewise.
296 2016-10-06 Alan Modra <amodra@gmail.com>
298 * aarch64.cc: Spell fall through comments as "// Fall through.".
301 * powerpc.cc: Likewise.
303 * sparc.cc: Likewise.
304 * x86_64.cc: Likewise.
305 * powerpc.cc (Target_powerpc::Relocate::relocate): Add missing
306 fall through comments.
307 * sparc.cc: (Target_sparc::Scan::global): Likewise.
308 (Target_sparc::Relocate::relocate): Likewise.
309 * tilegx.cc (Target_tilegx::Relocate::relocate): Likewise.
310 * resolve.cc (symbol_to_bits): Add missing break.
312 2016-09-26 Cary Coutant <ccoutant@gmail.com>
315 * symtab.cc (Symbol_table::define_default_version): Check that
316 unversioned symbol is defined.
318 2016-09-26 Vlad Zakharov <vzakhar@synopsys.com>
320 * Makefile.in: Regenerate.
321 * configure: Likewise.
322 * testsuite/Makefile.in: Likewise.
324 2016-09-26 Alan Modra <amodra@gmail.com>
326 * aarch64.cc (Target_aarch64::is_erratum_835769_sequence): Avoid
328 * output.cc (Output_segment::set_section_addresses): Likewise.
329 * testsuite/Makefile.in: Regenerate.
331 2016-09-02 Doug Kwan <dougkwan@google.com>
333 * arm.cc (Target_arm::Target_arm): Move method definition outside of
334 class definition. Add code to handle --target1-rel, --target1-abs
335 and --target2= options.
336 (Target_arm::get_reloc_reloc_type): Change method to be non-static
338 (Target_arm::target1_is_rel_, Target_arm::target2_reloc_): New data
340 (Target_arm::Scan::local, Target_arm::Scan::global,
341 Target_arm::Relocate::relocate,
342 Target_arm::Relocatable_size_for_reloc::get_size_for_reloc): Adjust
343 call to Target_arm::get_real_reloc_type.
344 (Target_arm::get_real_reloc_type): Use command line options to
345 determine real types of R_ARM_TARGET1 and R_ARM_TARGET2.
346 * options.h (--target1-rel, --target1-abs, --target2): New ARM-only
349 2016-08-31 Alan Modra <amodra@gmail.com>
351 * powerpc.cc (class Stub_control): Delete stub14_group_size_
352 and has14_. Add group_size_.
353 (Stub_control::can_add_to_stub_group): Adjust to suit. Print
354 debug info when switching to adding sections before stubs.
356 2016-08-31 Alan Modra <amodra@gmail.com>
358 * debug.h (DEBUG_TARGET): New.
359 (DEBUG_ALL): Add DEBUG_TARGET.
360 (gold_debug): Delete FORMAT param.
361 * powerpc.cc (Stub_control::can_add_to_stub_group): Print debug ourput.
363 2016-08-30 Alan Modra <amodra@gmail.com>
366 * powerpc.cc (class Stub_control): Add has14_. Comment owner_.
367 (Stub_control::can_add_to_stub_group): Correct grouping of
368 sections containing 14-bit external branches. When returning
369 false, set state_ to reflect the fact that we have one section
370 for the next group. Rewrite most of function for clarity.
371 Add and expand comments.
372 (Target_powerpc::do_relax): Print stub group size retry in hex.
374 2016-08-26 Han Shen <shenhan@google.com>
376 PR gold/20529 - relaxing loop never ends.
378 * powerpc.cc (Stub_table::min_size_threshold_): New member to
380 (Stub_table::set_min_size_threshold): New member function.
381 (Stub_table::set_address_and_size): Add code to only allow size
383 (Target_powerpc::do_relax): Add code to record last size.
385 2016-08-23 Roland McGrath <roland@hack.frob.com>
387 * options.h (General_options): Grok -z stack-size.
388 * output.h (Output_segment::set_size): New method.
389 * layout.cc (Layout::create_executable_stack_info): Renamed to ...
390 (Layout::create_stack_segment): ... this. Always create the
391 segment if -z stack-size was used.
392 (Layout::set_segment_offsets): Don't call ->set_offset on the
393 PT_GNU_STACK segment.
395 2016-08-15 Bharathi Seshadri <bseshadr@cisco.com>
397 * options.h (General_options): Add --be8 option.
398 * arm.cc (Arm_relobj::do_relocate_sections): Add code to swap for be8.
399 (Output_data_plt_arm_standard::do_fill_first_plt_entry): Likewise.
400 (Output_data_plt_arm_short::do_fill_plt_entry): Likewise.
401 (Output_data_plt_arm_long::do_fill_plt_entry): Likewise.
402 (Target_arm::do_adjust_elf_header): Do EF_ARM_BE8 adjustment.
404 2016-08-17 Cary Coutant <ccoutant@gmail.com>
406 * i386.cc (Target_i386): Reset skip_call_tls_get_addr_ after printing
408 * testsuite/Makefile.am (pr20216a): Add missing dependencies.
409 (pr20308a): Add -Bgcctestdir/ to compile rules.
410 * testsuite/Makefile.in: Regenerate.
412 2016-08-12 Roland McGrath <roland@hack.frob.com>
415 * script-sections.cc (Script_sections::release_segments):
416 Reset this->segments_created_.
418 2016-08-12 Roland McGrath <roland@hack.frob.com>
420 * yyscript.y (HIDDEN): New %token.
421 (assignment): Handle HIDDEN(string = expr) syntax.
422 * script.cc (script_keyword_parsecodes): Add HIDDEN.
424 2016-08-10 Cary Coutant <ccoutant@gmail.com>
427 * x86_64.cc (Target_x86_64::Relocate::relocate): Add check for
428 R_X86_64_GOTPCREL. Reset skip_call_tls_get_addr_ after printing
430 * testsuite/Makefile.am (pr20216_gd.o): Add -Bgcctestdir/.
431 (pr20216_ld.o): Likewise.
432 * testsuite/Makefile.in: Regenerate.
434 2016-08-10 James Clarke <jrtc27@jrtc27.com>
437 * symtab.cc (Symbol_table::add_from_relobj): Handle NULL symbols,
438 which will be present for STT_SPARC_REGISTER.
439 (Symbol_table::add_from_pluginobj): Likewise.
440 (Symbol_table::add_from_dynobj): Likewise.
441 (Symbol_table::add_from_incrobj): Removed dead code.
443 2016-08-10 James Clarke <jrtc27@jrtc27.com>
446 * sparc.cc (Target_sparc::Relocate::relocate): R_SPARC_GOTDATA_OP_LOX10
447 should fall back on R_SPARC_GOT10, not R_SPARC_GOT13.
449 2016-08-10 James Clarke <jrtc27@jrtc27.com>
452 * sparc.cc (Target_sparc::Scan::check_non_pic): Allow R_SPARC_32 on
455 2016-06-29 Cary Coutant <ccoutant@gmail.com>
458 * testsuite/dynamic_list.sh: Remove check for _ZdlPv.
460 2016-06-29 Cary Coutant <ccoutant@gmail.com>
462 * testsuite/Makefile.am (MOSTLYCLEANFILES): Add eh_test_2.
463 * testsuite/Makefile.in: Regenerate.
465 2016-06-30 Alan Modra <amodra@gmail.com>
467 * testsuite/Makefile.am (memory_test, memory_test_2): Pass
468 -Wl,-z to gcc, not plain -z.
469 * testsuite/Makefile.in: Regenerate.
471 2016-06-29 H.J. Lu <hongjiu.lu@intel.com>
474 * i386.cc (Target_i386::Relocate::relocate): Allow
475 R_386_GOT32X relocation against ___tls_get_addr.
476 (Target_i386::Relocate::tls_gd_to_ie): Support indirect
477 call to __tls_get_addr.
478 (Target_i386::Relocate::tls_gd_to_le): Likewise.
479 (Target_i386::Relocate::tls_ld_to_le): Likewise.
480 * testsuite/Makefile.am (check_PROGRAMS): Add pr20308a_test,
481 pr20308b_test, pr20308c_test, pr20308d_test, pr20308e_test.
482 (pr20308a_test_SOURCES): New.
483 (pr20308a_test_DEPENDENCIES): Likewise.
484 (pr20308a_test_CFLAGS): Likewise.
485 (pr20308a_test_LDFLAGS): Likewise.
486 (pr20308a_test_LDADD): Likewise.
487 (pr20308b_test_SOURCES): Likewise.
488 (pr20308b_test_DEPENDENCIES): Likewise.
489 (pr20308b_test_CFLAGS): Likewise.
490 (pr20308b_test_LDFLAGS): Likewise.
491 (pr20308b_test_LDADD): Likewise.
492 (pr20308c_test_SOURCES): Likewise.
493 (pr20308c_test_DEPENDENCIES): Likewise.
494 (pr20308c_test_CFLAGS): Likewise.
495 (pr20308c_test_LDFLAGS): Likewise.
496 (pr20308c_test_LDADD): Likewise.
497 (pr20308d_test_SOURCES): Likewise.
498 (pr20308d_test_DEPENDENCIES): Likewise.
499 (pr20308d_test_CFLAGS): Likewise.
500 (pr20308d_test_LDFLAGS): Likewise.
501 (pr20308d_test_LDADD): Likewise.
502 (pr20308e_test_SOURCES): Likewise.
503 (pr20308e_test_DEPENDENCIES): Likewise.
504 (pr20308e_test_CFLAGS): Likewise.
505 (pr20308e_test_LDFLAGS): Likewise.
506 (pr20308e_test_LDADD): Likewise.
507 (pr20308a.so): Likewise.
508 (pr20308b.so): Likewise.
509 (pr20308_gd.o): Likewise.
510 (pr20308_ld.o): Likewise.
511 (MOSTLYCLEANFILES): Add pr20308a.so pr20308b.so.
512 * testsuite/Makefile.in: Regenerated.
513 * testsuite/pr20308_def.c: New file.
514 * testsuite/pr20308_gd.S: Likewise.
515 * testsuite/pr20308_ld.S: Likewise.
516 * testsuite/pr20308_main.c: Likewise.
518 2016-06-29 H.J. Lu <hongjiu.lu@intel.com>
521 * configure.ac (DEFAULT_TARGET_X86_64_OR_X32): New
523 * configure: Regenerated.
524 * x86_64.cc (Target_x86_64<size>::Relocate::relocate): Allow
525 R_X86_64_GOTPCRELX relocation against __tls_get_addr.
526 (Target_x86_64<size>::Relocate::tls_gd_to_ie): Support indirect
527 call to __tls_get_addr.
528 (Target_x86_64<size>::Relocate::tls_gd_to_le): Likewise.
529 (Target_x86_64<size>::Relocate::tls_ld_to_le): Likewise.
530 * testsuite/Makefile.am (check_PROGRAMS): Add pr20216a_test,
531 pr20216b_test, pr20216c_test, pr20216d_test, pr20216e_test.
532 (pr20216a_test_SOURCES): New.
533 (pr20216a_test_DEPENDENCIES): Likewise.
534 (pr20216a_test_CFLAGS): Likewise.
535 (pr20216a_test_LDFLAGS): Likewise.
536 (pr20216a_test_LDADD): Likewise.
537 (pr20216b_test_SOURCES): Likewise.
538 (pr20216b_test_DEPENDENCIES): Likewise.
539 (pr20216b_test_CFLAGS): Likewise.
540 (pr20216b_test_LDFLAGS): Likewise.
541 (pr20216b_test_LDADD): Likewise.
542 (pr20216c_test_SOURCES): Likewise.
543 (pr20216c_test_DEPENDENCIES): Likewise.
544 (pr20216c_test_CFLAGS): Likewise.
545 (pr20216c_test_LDFLAGS): Likewise.
546 (pr20216c_test_LDADD): Likewise.
547 (pr20216d_test_SOURCES): Likewise.
548 (pr20216d_test_DEPENDENCIES): Likewise.
549 (pr20216d_test_CFLAGS): Likewise.
550 (pr20216d_test_LDFLAGS): Likewise.
551 (pr20216d_test_LDADD): Likewise.
552 (pr20216e_test_SOURCES): Likewise.
553 (pr20216e_test_DEPENDENCIES): Likewise.
554 (pr20216e_test_CFLAGS): Likewise.
555 (pr20216e_test_LDFLAGS): Likewise.
556 (pr20216e_test_LDADD): Likewise.
557 (pr20216a.so): Likewise.
558 (pr20216b.so): Likewise.
559 (pr20216_gd.o): Likewise.
560 (pr20216_ld.o): Likewise.
561 (MOSTLYCLEANFILES): Add pr20216a.so pr20216b.so.
562 * testsuite/Makefile.in: Regenerated.
563 * testsuite/pr20216_def.c: New file.
564 * testsuite/pr20216_gd.S: Likewise.
565 * testsuite/pr20216_ld.S: Likewise.
566 * testsuite/pr20216_main.c: Likewise.
568 2016-06-29 Alan Modra <amodra@gmail.com>
570 * script_test_12.t: Delete .plt, specify 64k page size.
571 * script_test_12i.t: Likewise.
573 2016-06-29 Alan Modra <amodra@gmail.com>
575 * testsuite/plugin_layout_with_alignment.c: Explicitly align all
578 2016-06-29 Alan Modra <amodra@gmail.com>
580 * testsuite/Makefile.am (copy_test_protected): Disable for powerpc.
581 * testsuite/Makefile.in: Regenerate.
583 2016-06-28 Igor Kudrin <ikudrin@accesssoftek.com>
585 * aarch64-reloc.def (NONE): New relocation.
586 * aarch64.cc (Target_aarch64::Scan::local): Handle R_AARCH64_NONE.
587 (Target_aarch64::Scan::global): Likewise.
588 * testsuite/Makefile.am (aarch64_reloc_none): New test.
589 * testsuite/Makefile.in: Regenerate.
590 * testsuite/aarch64_reloc_none.s: New test source file.
591 * testsuite/aarch64_reloc_none.sh: New test script.
593 2016-06-28 Sriraman Tallam <tmsriram@google.com>
595 * x86_64.cc (Lazy_view): New class.
596 (can_convert_mov_to_lea): Templatize function. Make the function
597 check for appropriate relocation types and use the view parameter
598 to get section contents.
599 (can_convert_callq_to_direct): New function.
600 (Target_x86_64<size>::Scan::global): Refactor.
601 (Target_x86_64<size>::Relocate::relocate): Refactor. Change any indirect
602 call via GOT that can be converted.
603 * testsuite/Makefile.am (x86_64_indirect_call_to_direct.sh): New test.
604 * testsuite/Makefile.in: Regenerate.
605 * testsuite/x86_64_indirect_call_to_direct1.s: New file.
606 * testsuite/x86_64_indirect_jump_to_direct1.s: New file.
608 2016-06-28 Igor Kudrin <ikudrin@accesssoftek.com>
610 * aarch64.cc (Target_aarch64::Scan::local): Move the call to got_section
611 from the top level to the places of its use.
613 2016-06-28 Igor Kudrin <ikudrin@accesssoftek.com>
616 * script-c.h (Sort_wildcard): Add SORT_WILDCARD_BY_INIT_PRIORITY.
617 * script-sections.cc (Input_section_sorter::get_init_priority): New method.
618 (Input_section_sorter::operator()): Handle SORT_WILDCARD_BY_INIT_PRIORITY.
619 (Output_section_element_input::print): Likewise.
620 * script.cc (script_keyword_parsecodes): Add entry SORT_BY_INIT_PRIORITY.
621 * yyscript.y (SORT_BY_INIT_PRIORITY): New token.
622 (wildcard_section): Handle SORT_BY_INIT_PRIORITY.
624 * testsuite/Makefile.am (script_test_14): New test.
625 * testsuite/Makefile.in: Regenerate.
626 * testsuite/script_test_14.s: New test source file.
627 * testsuite/script_test_14.sh: New test script.
628 * testsuite/script_test_14.t: New test linker script.
630 2016-06-28 James Clarke <jrtc27@jrtc27.com>
632 * sparc.cc (Target_sparc::Scan::local): Don't convert R_SPARC_32
633 to R_SPARC_RELATIVE if class is ELFCLASS64.
634 (Target_sparc::Scan::global): Likewise.
636 2016-06-23 Cary Coutant <ccoutant@gmail.com>
637 Igor Kudrin <ikudrin@accesssoftek.com>
641 (Output_section_element_input::set_section_addresses): Keep bin_count
642 separate from input_pattern_count.
643 * testsuite/script_test_12.t: Add another section .x4.
644 * testsuite/script_test_12i.t: Likewise.
645 * testsuite/script_test_12a.c: Likewise.
646 * testsuite/script_test_12b.c: Likewise.
648 2016-06-23 Igor Kudrin <ikudrin@accesssoftek.com>
650 * gold-threads.cc (impl_threads::Lock_impl_threads): Fix typos.
652 2016-06-22 H.J. Lu <hongjiu.lu@intel.com>
655 * NEWS: Mention --enable-relro.
656 * configure.ac: Add --enable-relro.
657 (DEFAULT_LD_Z_RELRO): New. Set by --enable-relro and default
659 * config.in: Regenerated.
660 * configure: Likewise.
661 * options.h (General_options::relro): Default to
664 2016-06-20 Cary Coutant <ccoutant@gmail.com>
666 * NEWS: Add new features in 1.12.
667 * version.cc (version_string): Bump to 1.12.
669 2016-06-20 H.J. Lu <hongjiu.lu@intel.com>
672 * i386.cc (Target_i386::first_plt_entry_offset): Return 0 if
674 (Target_i386::plt_entry_size): Likewise.
675 (Target_x86_64<size>::first_plt_entry_offset): Likewise.
676 (Target_x86_64<size>::plt_entry_size): Likewise.
678 2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
680 * mips.cc (Target_mips::Target_mips): Initialize rld_map_.
681 (Target_mips::rld_map_): New data member.
682 (Target_mips::do_finalize_sections): Add support for
683 DT_MIPS_RLD_MAP and DT_MIPS_RLD_MAP_REL dynamic tags,
684 .rld_map section, and __RLD_MAP symbol.
685 (Target_mips::do_dynamic_tag_custom_value): Add support for
686 DT_MIPS_RLD_MAP_REL dynamic tag.
687 * output.cc (Output_data_dynamic::get_entry_offset): New method
689 * output.h (Output_data_dynamic::get_entry_offset): New method
692 2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
694 * mips.cc (Mips_relocate_functions::relpc16): Add unaligned check.
696 2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
698 * mips.cc (relocation_needs_la25_stub): Add support for relocs:
699 R_MIPS_PC21_S2 and R_MIPS_PC26_S2.
700 (hi16_reloc): Add support for R_MIPS_PCHI16 relocation.
701 (is_matching_lo16_reloc): Likewise.
702 (lo16_reloc): Add support for R_MIPS_PCLO16 relocation.
703 (Mips_output_data_plt::plt_entry_r6): New static data member for
705 (Target_mips::is_output_r6): New method.
706 (Target_mips::Mips_mach): Add new enum constants.
707 (Mips_relocate_functions::Status): Likewise.
708 (Mips_relocate_functions::pchi16_relocs): New static data member.
709 (Mips_relocate_functions::relpc21): New method.
710 (Mips_relocate_functions::relpc26): Likewise.
711 (Mips_relocate_functions::relpc18): Likewise.
712 (Mips_relocate_functions::relpc19): Likewise.
713 (Mips_relocate_functions::relpchi16): Likewise.
714 (Mips_relocate_functions::do_relpchi16): Likewise.
715 (Mips_relocate_functions::relpclo16): Likewise.
716 (Mips_output_data_plt::do_write): Add support for Mips r6 plt
718 (Target_mips::mips_32bit_flags): Add E_MIPS_ARCH_32R6 support.
719 (Target_mips::elf_mips_mach): Add E_MIPS_ARCH_32R6 and
720 E_MIPS_ARCH_64R6 support.
721 (Target_mips::update_abiflags_isa): Likewise.
722 (mips_get_size_for_reloc): Add support for relocs: R_MIPS_PCHI16,
723 R_MIPS_PCLO16, R_MIPS_PC21_S2, R_MIPS_PC26_S2, R_MIPS_PC18_S3 and
725 (Target_mips::Scan::local): Add support for relocs: R_MIPS_PCHI16
727 (Target_mips::Scan::global): Add support for relocs:
728 R_MIPS_PC21_S2 and R_MIPS_PC26_S2.
729 (Target_mips::Relocate::relocate): Call functions for resolving
730 Mips32r6 and Mips64r6 relocations, and print error message for
731 STATUS_PCREL_UNALIGNED.
732 (Target_mips::Scan::get_reference_flags): Add support for relocs:
733 R_MIPS_PCHI16, R_MIPS_PCLO16, R_MIPS_PC21_S2, R_MIPS_PC26_S2,
734 R_MIPS_PC18_S3 and R_MIPS_PC19_S2.
735 (Target_mips::elf_mips_mach_name): Add E_MIPS_ARCH_32R6 and
736 E_MIPS_ARCH_64R6 support.
738 2016-06-13 H.J. Lu <hongjiu.lu@intel.com>
741 * testsuite/script_test_2.t: Add .got.plt after .got.
743 2016-06-10 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
745 * mips.cc (struct Mips_abiflags): New struct.
746 (Mips_relobj::Mips_relobj): Initialize attributes_section_data_
748 (Mips_relobj::~Mips_relobj): Delete object pointed by
749 attributes_section_data_.
750 (Mips_relobj::abiflags): New method.
751 (Mips_relobj::attributes_section_data): Likewise.
752 (Mips_relobj::attributes_section_data_): New data member.
753 (Mips_relobj::abiflags_): Likewise.
754 (class Mips_output_section_abiflags): New class.
755 (Target_mips::Target_mips): Initialize attributes_section_data_,
756 abiflags_ and has_abiflags_section_.
757 (Target_mips::do_should_include_section): Don't emit input
758 .MIPS.abiflags sections to output .MIPS.abiflags.
759 (Target_mips::Mips_mach): Add new enum constants.
760 (Target_mips::mips_isa_ext_mach): New method.
761 (Target_mips::mips_isa_ext): Likewise.
762 (Target_mips::update_abiflags_isa): Likewise.
763 (Target_mips::infer_abiflags): Likewise.
764 (Target_mips::create_abiflags): Likewise.
765 (Target_mips::fp_abi_string): Likewise.
766 (Target_mips::select_fp_abi): Likewise.
767 (Target_mips::merge_obj_attributes): Likewise.
768 (Target_mips::merge_obj_abiflags): Likewise.
769 (Target_mips::level_rev): Likewise.
770 (Target_mips::merge_obj_e_flags): Rename from
771 merge_processor_specific_flags. Remove dyn_obj argument,
772 call update_abiflags_isa when needed, compare NaN encodings and
774 (Target_mips::add_machine_extensions): Add two machine extensions
776 (Target_mips::attributes_section_data_): New data member.
777 (Target_mips::abiflags_): Likewise.
778 (Target_mips::has_abiflags_section_): Likewise.
779 (Mips_relobj::do_read_symbols): Read .gnu.attributes and
780 .MIPS.abiflags sections if they exists.
781 (Target_mips::elf_mips_mach): Add E_MIPS_MACH_5900 and
782 E_MIPS_MACH_OCTEON3 support.
783 (Target_mips::do_adjust_elf_header): Setup EI_ABIVERSION flag.
784 (Target_mips::do_finalize_sections): Merge .gnu.attributes and
785 .MIPS.abiflags sections from input. Create these sections if
787 (Target_mips::elf_mips_mach_name): Add E_MIPS_MACH_5900 and
788 E_MIPS_MACH_OCTEON3 support, and change strings for
789 E_MIPS_MACH_LS2E, E_MIPS_MACH_LS2F and E_MIPS_MACH_LS3A just
792 2016-06-10 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
794 * mips.cc (Mips_relobj::Mips_relobj): Initialize
795 has_reginfo_section_.
796 (Mips_relobj::has_reginfo_section_): New data member.
797 (Mips_relobj::has_reginfo_section): New method.
798 (class Mips_output_section_reginfo): Change base class to
799 Output_section_data, and set masks of the output .reginfo section
801 (Mips_output_section_reginfo::as_mips_output_section_reginfo):
803 (Mips_output_section_reginfo::set_masks): Likewise.
804 (Mips_output_section_reginfo::set_final_data_size): Likewise.
805 (Mips_output_section_reginfo::do_print_to_mapfile): New method.
806 (Target_mips::do_make_output_section): Remove.
807 (Mips_relobj::do_read_symbols): Set has_reginfo_section_ to true
808 if the object contains a .reginfo section.
809 (Target_mips::do_finalize_sections): Create a .reginfo output
812 2016-06-09 Artemiy Volkov <artemiyv@acm.org>
814 * mips.cc (Mips_output_data_got::do_write): Add missing template
817 2016-05-30 Marcin Kościelnicki <koriakin@0x04.net>
820 * s390.cc (Target_s390::ss_code_st_r14): Removed.
821 (Target_s390::ss_code_l_r14): Removed.
822 (Target_s390::ss_code_ear): Removed.
823 (Target_s390::ss_code_c): Removed.
824 (Target_s390::ss_match_st_r14): New function.
825 (Target_s390::ss_match_l_r14): New function.
826 (Target_s390::ss_match_mcount): Call ss_match_{l,st}_r14 instead
827 of matching code directly.
828 (Target_s390::ss_match_ear): New function.
829 (Target_s390::ss_match_c): New function.
830 (Target_s390::do_calls_non_split): Call ss_match_{ear,c} instead
831 of matching code directly.
833 2016-05-19 Cary Coutant <ccoutant@gmail.com>
836 * copy-relocs.cc (Copy_relocs::make_copy_reloc): Add object
837 parameter; check for protected symbol.
838 * copy-relocs.h (Copy_relocs::make_copy_reloc): Add object parameter.
839 * mips.cc (Mips_copy_relocs): Adjust call to make_copy_reloc.
840 * symtab.cc (Symbol::init_fields): Initialize is_protected_.
841 (Symbol_table::add_from_dynobj): Mark protected symbols.
842 * symtab.h (Symbol::is_protected): New method.
843 (Symbol::set_is_protected): New method.
844 (Symbol::is_protected_): New data member.
846 * testsuite/Makefile.am (copy_test_protected): New test.
847 * testsuite/Makefile.in: Regenerate.
848 * testsuite/copy_test.cc (main): Add legal reference to protected
850 * testsuite/copy_test_v1.cc (main): Likewise.
851 * testsuite/copy_test_2.cc (ip): Add protected symbol.
852 * testsuite/copy_test_protected.cc: New test source file.
853 * testsuite/copy_test_protected.sh: New test script.
855 2016-05-19 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
857 * mips.cc (Mips_got_entry::Mips_got_entry): Remove object argument
858 for global got symbols, and set addend to 0.
859 (Mips_got_entry::hash): Change hash algorithm.
860 (Mips_got_entry::equals): Refactor.
861 (Mips_got_entry::object): Return input object for local got symbols
863 (Mips_got_entry::addend): Change return of the relocation addend.
864 (Mips_got_entry::addend_): Move from union d.
865 (Mips_got_entry::object_): Move into union d.
866 (class Mips_symbol_hash): New class.
867 (Mips_got_info::Global_got_entry_set): New type.
868 (Mips_got_info::global_got_symbols): Change return type to
869 Global_got_entry_set.
870 (Mips_got_info::global_got_symbols_): Change type to
871 Global_got_entry_set.
872 (Mips_symbol::hash): New method.
873 (Mips_output_data_la25_stub::symbols_): Change type to std::vector.
874 (Mips_output_data_mips_stubs::Mips_stubs_entry_set): New type.
875 (Mips_output_data_mips_stubs::symbols_): Change type to
876 Mips_stubs_entry_set.
877 (Mips_got_info::record_global_got_symbol): Don't pass object
878 argument when creating global got symbol.
879 (Mips_got_info::record_got_entry): Remove find before inserting
881 (Mips_got_info::add_reloc_only_entries): Change type of iterator
882 to Global_got_entry_set.
883 (Mips_got_info::count_got_symbols): Likewise.
884 (Mips_output_data_la25_stub::create_la25_stub): Use push_back
885 for adding entries to symbols_.
886 (Mips_output_data_la25_stub::do_write): Change type of iterator
888 (Mips_output_data_mips_stubs::set_lazy_stub_offsets): Change type
889 of iterator to Mips_stubs_entry_set.
890 (Mips_output_data_mips_stubs::set_needs_dynsym_value): Likewise.
891 (Mips_output_data_mips_stubs::do_write): Likewise.
893 2016-05-06 Han Shen <shenhan@google.com>
897 * aarch64-reloc.def: New relocation type.
898 * aarch64.cc (AArch64_relocate_functions::Page): Changed to public.
899 (Target_aarch64::Scan::local): Add R_AARCH64_LD64_GOTPAGE_LO15.
900 (Target_aarch64::Scan::global): Add R_AARCH64_LD64_GOTPAGE_LO15.
901 (Target_aarch64::Relocate::relocate): Implement R_AARCH64_LD64_GOTPAGE_LO15.
903 2016-04-28 Nick Clifton <nickc@redhat.com>
905 * po/zh_CN.po: Updated Chinese (simplified) translation.
907 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
909 * Makefile.in: Regenerated with automake 1.11.6.
910 * aclocal.m4: Likewise.
911 * testsuite/Makefile.in: Likewise.
913 2016-03-30 Cary Coutant <ccoutant@gmail.com>
916 * symtab.cc (Symbol_table::define_default_version): Check for case
917 where symbols are both in different shared objects.
919 2016-03-27 Cary Coutant <ccoutant@gmail.com>
922 * i386.cc (Target_i386): Add check for fully-resolved symbol for
925 2016-03-22 Nick Clifton <nickc@redhat.com>
927 * configure: Regenerate.
929 2016-03-21 Cary Coutant <ccoutant@gmail.com>
932 * errors.cc (Errors::undefined_symbol): Add info message when
933 symbol should have been provided by a plugin.
934 * target-reloc.h (issue_undefined_symbol_error): Check for
935 placeholder symbols defined in discarded sections.
936 * testsuite/Makefile.am (plugin_test_9b): New test case.
937 * testsuite/Makefile.in: Regenerate.
938 * testsuite/plugin_test_9b_elf.cc: New test source file.
939 * testsuite/plugin_test_9b_ir.cc: New test source file.
941 2016-03-20 Cary Coutant <ccoutant@gmail.com>
944 * ehframe.cc (Eh_frame::read_fde): Check for dropped functions.
945 * testsuite/Makefile.am (eh_test_2): New test.
946 * testsuite/Makefile.in: Regenerate.
947 * testsuite/eh_test_2.sh: New test script.
948 * testsuite/eh_test_a.cc (bar): Make it comdat.
949 * testsuite/eh_test_b.cc (bar): Add a duplicate copy.
951 2016-03-18 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
953 * mips.cc (Mips_relobj::is_n64_): Remove.
954 (Target_mips::ei_class_): Likewise.
955 (Mips_relobj::is_newabi): Call methods.
956 (Mips_relobj::is_n64): Change checking for N64 ABI.
957 (Target_mips::is_output_n64): Likewise.
958 (Target_mips::merge_processor_specific_flags): Remove ei_class
959 argument, and remove comparing ei_class.
960 (Target_mips::do_adjust_elf_header): Remove setting EI_CLASS field
962 (Target_mips::do_finalize_sections): Don't pass ei_class argument
963 to merge_processor_specific_flags.
964 (Target_mips::elf_mips_abi_name): Remove ei_class argument, and
965 change checking for N64 ABI.
967 2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
969 * mips.cc (enum Special_relocation_symbol): New enum type.
970 (is_readonly_section): New function.
971 (eh_reloc): Likewise.
972 (Mips_got_entry::is_section_symbol_): New member.
973 (Mips_got_entry::is_section_symbol): New method.
974 (Mips_got_info::record_local_got_symbol): Add is_section_symbol
976 (Mips_relobj::mips_elf_options_section_name): New method.
977 (Mips_output_data_got::record_local_got_symbol): Add
978 is_section_symbol argument, and pass it to
979 Mips_got_info::record_local_got_symbol.
980 (Mips_output_data_got::got_offset): Add addend argument, and pass
981 it to Relobj::local_got_offset.
982 (struct Mips_output_reloc_writer): New type.
983 (class Mips_output_data_reloc): New class.
984 (Mips_output_data_plt::Reloc_section): Change type to
985 Mips_output_data_reloc.
986 (Target_mips::Reloc_section): Likewise.
987 (Mips_reloc_types::get_r_addend): Remove unsigned from return type.
988 (Mips_classify_reloc::get_r_type2): New method.
989 (Mips_classify_reloc::get_r_type3): Likewise.
990 (Mips_classify_reloc::get_r_ssym): Likewise.
991 (Target_mips::Reloca_section): Remove.
992 (Relocate::should_apply_static_reloc): Rename from
993 should_apply_r_mips_32_reloc.
994 (Target_mips::copy_reloc): Replace Reltype parameter with r_type
996 (Mips_relocate_functions::Valtype): New type.
997 (Mips_relocate_functions::Valtype64): New type.
998 (Mips_relocate_functions::check_overflow): New method.
999 (Mips_relocate_functions::mips_reloc_unshuffle): Move to public
1001 (Mips_relocate_functions::mips_reloc_shuffle): Likewise.
1002 (Mips_relocate_functions::rel16): Add support for resolving
1003 relocations for Mips64.
1004 (Mips_relocate_functions::rel32): Likewise.
1005 (Mips_relocate_functions::reljalr): Likewise.
1006 (Mips_relocate_functions::relpc32): Likewise.
1007 (Mips_relocate_functions::rel26): Likewise.
1008 (Mips_relocate_functions::relpc16): Likewise.
1009 (Mips_relocate_functions::relmicromips_pc7_s1): Likewise.
1010 (Mips_relocate_functions::relmicromips_pc10_s1): Likewise.
1011 (Mips_relocate_functions::relmicromips_pc16_s1): Likewise.
1012 (Mips_relocate_functions::do_relhi16): Likewise.
1013 (Mips_relocate_functions::do_relgot16_local): Likewise.
1014 (Mips_relocate_functions::rello16): Likewise.
1015 (Mips_relocate_functions::relgot): Likewise.
1016 (Mips_relocate_functions::relgotpage): Likewise.
1017 (Mips_relocate_functions::relgotofst): Likewise.
1018 (Mips_relocate_functions::relgot_hi16): Likewise.
1019 (Mips_relocate_functions::relgot_lo16): Likewise.
1020 (Mips_relocate_functions::relgprel): Likewise.
1021 (Mips_relocate_functions::relgprel32): Likewise.
1022 (Mips_relocate_functions::tlsrelhi16): Likewise.
1023 (Mips_relocate_functions::tlsrello16): Likewise.
1024 (Mips_relocate_functions::tlsrel32): Likewise.
1025 (Mips_relocate_functions::relsub): Likewise.
1026 (Mips_relocate_functions::releh): New method.
1027 (Mips_relocate_functions::rel64): Likewise.
1028 (Mips_got_info::record_local_got_symbol): Add is_section_symbol and
1029 pass it to Mips_got_entry.
1030 (Mips_got_info::add_local_entries): Pass addend argument
1031 to code functions, and for STT_SECTION symbols call
1032 add_symbolless_local_addend.
1033 (Mips_got_info::add_tls_entries): Pass addend argument to code
1035 (Mips_relobj::do_read_symbols): Read gp value that was used to
1037 (Mips_output_data_plt::plt_entry): Remove opcode from l[wd]
1038 instruction. Opcode for instruction will be selected later.
1039 (Target_mips::gc_process_relocs): Add case for SHT_RELA.
1040 (Target_mips::scan_relocatable_relocs): Likewise.
1041 (Target_mips::emit_relocs_scan): Likewise.
1042 (Target_mips::relocate_relocs): Likewise.
1043 (Target_mips::do_finalize_sections): Skip objects for merging
1044 processor specific flags in which all input sections will be
1046 (mips_get_size_for_reloc): Add case for R_MIPS_EH.
1047 (Target_mips::Scan::get_reference_flags): Likewise.
1048 (Target_mips::relocate_special_relocatable): Call rel26 method with
1049 calculate_only and calculated_value arguments.
1050 (Target_mips::Scan::local): Add case for R_MIPS_EH. Don't create a
1051 dynamic relocation against a readonly sections, and pass
1052 is_section_symbol to Mips_got_info::record_local_got_symbol.
1053 (Target_mips::Scan::global): Add case for R_MIPS_EH. Don't create a
1054 dynamic relocation against a readonly sections, and pass r_type
1055 and r_offset to Target_mips::copy_reloc.
1056 (Target_mips::Relocate::relocate): Add support for resolving
1057 relocations for Mips64.
1058 (Target_mips::mips_info): Add case for Mips64 default dynamic
1060 (Target_selector_mips): Correct emulation names.
1062 2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
1064 * mips.cc (class Mips_output_data_la25_stub): Add
1065 do_print_to_mapfile function.
1067 2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
1069 * mips.cc (Mips_classify_reloc::put_r_info): Call 32bit version of
1072 2016-03-09 H.J. Lu <hongjiu.lu@intel.com>
1074 * testsuite/plugin_layout_with_alignment.cc: Renamed to ..
1075 * testsuite/plugin_layout_with_alignment.c: This.
1076 * testsuite/Makefile.am (plugin_layout_with_alignment.o): Updated.
1077 (plugin_layout_with_alignment): Likewise.
1078 * testsuite/Makefile.in: Regenerated.
1080 2016-03-08 Cary Coutant <ccoutant@gmail.com>
1083 * testsuite/Makefile.am (retain_symbols_file_test): Remove check
1085 * testsuite/Makefile.in: Regenerate.
1086 * testsuite/dynamic_list.sh: Likewise.
1087 * testsuite/retain_symbols_file_test.sh: Likewise.
1089 2016-03-08 Cary Coutant <ccoutant@gmail.com>
1092 * arm.cc (Reloc_stub::Key::name): Add unused attribute.
1093 * dirsearch.cc (Dir_caches::~Dir_caches): Likewise.
1095 2016-03-08 Cary Coutant <ccoutant@gmail.com>
1096 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
1098 * output.cc (Output_reloc_writer): New type.
1099 (Output_data_reloc_base::do_write): Move implementation to template
1100 in output.h and replace with invocation of template.
1101 * output.h (Output_file): Move to top of file.
1102 (Output_reloc::get_symbol_index): Move to public interface.
1103 (Output_reloc::get_address): Likewise.
1104 (Output_data_reloc_base::do_write_generic): New function template.
1106 2016-03-04 Cary Coutant <ccoutant@gmail.com>
1110 * symtab.cc: Instantiate Sized_symbol::init_constant and
1111 Sized_symbol::init_undefined.
1113 2016-03-03 Cary Coutant <ccoutant@gmail.com>
1116 * layout.h (Layout::add_target_specific_dynamic_tag): New function.
1117 * layout.cc (Layout::add_target_specific_dynamic_tag): New function.
1118 * mips.cc (Target_mips::make_symbol): Adjust function signature.
1119 * sparc.cc (Target_sparc::Target_sparc): Initialize register_syms_.
1120 (Target_sparc::do_is_defined_by_abi): Remove test for
1122 (Target_sparc::Register_symbol): New struct type.
1123 (Target_sparc::register_syms_): New data member.
1124 (Target_sparc<64, true>::sparc_info): Set has_make_symbol to true.
1125 (Target_sparc::make_symbol): New function.
1126 (Target_sparc::do_finalize_sections): Add register symbols and new
1127 dynamic table entries.
1128 * symtab.h (Sized_symbol::init_undefined): Add value parameter.
1129 (Symbol_table::add_target_global_symbol): New function.
1130 (Symbol_table::target_symbols_): New data member.
1131 * symtab.cc (Sized_symbol::init_undefined): Add value parameter.
1132 (Symbol_table::Symbol_table): Initialize target_symbols_.
1133 (Symbol_table::add_from_object): Pass additional parameters to
1134 Target::make_symbol.
1135 (Symbol_table::define_special_symbol): Likewise.
1136 (Symbol_table::add_undefined_symbol_from_command_line): Pass 0 for
1137 undefined symbol value.
1138 (Symbol_table::set_dynsym_indexes): Process target-specific symbols.
1139 (Symbol_table::sized_finalize): Likewise.
1140 (Symbol_table::sized_write_globals): Likewise.
1141 * target.h (Sized_target::make_symbol): Add name, st_type, object,
1142 st_shndx, and value parameters.
1144 2016-03-03 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
1146 * plugin.cc (do_should_include_member): Ignore LDPK_UNDEF and
1147 LDPK_WEAKUNDEF symbols.
1149 2016-03-03 Than McIntosh <thanm@google.com>
1151 * plugin.cc (Plugin::load): Include hooks for get_input_section_size
1152 and get_input_section_alignment in transfer vector.
1153 (get_input_section_alignment): New function.
1154 (get_input_section_size): New function.
1155 * testsuite/Makefile.am: Add plugin_layout_with_alignment.sh test.
1156 * testsuite/Makefile.in: [Regenerate.]
1157 * testsuite/plugin_section_alignment.cc: New test file.
1158 * testsuite/plugin_layout_with_alignment.cc: New test file.
1159 * testsuite/plugin_layout_with_alignment.sh: New test file.
1161 2016-03-03 Evgenii Stepanov <eugenis@google.com>
1163 * plugin.h (Pluginobj::get_symbol_resolution_info): Add version
1165 * plugin.cc (get_symbols_v3): New function.
1166 (Plugin::load): Add LDPT_GET_SYMBOLS_V3.
1167 (Pluginobj::get_symbol_resolution_info): Return LDPS_NO_SYMS when using
1170 2016-02-26 Egor Kochetov <egor.kochetov@intel.com>
1171 Cary Coutant <ccoutant@gmail.com>
1174 * ehframe.h (Cie::fde_encoding): New method.
1175 * ehframe.cc (Eh_frame::read_fde): Discard FDEs for zero-length
1178 2016-02-15 H.J. Lu <hongjiu.lu@intel.com>
1180 * testsuite/Makefile.am (x86_64_mov_to_lea5.o): Pass
1181 -mrelax-relocations=yes to $(TEST_AS).
1182 (x86_64_mov_to_lea6.o): Likewise.
1183 (x86_64_overflow_pc32.o): Remove duplicated target.
1184 * testsuite/Makefile.in: Regenerated.
1186 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
1188 * s390.cc (Target_s390::match_view_u): New helper method.
1189 (Target_s390::do_is_call_to_non_split): New method.
1190 (Target_s390::ss_code_st_r14): New const.
1191 (Target_s390::ss_code_l_r14): New const.
1192 (Target_s390::ss_code_bras_8): New const.
1193 (Target_s390::ss_code_l_basr): New const.
1194 (Target_s390::ss_code_a_basr): New const.
1195 (Target_s390::ss_code_ear): New const.
1196 (Target_s390::ss_code_c): New const.
1197 (Target_s390::ss_code_larl): New const.
1198 (Target_s390::ss_code_brasl): New const.
1199 (Target_s390::ss_code_jg): New const.
1200 (Target_s390::ss_code_jgl): New const.
1201 (Target_s390::ss_match_mcount): New helper method.
1202 (Target_s390::ss_match_l): New helper method.
1203 (Target_s390::ss_match_ahi): New helper method.
1204 (Target_s390::ss_match_alfi): New helper method.
1205 (Target_s390::ss_match_cr): New helper method.
1206 (Target_s390::do_calls_non_split): New method.
1207 * testsuite/Makefile.am: Added new tests.
1208 * testsuite/Makefile.in: Regenerate.
1209 * testsuite/split_s390.sh: New test.
1210 * testsuite/split_s390_1_a1.s: New test.
1211 * testsuite/split_s390_1_a2.s: New test.
1212 * testsuite/split_s390_1_n1.s: New test.
1213 * testsuite/split_s390_1_n2.s: New test.
1214 * testsuite/split_s390_1_z1.s: New test.
1215 * testsuite/split_s390_1_z2.s: New test.
1216 * testsuite/split_s390_1_z3.s: New test.
1217 * testsuite/split_s390_1_z4.s: New test.
1218 * testsuite/split_s390_2_ns.s: New test.
1219 * testsuite/split_s390_2_s.s: New test.
1220 * testsuite/split_s390x_1_a1.s: New test.
1221 * testsuite/split_s390x_1_a2.s: New test.
1222 * testsuite/split_s390x_1_n1.s: New test.
1223 * testsuite/split_s390x_1_n2.s: New test.
1224 * testsuite/split_s390x_1_z1.s: New test.
1225 * testsuite/split_s390x_1_z2.s: New test.
1226 * testsuite/split_s390x_1_z3.s: New test.
1227 * testsuite/split_s390x_1_z4.s: New test.
1228 * testsuite/split_s390x_2_ns.s: New test.
1229 * testsuite/split_s390x_2_s.s: New test.
1231 2016-02-11 Rahul Chaudhry <rahulchaudhry@google.com>
1233 * aarch64.cc (Target_aarch64::scan_erratum_843419_span): Remove
1234 info message for every erratum 843419 found and fixed.
1236 2016-02-07 Cary Coutant <ccoutant@gmail.com>
1239 * x86_64.cc (Target_x86_64::Relocate::relocate): Add additional
1240 information to relocation overflow errors.
1242 2016-02-06 Cary Coutant <ccoutant@gmail.com>
1245 * x86_64.cc (X86_64_relocate_functions::pcrela32_check): Fix x32
1246 overflow checking when symbol value + addend < 0.
1248 2016-02-06 Cary Coutant <ccoutant@gmail.com>
1251 * reloc.h (Limits): New class.
1252 (Bits::has_overflow32): Use min/max values from Limits.
1253 (Bits::has_unsigned_overflow32): Likewise.
1254 (Bits::has_signed_unsigned_overflow32): Likewise.
1255 (Bits::has_overflow): Likewise.
1256 (Bits::has_unsigned_overflow): Likewise.
1257 (Bits::has_signed_unsigned_overflow64): Likewise.
1259 2016-02-06 Cary Coutant <ccoutant@gmail.com>
1262 * reloc.h (Relocate_functions::Overflow_check): Add comments.
1263 * x86_64.cc (X86_64_relocate_functions): New class.
1264 (Target_x86_64::Relocate::relocate): Use the new class.
1265 * testsuite/Makefile.am (x86_64_overflow_pc32): Add -Tdata option.
1266 (x32_overflow_pc32): New test case.
1267 * testsuite/Makefile.in: Regenerate.
1268 * testsuite/x32_overflow_pc32.sh: New script.
1269 * testsuite/x86_64_overflow_pc32.s: Remove .space directive.
1271 2016-02-06 Cary Coutant <ccoutant@gmail.com>
1274 * reloc.h (Bits::has_unsigned_overflow32): Fix static_cast.
1275 (Bits::has_unsigned_overflow): Remove unnecessary static_cast.
1277 2016-02-06 Cary Coutant <ccoutant@gmail.com>
1280 * reloc.h (Bits::has_unsigned_overflow32): Fix unsigned/signed
1282 (Bits::has_unsigned_overflow): Likewise.
1284 2016-02-06 Marcin Kościelnicki <koriakin@0x04.net>
1286 * i386.cc (Target_i386::is_call_to_non_split): Add view and view_size
1288 * reloc.cc (Sized_relobj_file::split_stack_adjust_reltype): Pass view
1289 and view_size to is_call_to_non_split.
1290 * target.cc (Target::is_call_to_non_split): Add view and view_size
1292 * target.h (class Target): Likewise.
1294 2016-02-05 Sriraman Tallam <tmsriram@google.com>
1296 * icf.cc (get_rel_addend): New function.
1297 (get_section_contents): Move merge section addend computation to a
1298 new function. Ignore negative values for SHT_REL and SHT_RELA addends.
1299 Fix bug to not read past the length of the section.
1301 2016-02-05 Cary Coutant <ccoutant@gmail.com>
1302 Andrew Senkevich <andrew.senkevich@intel.com>
1305 * x86_64.cc (Target_x86_64::Relocate::relocate): Add overflow
1306 checking for R_X86_64_32, R_X86_64_32S, R_X86_64_PC32, and
1308 * testsuite/Makefile.am (x86_64_overflow_pc32): New test.
1309 * testsuite/x86_64_overflow_pc32.sh: New test script.
1310 * testsuite/x86_64_overflow_pc32.s: New source file.
1312 2016-02-05 Cary Coutant <ccoutant@gmail.com>
1315 * reloc.h (Relocate_functions::Address): New typedef.
1316 (Relocate_functions::Addendtype): New typedef.
1317 (Relocate_functions::Overflow_check): New enum type.
1318 (Relocate_functions::Reloc_status): New enum type.
1319 (Relocate_functions::check_overflow): New function template.
1320 (Relocate_functions::rel): Add check parameter; check for overflow.
1321 (Relocate_functions::rel_unaligned): Likewise.
1322 (Relocate_functions::rela): Likewise.
1323 (Relocate_functions::pcrel): Likewise.
1324 (Relocate_functions::pcrel_unaligned): Likewise.
1325 (Relocate_functions::pcrela): Likewise.
1326 (Relocate_functions::rel8): Adjust parameter types.
1327 (Relocate_functions::rela8): Likewise.
1328 (Relocate_functions::pcrel8): Likewise.
1329 (Relocate_functions::pcrela8): Likewise.
1330 (Relocate_functions::rel16): Likewise.
1331 (Relocate_functions::rela168): Likewise.
1332 (Relocate_functions::pcrel16): Likewise.
1333 (Relocate_functions::pcrela16): Likewise.
1334 (Relocate_functions::rel32): Likewise.
1335 (Relocate_functions::rel32_unaligned): Likewise.
1336 (Relocate_functions::rela32): Likewise.
1337 (Relocate_functions::pcrel32): Likewise.
1338 (Relocate_functions::pcrel32_unaligned): Likewise.
1339 (Relocate_functions::pcrela32): Likewise.
1340 (Relocate_functions::rel8_check): New function.
1341 (Relocate_functions::rela8_check): New function.
1342 (Relocate_functions::pcrel8_check): New function.
1343 (Relocate_functions::pcrela8_check): New function.
1344 (Relocate_functions::rel16_check): New function.
1345 (Relocate_functions::rela168_check): New function.
1346 (Relocate_functions::pcrel16_check): New function.
1347 (Relocate_functions::pcrela16_check): New function.
1348 (Relocate_functions::rel32_check): New function.
1349 (Relocate_functions::rel32_unaligned_check): New function.
1350 (Relocate_functions::rela32_check): New function.
1351 (Relocate_functions::pcrel32_check): New function.
1352 (Relocate_functions::pcrel32_unaligned_check): New function.
1353 (Relocate_functions::pcrela32_check): New function.
1354 (Bits::has_unsigned_overflow32): New function.
1355 (Bits::has_unsigned_overflow): New function.
1356 * testsuite/Makefile.am (overflow_unittest): New test.
1357 * testsuite/Makefile.in: Regenerate.
1358 * testsuite/overflow_unittest.cc: New source file.
1360 2016-02-04 Alan Modra <amodra@gmail.com>
1362 * powerpc.cc (relocate): Adjust last patch for big-endian.
1364 2016-02-02 Alan Modra <amodra@gmail.com>
1366 * powerpc.cc (relocate): Further restrict ELFv2 entry optimization.
1368 2016-01-15 Han Shen <shenhan@google.com>
1370 PR gold/19472 - need pc-relative stubs.
1372 * aarch64.cc (Reloc_stub::stub_type_for_reloc): Return PC-relative
1373 stub type for DSOs and pie executables.
1375 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
1377 * i386.cc (Target_i386::Classify_reloc::get_r_addend): Remove
1380 2016-01-12 Cary Coutant <ccoutant@gmail.com>
1382 * arm.cc (Target_arm::Classify_reloc::get_r_addend): New method.
1383 * i386.cc (Target_i386::Classify_reloc::get_r_addend): New method.
1384 * mips.cc (Target_arm::Mips_classify_reloc::get_r_addend): (Both
1385 specializations) New method.
1387 2016-01-11 Cary Coutant <ccoutant@gmail.com>
1390 * aarch64.cc (Target_aarch64::relocate_tls): Don't insist that
1391 we have a TLS segment for GD-to-IE optimization.
1392 * i386.cc (Target_i386::tls_gd_to_ie): Remove tls_segment parameter.
1394 (Target_i386::tls_desc_gd_to_ie): Likewise.
1395 (Target_i386::relocate_tls): Don't insist that we have a TLS segment
1396 for TLSDESC GD-to-IE optimizations.
1397 * x86_64.cc (Target_x86_64::tls_gd_to_ie): Remove tls_segment parameter.
1399 (Target_x86_64::tls_desc_gd_to_ie): Likewise.
1400 (Target_x86_64::relocate_tls): Don't insist that we have a TLS segment
1401 for TLSDESC GD-to-IE optimizations.
1403 2016-01-11 Cary Coutant <ccoutant@gmail.com>
1405 Refactor gold to enable support for MIPS-64 relocation format.
1407 * gc.h (get_embedded_addend_size): Remove sh_type parameter.
1408 (gc_process_relocs): Remove sh_type template parameter.
1409 Use Classify_reloc to access r_sym, r_type, and r_addend fields.
1410 * object.h (Sized_relobj_file::split_stack_adjust): Add target
1412 (Sized_relobj_file::split_stack_adjust_reltype): Likewise.
1413 * reloc-types.h (Reloc_types::copy_reloc_addend): (SHT_REL and SHT_RELA
1414 specializations) Remove.
1415 * reloc.cc (Emit_relocs_strategy): Rename and move to target-reloc.h.
1416 (Sized_relobj_file::emit_relocs_scan): Call Target::emit_relocs_scan().
1417 (Sized_relobj_file::emit_relocs_scan_reltype): Remove.
1418 (Sized_relobj_file::split_stack_adjust): Add target parameter.
1420 (Sized_relobj_file::split_stack_adjust_reltype): Likewise. Call
1421 Target::get_r_sym() to get r_sym field from relocations.
1422 (Track_relocs::next_symndx): Call Target::get_r_sym().
1423 * target-reloc.h (scan_relocs): Remove sh_type template parameter;
1424 add Classify_reloc template parameter. Use for accessing r_sym and
1426 (relocate_section): Likewise.
1427 (Default_classify_reloc): New class (renamed and moved from reloc.cc).
1428 (Default_scan_relocatable_relocs): Remove sh_type template parameter.
1429 (Default_scan_relocatable_relocs::Reltype): New typedef.
1430 (Default_scan_relocatable_relocs::reloc_size): New const.
1431 (Default_scan_relocatable_relocs::sh_type): New const.
1432 (Default_scan_relocatable_relocs::get_r_sym): New method.
1433 (Default_scan_relocatable_relocs::get_r_type): New method.
1434 (Default_emit_relocs_strategy): New class.
1435 (scan_relocatable_relocs): Replace sh_type template parameter with
1436 Scan_relocatable_relocs class. Use it to access r_sym and r_type
1438 (relocate_relocs): Replace sh_type template parameter with
1439 Classify_reloc class. Use it to access r_sym and r_type fields.
1440 * target.h (Target::is_call_to_non_split): Replace r_type parameter
1441 with pointer to relocation. Adjust all callers.
1442 (Target::do_is_call_to_non_split): Likewise.
1443 (Target::emit_relocs_scan): New virtual method.
1444 (Sized_target::get_r_sym): New virtual method.
1445 * target.cc (Target::do_is_call_to_non_split): Replace r_type parameter
1446 with pointer to relocation.
1448 * aarch64.cc (Target_aarch64::emit_relocs_scan): New method.
1449 (Target_aarch64::Relocatable_size_for_reloc): Remove.
1450 (Target_aarch64::gc_process_relocs): Use Default_classify_reloc.
1451 (Target_aarch64::scan_relocs): Likewise.
1452 (Target_aarch64::relocate_section): Likewise.
1453 (Target_aarch64::Relocatable_size_for_reloc::get_size_for_reloc):
1455 (Target_aarch64::scan_relocatable_relocs): Use Default_classify_reloc.
1456 (Target_aarch64::relocate_relocs): Use Default_classify_reloc.
1457 * arm.cc (Target_arm::Arm_scan_relocatable_relocs): Remove sh_type
1459 (Target_arm::emit_relocs_scan): New method.
1460 (Target_arm::Relocatable_size_for_reloc): Replace with...
1461 (Target_arm::Classify_reloc): ...this.
1462 (Target_arm::gc_process_relocs): Use Classify_reloc.
1463 (Target_arm::scan_relocs): Likewise.
1464 (Target_arm::relocate_section): Likewise.
1465 (Target_arm::scan_relocatable_relocs): Likewise.
1466 (Target_arm::relocate_relocs): Likewise.
1467 * i386.cc (Target_i386::emit_relocs_scan): New method.
1468 (Target_i386::Relocatable_size_for_reloc): Replace with...
1469 (Target_i386::Classify_reloc): ...this.
1470 (Target_i386::gc_process_relocs): Use Classify_reloc.
1471 (Target_i386::scan_relocs): Likewise.
1472 (Target_i386::relocate_section): Likewise.
1473 (Target_i386::scan_relocatable_relocs): Likewise.
1474 (Target_i386::relocate_relocs): Likewise.
1475 * mips.cc (Mips_scan_relocatable_relocs): Remove sh_type template
1477 (Mips_reloc_types): New class template.
1478 (Mips_classify_reloc): New class template.
1479 (Target_mips::Reltype): New typedef.
1480 (Target_mips::Relatype): New typedef.
1481 (Target_mips::emit_relocs_scan): New method.
1482 (Target_mips::get_r_sym): New method.
1483 (Target_mips::Relocatable_size_for_reloc): Replace with
1484 Mips_classify_reloc.
1485 (Target_mips::copy_reloc): Use Mips_classify_reloc.
1486 (Target_mips::gc_process_relocs): Likewise.
1487 (Target_mips::scan_relocs): Likewise.
1488 (Target_mips::relocate_section): Likewise.
1489 (Target_mips::scan_relocatable_relocs): Likewise.
1490 (Target_mips::relocate_relocs): Likewise.
1491 (mips_get_size_for_reloc): New function, factored out from
1492 Relocatable_size_for_reloc::get_size_for_reloc.
1493 (Target_mips::Scan::local): Use Mips_classify_reloc.
1494 (Target_mips::Scan::global): Likewise.
1495 (Target_mips::Relocate::relocate): Likewise.
1496 * powerpc.cc (Target_powerpc::emit_relocs_scan): New method.
1497 (Target_powerpc::Relocatable_size_for_reloc): Remove.
1498 (Target_powerpc::gc_process_relocs): Use Default_classify_reloc.
1499 (Target_powerpc::scan_relocs): Likewise.
1500 (Target_powerpc::relocate_section): Likewise.
1501 (Powerpc_scan_relocatable_reloc): Convert to class template.
1502 (Powerpc_scan_relocatable_reloc::Reltype): New typedef.
1503 (Powerpc_scan_relocatable_reloc::reloc_size): New const.
1504 (Powerpc_scan_relocatable_reloc::sh_type): New const.
1505 (Powerpc_scan_relocatable_reloc::get_r_sym): New method.
1506 (Powerpc_scan_relocatable_reloc::get_r_type): New method.
1507 (Target_powerpc::scan_relocatable_relocs): Use
1508 Powerpc_scan_relocatable_reloc.
1509 (Target_powerpc::relocate_relocs): Use Default_classify_reloc.
1510 * s390.cc (Target_s390::emit_relocs_scan): New method.
1511 (Target_s390::Relocatable_size_for_reloc): Remove.
1512 (Target_s390::gc_process_relocs): Use Default_classify_reloc.
1513 (Target_s390::scan_relocs): Likewise.
1514 (Target_s390::relocate_section): Likewise.
1515 (Target_s390::Relocatable_size_for_reloc::get_size_for_reloc):
1517 (Target_s390::scan_relocatable_relocs): Use Default_classify_reloc.
1518 (Target_s390::relocate_relocs): Use Default_classify_reloc.
1519 * sparc.cc (Target_sparc::emit_relocs_scan): New method.
1520 (Target_sparc::Relocatable_size_for_reloc): Remove.
1521 (Target_sparc::gc_process_relocs): Use Default_classify_reloc.
1522 (Target_sparc::scan_relocs): Likewise.
1523 (Target_sparc::relocate_section): Likewise.
1524 (Target_sparc::Relocatable_size_for_reloc::get_size_for_reloc):
1526 (Target_sparc::scan_relocatable_relocs): Use Default_classify_reloc.
1527 (Target_sparc::relocate_relocs): Use Default_classify_reloc.
1528 * tilegx.cc (Target_tilegx::emit_relocs_scan): New method.
1529 (Target_tilegx::Relocatable_size_for_reloc): Remove.
1530 (Target_tilegx::gc_process_relocs): Use Default_classify_reloc.
1531 (Target_tilegx::scan_relocs): Likewise.
1532 (Target_tilegx::relocate_section): Likewise.
1533 (Target_tilegx::Relocatable_size_for_reloc::get_size_for_reloc):
1535 (Target_tilegx::scan_relocatable_relocs): Use Default_classify_reloc.
1536 (Target_tilegx::relocate_relocs): Use Default_classify_reloc.
1537 * x86_64.cc (Target_x86_64::emit_relocs_scan): New method.
1538 (Target_x86_64::Relocatable_size_for_reloc): Remove.
1539 (Target_x86_64::gc_process_relocs): Use Default_classify_reloc.
1540 (Target_x86_64::scan_relocs): Likewise.
1541 (Target_x86_64::relocate_section): Likewise.
1542 (Target_x86_64::Relocatable_size_for_reloc::get_size_for_reloc):
1544 (Target_x86_64::scan_relocatable_relocs): Use Default_classify_reloc.
1545 (Target_x86_64::relocate_relocs): Use Default_classify_reloc.
1547 * testsuite/testfile.cc (Target_test::emit_relocs_scan): New method.
1549 2016-01-01 Alan Modra <amodra@gmail.com>
1551 Update year range in copyright notice of all files.
1553 For older changes see ChangeLog-0815
1555 Copyright (C) 2016 Free Software Foundation, Inc.
1557 Copying and distribution of this file, with or without modification,
1558 are permitted in any medium without royalty provided the copyright
1559 notice and this notice are preserved.
1565 version-control: never