1 2016-06-29 H.J. Lu <hongjiu.lu@intel.com>
4 * configure.ac (DEFAULT_TARGET_X86_64_OR_X32): New
6 * configure: Regenerated.
7 * x86_64.cc (Target_x86_64<size>::Relocate::relocate): Allow
8 R_X86_64_GOTPCRELX relocation against __tls_get_addr.
9 (Target_x86_64<size>::Relocate::tls_gd_to_ie): Support indirect
10 call to __tls_get_addr.
11 (Target_x86_64<size>::Relocate::tls_gd_to_le): Likewise.
12 (Target_x86_64<size>::Relocate::tls_ld_to_le): Likewise.
13 * testsuite/Makefile.am (check_PROGRAMS): Add pr20216a_test,
14 pr20216b_test, pr20216c_test, pr20216d_test, pr20216e_test.
15 (pr20216a_test_SOURCES): New.
16 (pr20216a_test_DEPENDENCIES): Likewise.
17 (pr20216a_test_CFLAGS): Likewise.
18 (pr20216a_test_LDFLAGS): Likewise.
19 (pr20216a_test_LDADD): Likewise.
20 (pr20216b_test_SOURCES): Likewise.
21 (pr20216b_test_DEPENDENCIES): Likewise.
22 (pr20216b_test_CFLAGS): Likewise.
23 (pr20216b_test_LDFLAGS): Likewise.
24 (pr20216b_test_LDADD): Likewise.
25 (pr20216c_test_SOURCES): Likewise.
26 (pr20216c_test_DEPENDENCIES): Likewise.
27 (pr20216c_test_CFLAGS): Likewise.
28 (pr20216c_test_LDFLAGS): Likewise.
29 (pr20216c_test_LDADD): Likewise.
30 (pr20216d_test_SOURCES): Likewise.
31 (pr20216d_test_DEPENDENCIES): Likewise.
32 (pr20216d_test_CFLAGS): Likewise.
33 (pr20216d_test_LDFLAGS): Likewise.
34 (pr20216d_test_LDADD): Likewise.
35 (pr20216e_test_SOURCES): Likewise.
36 (pr20216e_test_DEPENDENCIES): Likewise.
37 (pr20216e_test_CFLAGS): Likewise.
38 (pr20216e_test_LDFLAGS): Likewise.
39 (pr20216e_test_LDADD): Likewise.
40 (pr20216a.so): Likewise.
41 (pr20216b.so): Likewise.
42 (pr20216_gd.o): Likewise.
43 (pr20216_ld.o): Likewise.
44 (MOSTLYCLEANFILES): Add pr20216a.so pr20216b.so.
45 * testsuite/Makefile.in: Regenerated.
46 * testsuite/pr20216_def.c: New file.
47 * testsuite/pr20216_gd.S: Likewise.
48 * testsuite/pr20216_ld.S: Likewise.
49 * testsuite/pr20216_main.c: Likewise.
51 2016-06-29 Alan Modra <amodra@gmail.com>
53 * script_test_12.t: Delete .plt, specify 64k page size.
54 * script_test_12i.t: Likewise.
56 2016-06-29 Alan Modra <amodra@gmail.com>
58 * testsuite/plugin_layout_with_alignment.c: Explicitly align all
61 2016-06-29 Alan Modra <amodra@gmail.com>
63 * testsuite/Makefile.am (copy_test_protected): Disable for powerpc.
64 * testsuite/Makefile.in: Regenerate.
66 2016-06-28 Igor Kudrin <ikudrin@accesssoftek.com>
68 * aarch64-reloc.def (NONE): New relocation.
69 * aarch64.cc (Target_aarch64::Scan::local): Handle R_AARCH64_NONE.
70 (Target_aarch64::Scan::global): Likewise.
71 * testsuite/Makefile.am (aarch64_reloc_none): New test.
72 * testsuite/Makefile.in: Regenerate.
73 * testsuite/aarch64_reloc_none.s: New test source file.
74 * testsuite/aarch64_reloc_none.sh: New test script.
76 2016-06-28 Sriraman Tallam <tmsriram@google.com>
78 * x86_64.cc (Lazy_view): New class.
79 (can_convert_mov_to_lea): Templatize function. Make the function
80 check for appropriate relocation types and use the view parameter
81 to get section contents.
82 (can_convert_callq_to_direct): New function.
83 (Target_x86_64<size>::Scan::global): Refactor.
84 (Target_x86_64<size>::Relocate::relocate): Refactor. Change any indirect
85 call via GOT that can be converted.
86 * testsuite/Makefile.am (x86_64_indirect_call_to_direct.sh): New test.
87 * testsuite/Makefile.in: Regenerate.
88 * testsuite/x86_64_indirect_call_to_direct1.s: New file.
89 * testsuite/x86_64_indirect_jump_to_direct1.s: New file.
91 2016-06-28 Igor Kudrin <ikudrin@accesssoftek.com>
93 * aarch64.cc (Target_aarch64::Scan::local): Move the call to got_section
94 from the top level to the places of its use.
96 2016-06-28 Igor Kudrin <ikudrin@accesssoftek.com>
99 * script-c.h (Sort_wildcard): Add SORT_WILDCARD_BY_INIT_PRIORITY.
100 * script-sections.cc (Input_section_sorter::get_init_priority): New method.
101 (Input_section_sorter::operator()): Handle SORT_WILDCARD_BY_INIT_PRIORITY.
102 (Output_section_element_input::print): Likewise.
103 * script.cc (script_keyword_parsecodes): Add entry SORT_BY_INIT_PRIORITY.
104 * yyscript.y (SORT_BY_INIT_PRIORITY): New token.
105 (wildcard_section): Handle SORT_BY_INIT_PRIORITY.
107 * testsuite/Makefile.am (script_test_14): New test.
108 * testsuite/Makefile.in: Regenerate.
109 * testsuite/script_test_14.s: New test source file.
110 * testsuite/script_test_14.sh: New test script.
111 * testsuite/script_test_14.t: New test linker script.
113 2016-06-28 James Clarke <jrtc27@jrtc27.com>
115 * sparc.cc (Target_sparc::Scan::local): Don't convert R_SPARC_32
116 to R_SPARC_RELATIVE if class is ELFCLASS64.
117 (Target_sparc::Scan::global): Likewise.
119 2016-06-23 Cary Coutant <ccoutant@gmail.com>
120 Igor Kudrin <ikudrin@accesssoftek.com>
124 (Output_section_element_input::set_section_addresses): Keep bin_count
125 separate from input_pattern_count.
126 * testsuite/script_test_12.t: Add another section .x4.
127 * testsuite/script_test_12i.t: Likewise.
128 * testsuite/script_test_12a.c: Likewise.
129 * testsuite/script_test_12b.c: Likewise.
131 2016-06-23 Igor Kudrin <ikudrin@accesssoftek.com>
133 * gold-threads.cc (impl_threads::Lock_impl_threads): Fix typos.
135 2016-06-22 H.J. Lu <hongjiu.lu@intel.com>
138 * NEWS: Mention --enable-relro.
139 * configure.ac: Add --enable-relro.
140 (DEFAULT_LD_Z_RELRO): New. Set by --enable-relro and default
142 * config.in: Regenerated.
143 * configure: Likewise.
144 * options.h (General_options::relro): Default to
147 2016-06-20 Cary Coutant <ccoutant@gmail.com>
149 * NEWS: Add new features in 1.12.
150 * version.cc (version_string): Bump to 1.12.
152 2016-06-20 H.J. Lu <hongjiu.lu@intel.com>
155 * i386.cc (Target_i386::first_plt_entry_offset): Return 0 if
157 (Target_i386::plt_entry_size): Likewise.
158 (Target_x86_64<size>::first_plt_entry_offset): Likewise.
159 (Target_x86_64<size>::plt_entry_size): Likewise.
161 2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
163 * mips.cc (Target_mips::Target_mips): Initialize rld_map_.
164 (Target_mips::rld_map_): New data member.
165 (Target_mips::do_finalize_sections): Add support for
166 DT_MIPS_RLD_MAP and DT_MIPS_RLD_MAP_REL dynamic tags,
167 .rld_map section, and __RLD_MAP symbol.
168 (Target_mips::do_dynamic_tag_custom_value): Add support for
169 DT_MIPS_RLD_MAP_REL dynamic tag.
170 * output.cc (Output_data_dynamic::get_entry_offset): New method
172 * output.h (Output_data_dynamic::get_entry_offset): New method
175 2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
177 * mips.cc (Mips_relocate_functions::relpc16): Add unaligned check.
179 2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
181 * mips.cc (relocation_needs_la25_stub): Add support for relocs:
182 R_MIPS_PC21_S2 and R_MIPS_PC26_S2.
183 (hi16_reloc): Add support for R_MIPS_PCHI16 relocation.
184 (is_matching_lo16_reloc): Likewise.
185 (lo16_reloc): Add support for R_MIPS_PCLO16 relocation.
186 (Mips_output_data_plt::plt_entry_r6): New static data member for
188 (Target_mips::is_output_r6): New method.
189 (Target_mips::Mips_mach): Add new enum constants.
190 (Mips_relocate_functions::Status): Likewise.
191 (Mips_relocate_functions::pchi16_relocs): New static data member.
192 (Mips_relocate_functions::relpc21): New method.
193 (Mips_relocate_functions::relpc26): Likewise.
194 (Mips_relocate_functions::relpc18): Likewise.
195 (Mips_relocate_functions::relpc19): Likewise.
196 (Mips_relocate_functions::relpchi16): Likewise.
197 (Mips_relocate_functions::do_relpchi16): Likewise.
198 (Mips_relocate_functions::relpclo16): Likewise.
199 (Mips_output_data_plt::do_write): Add support for Mips r6 plt
201 (Target_mips::mips_32bit_flags): Add E_MIPS_ARCH_32R6 support.
202 (Target_mips::elf_mips_mach): Add E_MIPS_ARCH_32R6 and
203 E_MIPS_ARCH_64R6 support.
204 (Target_mips::update_abiflags_isa): Likewise.
205 (mips_get_size_for_reloc): Add support for relocs: R_MIPS_PCHI16,
206 R_MIPS_PCLO16, R_MIPS_PC21_S2, R_MIPS_PC26_S2, R_MIPS_PC18_S3 and
208 (Target_mips::Scan::local): Add support for relocs: R_MIPS_PCHI16
210 (Target_mips::Scan::global): Add support for relocs:
211 R_MIPS_PC21_S2 and R_MIPS_PC26_S2.
212 (Target_mips::Relocate::relocate): Call functions for resolving
213 Mips32r6 and Mips64r6 relocations, and print error message for
214 STATUS_PCREL_UNALIGNED.
215 (Target_mips::Scan::get_reference_flags): Add support for relocs:
216 R_MIPS_PCHI16, R_MIPS_PCLO16, R_MIPS_PC21_S2, R_MIPS_PC26_S2,
217 R_MIPS_PC18_S3 and R_MIPS_PC19_S2.
218 (Target_mips::elf_mips_mach_name): Add E_MIPS_ARCH_32R6 and
219 E_MIPS_ARCH_64R6 support.
221 2016-06-13 H.J. Lu <hongjiu.lu@intel.com>
224 * testsuite/script_test_2.t: Add .got.plt after .got.
226 2016-06-10 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
228 * mips.cc (struct Mips_abiflags): New struct.
229 (Mips_relobj::Mips_relobj): Initialize attributes_section_data_
231 (Mips_relobj::~Mips_relobj): Delete object pointed by
232 attributes_section_data_.
233 (Mips_relobj::abiflags): New method.
234 (Mips_relobj::attributes_section_data): Likewise.
235 (Mips_relobj::attributes_section_data_): New data member.
236 (Mips_relobj::abiflags_): Likewise.
237 (class Mips_output_section_abiflags): New class.
238 (Target_mips::Target_mips): Initialize attributes_section_data_,
239 abiflags_ and has_abiflags_section_.
240 (Target_mips::do_should_include_section): Don't emit input
241 .MIPS.abiflags sections to output .MIPS.abiflags.
242 (Target_mips::Mips_mach): Add new enum constants.
243 (Target_mips::mips_isa_ext_mach): New method.
244 (Target_mips::mips_isa_ext): Likewise.
245 (Target_mips::update_abiflags_isa): Likewise.
246 (Target_mips::infer_abiflags): Likewise.
247 (Target_mips::create_abiflags): Likewise.
248 (Target_mips::fp_abi_string): Likewise.
249 (Target_mips::select_fp_abi): Likewise.
250 (Target_mips::merge_obj_attributes): Likewise.
251 (Target_mips::merge_obj_abiflags): Likewise.
252 (Target_mips::level_rev): Likewise.
253 (Target_mips::merge_obj_e_flags): Rename from
254 merge_processor_specific_flags. Remove dyn_obj argument,
255 call update_abiflags_isa when needed, compare NaN encodings and
257 (Target_mips::add_machine_extensions): Add two machine extensions
259 (Target_mips::attributes_section_data_): New data member.
260 (Target_mips::abiflags_): Likewise.
261 (Target_mips::has_abiflags_section_): Likewise.
262 (Mips_relobj::do_read_symbols): Read .gnu.attributes and
263 .MIPS.abiflags sections if they exists.
264 (Target_mips::elf_mips_mach): Add E_MIPS_MACH_5900 and
265 E_MIPS_MACH_OCTEON3 support.
266 (Target_mips::do_adjust_elf_header): Setup EI_ABIVERSION flag.
267 (Target_mips::do_finalize_sections): Merge .gnu.attributes and
268 .MIPS.abiflags sections from input. Create these sections if
270 (Target_mips::elf_mips_mach_name): Add E_MIPS_MACH_5900 and
271 E_MIPS_MACH_OCTEON3 support, and change strings for
272 E_MIPS_MACH_LS2E, E_MIPS_MACH_LS2F and E_MIPS_MACH_LS3A just
275 2016-06-10 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
277 * mips.cc (Mips_relobj::Mips_relobj): Initialize
278 has_reginfo_section_.
279 (Mips_relobj::has_reginfo_section_): New data member.
280 (Mips_relobj::has_reginfo_section): New method.
281 (class Mips_output_section_reginfo): Change base class to
282 Output_section_data, and set masks of the output .reginfo section
284 (Mips_output_section_reginfo::as_mips_output_section_reginfo):
286 (Mips_output_section_reginfo::set_masks): Likewise.
287 (Mips_output_section_reginfo::set_final_data_size): Likewise.
288 (Mips_output_section_reginfo::do_print_to_mapfile): New method.
289 (Target_mips::do_make_output_section): Remove.
290 (Mips_relobj::do_read_symbols): Set has_reginfo_section_ to true
291 if the object contains a .reginfo section.
292 (Target_mips::do_finalize_sections): Create a .reginfo output
295 2016-06-09 Artemiy Volkov <artemiyv@acm.org>
297 * mips.cc (Mips_output_data_got::do_write): Add missing template
300 2016-05-30 Marcin Kościelnicki <koriakin@0x04.net>
303 * s390.cc (Target_s390::ss_code_st_r14): Removed.
304 (Target_s390::ss_code_l_r14): Removed.
305 (Target_s390::ss_code_ear): Removed.
306 (Target_s390::ss_code_c): Removed.
307 (Target_s390::ss_match_st_r14): New function.
308 (Target_s390::ss_match_l_r14): New function.
309 (Target_s390::ss_match_mcount): Call ss_match_{l,st}_r14 instead
310 of matching code directly.
311 (Target_s390::ss_match_ear): New function.
312 (Target_s390::ss_match_c): New function.
313 (Target_s390::do_calls_non_split): Call ss_match_{ear,c} instead
314 of matching code directly.
316 2016-05-19 Cary Coutant <ccoutant@gmail.com>
319 * copy-relocs.cc (Copy_relocs::make_copy_reloc): Add object
320 parameter; check for protected symbol.
321 * copy-relocs.h (Copy_relocs::make_copy_reloc): Add object parameter.
322 * mips.cc (Mips_copy_relocs): Adjust call to make_copy_reloc.
323 * symtab.cc (Symbol::init_fields): Initialize is_protected_.
324 (Symbol_table::add_from_dynobj): Mark protected symbols.
325 * symtab.h (Symbol::is_protected): New method.
326 (Symbol::set_is_protected): New method.
327 (Symbol::is_protected_): New data member.
329 * testsuite/Makefile.am (copy_test_protected): New test.
330 * testsuite/Makefile.in: Regenerate.
331 * testsuite/copy_test.cc (main): Add legal reference to protected
333 * testsuite/copy_test_v1.cc (main): Likewise.
334 * testsuite/copy_test_2.cc (ip): Add protected symbol.
335 * testsuite/copy_test_protected.cc: New test source file.
336 * testsuite/copy_test_protected.sh: New test script.
338 2016-05-19 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
340 * mips.cc (Mips_got_entry::Mips_got_entry): Remove object argument
341 for global got symbols, and set addend to 0.
342 (Mips_got_entry::hash): Change hash algorithm.
343 (Mips_got_entry::equals): Refactor.
344 (Mips_got_entry::object): Return input object for local got symbols
346 (Mips_got_entry::addend): Change return of the relocation addend.
347 (Mips_got_entry::addend_): Move from union d.
348 (Mips_got_entry::object_): Move into union d.
349 (class Mips_symbol_hash): New class.
350 (Mips_got_info::Global_got_entry_set): New type.
351 (Mips_got_info::global_got_symbols): Change return type to
352 Global_got_entry_set.
353 (Mips_got_info::global_got_symbols_): Change type to
354 Global_got_entry_set.
355 (Mips_symbol::hash): New method.
356 (Mips_output_data_la25_stub::symbols_): Change type to std::vector.
357 (Mips_output_data_mips_stubs::Mips_stubs_entry_set): New type.
358 (Mips_output_data_mips_stubs::symbols_): Change type to
359 Mips_stubs_entry_set.
360 (Mips_got_info::record_global_got_symbol): Don't pass object
361 argument when creating global got symbol.
362 (Mips_got_info::record_got_entry): Remove find before inserting
364 (Mips_got_info::add_reloc_only_entries): Change type of iterator
365 to Global_got_entry_set.
366 (Mips_got_info::count_got_symbols): Likewise.
367 (Mips_output_data_la25_stub::create_la25_stub): Use push_back
368 for adding entries to symbols_.
369 (Mips_output_data_la25_stub::do_write): Change type of iterator
371 (Mips_output_data_mips_stubs::set_lazy_stub_offsets): Change type
372 of iterator to Mips_stubs_entry_set.
373 (Mips_output_data_mips_stubs::set_needs_dynsym_value): Likewise.
374 (Mips_output_data_mips_stubs::do_write): Likewise.
376 2016-05-06 Han Shen <shenhan@google.com>
380 * aarch64-reloc.def: New relocation type.
381 * aarch64.cc (AArch64_relocate_functions::Page): Changed to public.
382 (Target_aarch64::Scan::local): Add R_AARCH64_LD64_GOTPAGE_LO15.
383 (Target_aarch64::Scan::global): Add R_AARCH64_LD64_GOTPAGE_LO15.
384 (Target_aarch64::Relocate::relocate): Implement R_AARCH64_LD64_GOTPAGE_LO15.
386 2016-04-28 Nick Clifton <nickc@redhat.com>
388 * po/zh_CN.po: Updated Chinese (simplified) translation.
390 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
392 * Makefile.in: Regenerated with automake 1.11.6.
393 * aclocal.m4: Likewise.
394 * testsuite/Makefile.in: Likewise.
396 2016-03-30 Cary Coutant <ccoutant@gmail.com>
399 * symtab.cc (Symbol_table::define_default_version): Check for case
400 where symbols are both in different shared objects.
402 2016-03-27 Cary Coutant <ccoutant@gmail.com>
405 * i386.cc (Target_i386): Add check for fully-resolved symbol for
408 2016-03-22 Nick Clifton <nickc@redhat.com>
410 * configure: Regenerate.
412 2016-03-21 Cary Coutant <ccoutant@gmail.com>
415 * errors.cc (Errors::undefined_symbol): Add info message when
416 symbol should have been provided by a plugin.
417 * target-reloc.h (issue_undefined_symbol_error): Check for
418 placeholder symbols defined in discarded sections.
419 * testsuite/Makefile.am (plugin_test_9b): New test case.
420 * testsuite/Makefile.in: Regenerate.
421 * testsuite/plugin_test_9b_elf.cc: New test source file.
422 * testsuite/plugin_test_9b_ir.cc: New test source file.
424 2016-03-20 Cary Coutant <ccoutant@gmail.com>
427 * ehframe.cc (Eh_frame::read_fde): Check for dropped functions.
428 * testsuite/Makefile.am (eh_test_2): New test.
429 * testsuite/Makefile.in: Regenerate.
430 * testsuite/eh_test_2.sh: New test script.
431 * testsuite/eh_test_a.cc (bar): Make it comdat.
432 * testsuite/eh_test_b.cc (bar): Add a duplicate copy.
434 2016-03-18 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
436 * mips.cc (Mips_relobj::is_n64_): Remove.
437 (Target_mips::ei_class_): Likewise.
438 (Mips_relobj::is_newabi): Call methods.
439 (Mips_relobj::is_n64): Change checking for N64 ABI.
440 (Target_mips::is_output_n64): Likewise.
441 (Target_mips::merge_processor_specific_flags): Remove ei_class
442 argument, and remove comparing ei_class.
443 (Target_mips::do_adjust_elf_header): Remove setting EI_CLASS field
445 (Target_mips::do_finalize_sections): Don't pass ei_class argument
446 to merge_processor_specific_flags.
447 (Target_mips::elf_mips_abi_name): Remove ei_class argument, and
448 change checking for N64 ABI.
450 2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
452 * mips.cc (enum Special_relocation_symbol): New enum type.
453 (is_readonly_section): New function.
454 (eh_reloc): Likewise.
455 (Mips_got_entry::is_section_symbol_): New member.
456 (Mips_got_entry::is_section_symbol): New method.
457 (Mips_got_info::record_local_got_symbol): Add is_section_symbol
459 (Mips_relobj::mips_elf_options_section_name): New method.
460 (Mips_output_data_got::record_local_got_symbol): Add
461 is_section_symbol argument, and pass it to
462 Mips_got_info::record_local_got_symbol.
463 (Mips_output_data_got::got_offset): Add addend argument, and pass
464 it to Relobj::local_got_offset.
465 (struct Mips_output_reloc_writer): New type.
466 (class Mips_output_data_reloc): New class.
467 (Mips_output_data_plt::Reloc_section): Change type to
468 Mips_output_data_reloc.
469 (Target_mips::Reloc_section): Likewise.
470 (Mips_reloc_types::get_r_addend): Remove unsigned from return type.
471 (Mips_classify_reloc::get_r_type2): New method.
472 (Mips_classify_reloc::get_r_type3): Likewise.
473 (Mips_classify_reloc::get_r_ssym): Likewise.
474 (Target_mips::Reloca_section): Remove.
475 (Relocate::should_apply_static_reloc): Rename from
476 should_apply_r_mips_32_reloc.
477 (Target_mips::copy_reloc): Replace Reltype parameter with r_type
479 (Mips_relocate_functions::Valtype): New type.
480 (Mips_relocate_functions::Valtype64): New type.
481 (Mips_relocate_functions::check_overflow): New method.
482 (Mips_relocate_functions::mips_reloc_unshuffle): Move to public
484 (Mips_relocate_functions::mips_reloc_shuffle): Likewise.
485 (Mips_relocate_functions::rel16): Add support for resolving
486 relocations for Mips64.
487 (Mips_relocate_functions::rel32): Likewise.
488 (Mips_relocate_functions::reljalr): Likewise.
489 (Mips_relocate_functions::relpc32): Likewise.
490 (Mips_relocate_functions::rel26): Likewise.
491 (Mips_relocate_functions::relpc16): Likewise.
492 (Mips_relocate_functions::relmicromips_pc7_s1): Likewise.
493 (Mips_relocate_functions::relmicromips_pc10_s1): Likewise.
494 (Mips_relocate_functions::relmicromips_pc16_s1): Likewise.
495 (Mips_relocate_functions::do_relhi16): Likewise.
496 (Mips_relocate_functions::do_relgot16_local): Likewise.
497 (Mips_relocate_functions::rello16): Likewise.
498 (Mips_relocate_functions::relgot): Likewise.
499 (Mips_relocate_functions::relgotpage): Likewise.
500 (Mips_relocate_functions::relgotofst): Likewise.
501 (Mips_relocate_functions::relgot_hi16): Likewise.
502 (Mips_relocate_functions::relgot_lo16): Likewise.
503 (Mips_relocate_functions::relgprel): Likewise.
504 (Mips_relocate_functions::relgprel32): Likewise.
505 (Mips_relocate_functions::tlsrelhi16): Likewise.
506 (Mips_relocate_functions::tlsrello16): Likewise.
507 (Mips_relocate_functions::tlsrel32): Likewise.
508 (Mips_relocate_functions::relsub): Likewise.
509 (Mips_relocate_functions::releh): New method.
510 (Mips_relocate_functions::rel64): Likewise.
511 (Mips_got_info::record_local_got_symbol): Add is_section_symbol and
512 pass it to Mips_got_entry.
513 (Mips_got_info::add_local_entries): Pass addend argument
514 to code functions, and for STT_SECTION symbols call
515 add_symbolless_local_addend.
516 (Mips_got_info::add_tls_entries): Pass addend argument to code
518 (Mips_relobj::do_read_symbols): Read gp value that was used to
520 (Mips_output_data_plt::plt_entry): Remove opcode from l[wd]
521 instruction. Opcode for instruction will be selected later.
522 (Target_mips::gc_process_relocs): Add case for SHT_RELA.
523 (Target_mips::scan_relocatable_relocs): Likewise.
524 (Target_mips::emit_relocs_scan): Likewise.
525 (Target_mips::relocate_relocs): Likewise.
526 (Target_mips::do_finalize_sections): Skip objects for merging
527 processor specific flags in which all input sections will be
529 (mips_get_size_for_reloc): Add case for R_MIPS_EH.
530 (Target_mips::Scan::get_reference_flags): Likewise.
531 (Target_mips::relocate_special_relocatable): Call rel26 method with
532 calculate_only and calculated_value arguments.
533 (Target_mips::Scan::local): Add case for R_MIPS_EH. Don't create a
534 dynamic relocation against a readonly sections, and pass
535 is_section_symbol to Mips_got_info::record_local_got_symbol.
536 (Target_mips::Scan::global): Add case for R_MIPS_EH. Don't create a
537 dynamic relocation against a readonly sections, and pass r_type
538 and r_offset to Target_mips::copy_reloc.
539 (Target_mips::Relocate::relocate): Add support for resolving
540 relocations for Mips64.
541 (Target_mips::mips_info): Add case for Mips64 default dynamic
543 (Target_selector_mips): Correct emulation names.
545 2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
547 * mips.cc (class Mips_output_data_la25_stub): Add
548 do_print_to_mapfile function.
550 2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
552 * mips.cc (Mips_classify_reloc::put_r_info): Call 32bit version of
555 2016-03-09 H.J. Lu <hongjiu.lu@intel.com>
557 * testsuite/plugin_layout_with_alignment.cc: Renamed to ..
558 * testsuite/plugin_layout_with_alignment.c: This.
559 * testsuite/Makefile.am (plugin_layout_with_alignment.o): Updated.
560 (plugin_layout_with_alignment): Likewise.
561 * testsuite/Makefile.in: Regenerated.
563 2016-03-08 Cary Coutant <ccoutant@gmail.com>
566 * testsuite/Makefile.am (retain_symbols_file_test): Remove check
568 * testsuite/Makefile.in: Regenerate.
569 * testsuite/dynamic_list.sh: Likewise.
570 * testsuite/retain_symbols_file_test.sh: Likewise.
572 2016-03-08 Cary Coutant <ccoutant@gmail.com>
575 * arm.cc (Reloc_stub::Key::name): Add unused attribute.
576 * dirsearch.cc (Dir_caches::~Dir_caches): Likewise.
578 2016-03-08 Cary Coutant <ccoutant@gmail.com>
579 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
581 * output.cc (Output_reloc_writer): New type.
582 (Output_data_reloc_base::do_write): Move implementation to template
583 in output.h and replace with invocation of template.
584 * output.h (Output_file): Move to top of file.
585 (Output_reloc::get_symbol_index): Move to public interface.
586 (Output_reloc::get_address): Likewise.
587 (Output_data_reloc_base::do_write_generic): New function template.
589 2016-03-04 Cary Coutant <ccoutant@gmail.com>
593 * symtab.cc: Instantiate Sized_symbol::init_constant and
594 Sized_symbol::init_undefined.
596 2016-03-03 Cary Coutant <ccoutant@gmail.com>
599 * layout.h (Layout::add_target_specific_dynamic_tag): New function.
600 * layout.cc (Layout::add_target_specific_dynamic_tag): New function.
601 * mips.cc (Target_mips::make_symbol): Adjust function signature.
602 * sparc.cc (Target_sparc::Target_sparc): Initialize register_syms_.
603 (Target_sparc::do_is_defined_by_abi): Remove test for
605 (Target_sparc::Register_symbol): New struct type.
606 (Target_sparc::register_syms_): New data member.
607 (Target_sparc<64, true>::sparc_info): Set has_make_symbol to true.
608 (Target_sparc::make_symbol): New function.
609 (Target_sparc::do_finalize_sections): Add register symbols and new
610 dynamic table entries.
611 * symtab.h (Sized_symbol::init_undefined): Add value parameter.
612 (Symbol_table::add_target_global_symbol): New function.
613 (Symbol_table::target_symbols_): New data member.
614 * symtab.cc (Sized_symbol::init_undefined): Add value parameter.
615 (Symbol_table::Symbol_table): Initialize target_symbols_.
616 (Symbol_table::add_from_object): Pass additional parameters to
618 (Symbol_table::define_special_symbol): Likewise.
619 (Symbol_table::add_undefined_symbol_from_command_line): Pass 0 for
620 undefined symbol value.
621 (Symbol_table::set_dynsym_indexes): Process target-specific symbols.
622 (Symbol_table::sized_finalize): Likewise.
623 (Symbol_table::sized_write_globals): Likewise.
624 * target.h (Sized_target::make_symbol): Add name, st_type, object,
625 st_shndx, and value parameters.
627 2016-03-03 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
629 * plugin.cc (do_should_include_member): Ignore LDPK_UNDEF and
630 LDPK_WEAKUNDEF symbols.
632 2016-03-03 Than McIntosh <thanm@google.com>
634 * plugin.cc (Plugin::load): Include hooks for get_input_section_size
635 and get_input_section_alignment in transfer vector.
636 (get_input_section_alignment): New function.
637 (get_input_section_size): New function.
638 * testsuite/Makefile.am: Add plugin_layout_with_alignment.sh test.
639 * testsuite/Makefile.in: [Regenerate.]
640 * testsuite/plugin_section_alignment.cc: New test file.
641 * testsuite/plugin_layout_with_alignment.cc: New test file.
642 * testsuite/plugin_layout_with_alignment.sh: New test file.
644 2016-03-03 Evgenii Stepanov <eugenis@google.com>
646 * plugin.h (Pluginobj::get_symbol_resolution_info): Add version
648 * plugin.cc (get_symbols_v3): New function.
649 (Plugin::load): Add LDPT_GET_SYMBOLS_V3.
650 (Pluginobj::get_symbol_resolution_info): Return LDPS_NO_SYMS when using
653 2016-02-26 Egor Kochetov <egor.kochetov@intel.com>
654 Cary Coutant <ccoutant@gmail.com>
657 * ehframe.h (Cie::fde_encoding): New method.
658 * ehframe.cc (Eh_frame::read_fde): Discard FDEs for zero-length
661 2016-02-15 H.J. Lu <hongjiu.lu@intel.com>
663 * testsuite/Makefile.am (x86_64_mov_to_lea5.o): Pass
664 -mrelax-relocations=yes to $(TEST_AS).
665 (x86_64_mov_to_lea6.o): Likewise.
666 (x86_64_overflow_pc32.o): Remove duplicated target.
667 * testsuite/Makefile.in: Regenerated.
669 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
671 * s390.cc (Target_s390::match_view_u): New helper method.
672 (Target_s390::do_is_call_to_non_split): New method.
673 (Target_s390::ss_code_st_r14): New const.
674 (Target_s390::ss_code_l_r14): New const.
675 (Target_s390::ss_code_bras_8): New const.
676 (Target_s390::ss_code_l_basr): New const.
677 (Target_s390::ss_code_a_basr): New const.
678 (Target_s390::ss_code_ear): New const.
679 (Target_s390::ss_code_c): New const.
680 (Target_s390::ss_code_larl): New const.
681 (Target_s390::ss_code_brasl): New const.
682 (Target_s390::ss_code_jg): New const.
683 (Target_s390::ss_code_jgl): New const.
684 (Target_s390::ss_match_mcount): New helper method.
685 (Target_s390::ss_match_l): New helper method.
686 (Target_s390::ss_match_ahi): New helper method.
687 (Target_s390::ss_match_alfi): New helper method.
688 (Target_s390::ss_match_cr): New helper method.
689 (Target_s390::do_calls_non_split): New method.
690 * testsuite/Makefile.am: Added new tests.
691 * testsuite/Makefile.in: Regenerate.
692 * testsuite/split_s390.sh: New test.
693 * testsuite/split_s390_1_a1.s: New test.
694 * testsuite/split_s390_1_a2.s: New test.
695 * testsuite/split_s390_1_n1.s: New test.
696 * testsuite/split_s390_1_n2.s: New test.
697 * testsuite/split_s390_1_z1.s: New test.
698 * testsuite/split_s390_1_z2.s: New test.
699 * testsuite/split_s390_1_z3.s: New test.
700 * testsuite/split_s390_1_z4.s: New test.
701 * testsuite/split_s390_2_ns.s: New test.
702 * testsuite/split_s390_2_s.s: New test.
703 * testsuite/split_s390x_1_a1.s: New test.
704 * testsuite/split_s390x_1_a2.s: New test.
705 * testsuite/split_s390x_1_n1.s: New test.
706 * testsuite/split_s390x_1_n2.s: New test.
707 * testsuite/split_s390x_1_z1.s: New test.
708 * testsuite/split_s390x_1_z2.s: New test.
709 * testsuite/split_s390x_1_z3.s: New test.
710 * testsuite/split_s390x_1_z4.s: New test.
711 * testsuite/split_s390x_2_ns.s: New test.
712 * testsuite/split_s390x_2_s.s: New test.
714 2016-02-11 Rahul Chaudhry <rahulchaudhry@google.com>
716 * aarch64.cc (Target_aarch64::scan_erratum_843419_span): Remove
717 info message for every erratum 843419 found and fixed.
719 2016-02-07 Cary Coutant <ccoutant@gmail.com>
722 * x86_64.cc (Target_x86_64::Relocate::relocate): Add additional
723 information to relocation overflow errors.
725 2016-02-06 Cary Coutant <ccoutant@gmail.com>
728 * x86_64.cc (X86_64_relocate_functions::pcrela32_check): Fix x32
729 overflow checking when symbol value + addend < 0.
731 2016-02-06 Cary Coutant <ccoutant@gmail.com>
734 * reloc.h (Limits): New class.
735 (Bits::has_overflow32): Use min/max values from Limits.
736 (Bits::has_unsigned_overflow32): Likewise.
737 (Bits::has_signed_unsigned_overflow32): Likewise.
738 (Bits::has_overflow): Likewise.
739 (Bits::has_unsigned_overflow): Likewise.
740 (Bits::has_signed_unsigned_overflow64): Likewise.
742 2016-02-06 Cary Coutant <ccoutant@gmail.com>
745 * reloc.h (Relocate_functions::Overflow_check): Add comments.
746 * x86_64.cc (X86_64_relocate_functions): New class.
747 (Target_x86_64::Relocate::relocate): Use the new class.
748 * testsuite/Makefile.am (x86_64_overflow_pc32): Add -Tdata option.
749 (x32_overflow_pc32): New test case.
750 * testsuite/Makefile.in: Regenerate.
751 * testsuite/x32_overflow_pc32.sh: New script.
752 * testsuite/x86_64_overflow_pc32.s: Remove .space directive.
754 2016-02-06 Cary Coutant <ccoutant@gmail.com>
757 * reloc.h (Bits::has_unsigned_overflow32): Fix static_cast.
758 (Bits::has_unsigned_overflow): Remove unnecessary static_cast.
760 2016-02-06 Cary Coutant <ccoutant@gmail.com>
763 * reloc.h (Bits::has_unsigned_overflow32): Fix unsigned/signed
765 (Bits::has_unsigned_overflow): Likewise.
767 2016-02-06 Marcin Kościelnicki <koriakin@0x04.net>
769 * i386.cc (Target_i386::is_call_to_non_split): Add view and view_size
771 * reloc.cc (Sized_relobj_file::split_stack_adjust_reltype): Pass view
772 and view_size to is_call_to_non_split.
773 * target.cc (Target::is_call_to_non_split): Add view and view_size
775 * target.h (class Target): Likewise.
777 2016-02-05 Sriraman Tallam <tmsriram@google.com>
779 * icf.cc (get_rel_addend): New function.
780 (get_section_contents): Move merge section addend computation to a
781 new function. Ignore negative values for SHT_REL and SHT_RELA addends.
782 Fix bug to not read past the length of the section.
784 2016-02-05 Cary Coutant <ccoutant@gmail.com>
785 Andrew Senkevich <andrew.senkevich@intel.com>
788 * x86_64.cc (Target_x86_64::Relocate::relocate): Add overflow
789 checking for R_X86_64_32, R_X86_64_32S, R_X86_64_PC32, and
791 * testsuite/Makefile.am (x86_64_overflow_pc32): New test.
792 * testsuite/x86_64_overflow_pc32.sh: New test script.
793 * testsuite/x86_64_overflow_pc32.s: New source file.
795 2016-02-05 Cary Coutant <ccoutant@gmail.com>
798 * reloc.h (Relocate_functions::Address): New typedef.
799 (Relocate_functions::Addendtype): New typedef.
800 (Relocate_functions::Overflow_check): New enum type.
801 (Relocate_functions::Reloc_status): New enum type.
802 (Relocate_functions::check_overflow): New function template.
803 (Relocate_functions::rel): Add check parameter; check for overflow.
804 (Relocate_functions::rel_unaligned): Likewise.
805 (Relocate_functions::rela): Likewise.
806 (Relocate_functions::pcrel): Likewise.
807 (Relocate_functions::pcrel_unaligned): Likewise.
808 (Relocate_functions::pcrela): Likewise.
809 (Relocate_functions::rel8): Adjust parameter types.
810 (Relocate_functions::rela8): Likewise.
811 (Relocate_functions::pcrel8): Likewise.
812 (Relocate_functions::pcrela8): Likewise.
813 (Relocate_functions::rel16): Likewise.
814 (Relocate_functions::rela168): Likewise.
815 (Relocate_functions::pcrel16): Likewise.
816 (Relocate_functions::pcrela16): Likewise.
817 (Relocate_functions::rel32): Likewise.
818 (Relocate_functions::rel32_unaligned): Likewise.
819 (Relocate_functions::rela32): Likewise.
820 (Relocate_functions::pcrel32): Likewise.
821 (Relocate_functions::pcrel32_unaligned): Likewise.
822 (Relocate_functions::pcrela32): Likewise.
823 (Relocate_functions::rel8_check): New function.
824 (Relocate_functions::rela8_check): New function.
825 (Relocate_functions::pcrel8_check): New function.
826 (Relocate_functions::pcrela8_check): New function.
827 (Relocate_functions::rel16_check): New function.
828 (Relocate_functions::rela168_check): New function.
829 (Relocate_functions::pcrel16_check): New function.
830 (Relocate_functions::pcrela16_check): New function.
831 (Relocate_functions::rel32_check): New function.
832 (Relocate_functions::rel32_unaligned_check): New function.
833 (Relocate_functions::rela32_check): New function.
834 (Relocate_functions::pcrel32_check): New function.
835 (Relocate_functions::pcrel32_unaligned_check): New function.
836 (Relocate_functions::pcrela32_check): New function.
837 (Bits::has_unsigned_overflow32): New function.
838 (Bits::has_unsigned_overflow): New function.
839 * testsuite/Makefile.am (overflow_unittest): New test.
840 * testsuite/Makefile.in: Regenerate.
841 * testsuite/overflow_unittest.cc: New source file.
843 2016-02-04 Alan Modra <amodra@gmail.com>
845 * powerpc.cc (relocate): Adjust last patch for big-endian.
847 2016-02-02 Alan Modra <amodra@gmail.com>
849 * powerpc.cc (relocate): Further restrict ELFv2 entry optimization.
851 2016-01-15 Han Shen <shenhan@google.com>
853 PR gold/19472 - need pc-relative stubs.
855 * aarch64.cc (Reloc_stub::stub_type_for_reloc): Return PC-relative
856 stub type for DSOs and pie executables.
858 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
860 * i386.cc (Target_i386::Classify_reloc::get_r_addend): Remove
863 2016-01-12 Cary Coutant <ccoutant@gmail.com>
865 * arm.cc (Target_arm::Classify_reloc::get_r_addend): New method.
866 * i386.cc (Target_i386::Classify_reloc::get_r_addend): New method.
867 * mips.cc (Target_arm::Mips_classify_reloc::get_r_addend): (Both
868 specializations) New method.
870 2016-01-11 Cary Coutant <ccoutant@gmail.com>
873 * aarch64.cc (Target_aarch64::relocate_tls): Don't insist that
874 we have a TLS segment for GD-to-IE optimization.
875 * i386.cc (Target_i386::tls_gd_to_ie): Remove tls_segment parameter.
877 (Target_i386::tls_desc_gd_to_ie): Likewise.
878 (Target_i386::relocate_tls): Don't insist that we have a TLS segment
879 for TLSDESC GD-to-IE optimizations.
880 * x86_64.cc (Target_x86_64::tls_gd_to_ie): Remove tls_segment parameter.
882 (Target_x86_64::tls_desc_gd_to_ie): Likewise.
883 (Target_x86_64::relocate_tls): Don't insist that we have a TLS segment
884 for TLSDESC GD-to-IE optimizations.
886 2016-01-11 Cary Coutant <ccoutant@gmail.com>
888 Refactor gold to enable support for MIPS-64 relocation format.
890 * gc.h (get_embedded_addend_size): Remove sh_type parameter.
891 (gc_process_relocs): Remove sh_type template parameter.
892 Use Classify_reloc to access r_sym, r_type, and r_addend fields.
893 * object.h (Sized_relobj_file::split_stack_adjust): Add target
895 (Sized_relobj_file::split_stack_adjust_reltype): Likewise.
896 * reloc-types.h (Reloc_types::copy_reloc_addend): (SHT_REL and SHT_RELA
897 specializations) Remove.
898 * reloc.cc (Emit_relocs_strategy): Rename and move to target-reloc.h.
899 (Sized_relobj_file::emit_relocs_scan): Call Target::emit_relocs_scan().
900 (Sized_relobj_file::emit_relocs_scan_reltype): Remove.
901 (Sized_relobj_file::split_stack_adjust): Add target parameter.
903 (Sized_relobj_file::split_stack_adjust_reltype): Likewise. Call
904 Target::get_r_sym() to get r_sym field from relocations.
905 (Track_relocs::next_symndx): Call Target::get_r_sym().
906 * target-reloc.h (scan_relocs): Remove sh_type template parameter;
907 add Classify_reloc template parameter. Use for accessing r_sym and
909 (relocate_section): Likewise.
910 (Default_classify_reloc): New class (renamed and moved from reloc.cc).
911 (Default_scan_relocatable_relocs): Remove sh_type template parameter.
912 (Default_scan_relocatable_relocs::Reltype): New typedef.
913 (Default_scan_relocatable_relocs::reloc_size): New const.
914 (Default_scan_relocatable_relocs::sh_type): New const.
915 (Default_scan_relocatable_relocs::get_r_sym): New method.
916 (Default_scan_relocatable_relocs::get_r_type): New method.
917 (Default_emit_relocs_strategy): New class.
918 (scan_relocatable_relocs): Replace sh_type template parameter with
919 Scan_relocatable_relocs class. Use it to access r_sym and r_type
921 (relocate_relocs): Replace sh_type template parameter with
922 Classify_reloc class. Use it to access r_sym and r_type fields.
923 * target.h (Target::is_call_to_non_split): Replace r_type parameter
924 with pointer to relocation. Adjust all callers.
925 (Target::do_is_call_to_non_split): Likewise.
926 (Target::emit_relocs_scan): New virtual method.
927 (Sized_target::get_r_sym): New virtual method.
928 * target.cc (Target::do_is_call_to_non_split): Replace r_type parameter
929 with pointer to relocation.
931 * aarch64.cc (Target_aarch64::emit_relocs_scan): New method.
932 (Target_aarch64::Relocatable_size_for_reloc): Remove.
933 (Target_aarch64::gc_process_relocs): Use Default_classify_reloc.
934 (Target_aarch64::scan_relocs): Likewise.
935 (Target_aarch64::relocate_section): Likewise.
936 (Target_aarch64::Relocatable_size_for_reloc::get_size_for_reloc):
938 (Target_aarch64::scan_relocatable_relocs): Use Default_classify_reloc.
939 (Target_aarch64::relocate_relocs): Use Default_classify_reloc.
940 * arm.cc (Target_arm::Arm_scan_relocatable_relocs): Remove sh_type
942 (Target_arm::emit_relocs_scan): New method.
943 (Target_arm::Relocatable_size_for_reloc): Replace with...
944 (Target_arm::Classify_reloc): ...this.
945 (Target_arm::gc_process_relocs): Use Classify_reloc.
946 (Target_arm::scan_relocs): Likewise.
947 (Target_arm::relocate_section): Likewise.
948 (Target_arm::scan_relocatable_relocs): Likewise.
949 (Target_arm::relocate_relocs): Likewise.
950 * i386.cc (Target_i386::emit_relocs_scan): New method.
951 (Target_i386::Relocatable_size_for_reloc): Replace with...
952 (Target_i386::Classify_reloc): ...this.
953 (Target_i386::gc_process_relocs): Use Classify_reloc.
954 (Target_i386::scan_relocs): Likewise.
955 (Target_i386::relocate_section): Likewise.
956 (Target_i386::scan_relocatable_relocs): Likewise.
957 (Target_i386::relocate_relocs): Likewise.
958 * mips.cc (Mips_scan_relocatable_relocs): Remove sh_type template
960 (Mips_reloc_types): New class template.
961 (Mips_classify_reloc): New class template.
962 (Target_mips::Reltype): New typedef.
963 (Target_mips::Relatype): New typedef.
964 (Target_mips::emit_relocs_scan): New method.
965 (Target_mips::get_r_sym): New method.
966 (Target_mips::Relocatable_size_for_reloc): Replace with
968 (Target_mips::copy_reloc): Use Mips_classify_reloc.
969 (Target_mips::gc_process_relocs): Likewise.
970 (Target_mips::scan_relocs): Likewise.
971 (Target_mips::relocate_section): Likewise.
972 (Target_mips::scan_relocatable_relocs): Likewise.
973 (Target_mips::relocate_relocs): Likewise.
974 (mips_get_size_for_reloc): New function, factored out from
975 Relocatable_size_for_reloc::get_size_for_reloc.
976 (Target_mips::Scan::local): Use Mips_classify_reloc.
977 (Target_mips::Scan::global): Likewise.
978 (Target_mips::Relocate::relocate): Likewise.
979 * powerpc.cc (Target_powerpc::emit_relocs_scan): New method.
980 (Target_powerpc::Relocatable_size_for_reloc): Remove.
981 (Target_powerpc::gc_process_relocs): Use Default_classify_reloc.
982 (Target_powerpc::scan_relocs): Likewise.
983 (Target_powerpc::relocate_section): Likewise.
984 (Powerpc_scan_relocatable_reloc): Convert to class template.
985 (Powerpc_scan_relocatable_reloc::Reltype): New typedef.
986 (Powerpc_scan_relocatable_reloc::reloc_size): New const.
987 (Powerpc_scan_relocatable_reloc::sh_type): New const.
988 (Powerpc_scan_relocatable_reloc::get_r_sym): New method.
989 (Powerpc_scan_relocatable_reloc::get_r_type): New method.
990 (Target_powerpc::scan_relocatable_relocs): Use
991 Powerpc_scan_relocatable_reloc.
992 (Target_powerpc::relocate_relocs): Use Default_classify_reloc.
993 * s390.cc (Target_s390::emit_relocs_scan): New method.
994 (Target_s390::Relocatable_size_for_reloc): Remove.
995 (Target_s390::gc_process_relocs): Use Default_classify_reloc.
996 (Target_s390::scan_relocs): Likewise.
997 (Target_s390::relocate_section): Likewise.
998 (Target_s390::Relocatable_size_for_reloc::get_size_for_reloc):
1000 (Target_s390::scan_relocatable_relocs): Use Default_classify_reloc.
1001 (Target_s390::relocate_relocs): Use Default_classify_reloc.
1002 * sparc.cc (Target_sparc::emit_relocs_scan): New method.
1003 (Target_sparc::Relocatable_size_for_reloc): Remove.
1004 (Target_sparc::gc_process_relocs): Use Default_classify_reloc.
1005 (Target_sparc::scan_relocs): Likewise.
1006 (Target_sparc::relocate_section): Likewise.
1007 (Target_sparc::Relocatable_size_for_reloc::get_size_for_reloc):
1009 (Target_sparc::scan_relocatable_relocs): Use Default_classify_reloc.
1010 (Target_sparc::relocate_relocs): Use Default_classify_reloc.
1011 * tilegx.cc (Target_tilegx::emit_relocs_scan): New method.
1012 (Target_tilegx::Relocatable_size_for_reloc): Remove.
1013 (Target_tilegx::gc_process_relocs): Use Default_classify_reloc.
1014 (Target_tilegx::scan_relocs): Likewise.
1015 (Target_tilegx::relocate_section): Likewise.
1016 (Target_tilegx::Relocatable_size_for_reloc::get_size_for_reloc):
1018 (Target_tilegx::scan_relocatable_relocs): Use Default_classify_reloc.
1019 (Target_tilegx::relocate_relocs): Use Default_classify_reloc.
1020 * x86_64.cc (Target_x86_64::emit_relocs_scan): New method.
1021 (Target_x86_64::Relocatable_size_for_reloc): Remove.
1022 (Target_x86_64::gc_process_relocs): Use Default_classify_reloc.
1023 (Target_x86_64::scan_relocs): Likewise.
1024 (Target_x86_64::relocate_section): Likewise.
1025 (Target_x86_64::Relocatable_size_for_reloc::get_size_for_reloc):
1027 (Target_x86_64::scan_relocatable_relocs): Use Default_classify_reloc.
1028 (Target_x86_64::relocate_relocs): Use Default_classify_reloc.
1030 * testsuite/testfile.cc (Target_test::emit_relocs_scan): New method.
1032 2016-01-01 Alan Modra <amodra@gmail.com>
1034 Update year range in copyright notice of all files.
1036 For older changes see ChangeLog-0815
1038 Copyright (C) 2016 Free Software Foundation, Inc.
1040 Copying and distribution of this file, with or without modification,
1041 are permitted in any medium without royalty provided the copyright
1042 notice and this notice are preserved.
1048 version-control: never