Implement SORT_BY_INIT_PRIORITY.
[binutils-gdb.git] / gold / ChangeLog
1 2016-06-28 Igor Kudrin <ikudrin@accesssoftek.com>
2
3 PR gold/18098
4 * script-c.h (Sort_wildcard): Add SORT_WILDCARD_BY_INIT_PRIORITY.
5 * script-sections.cc (Input_section_sorter::get_init_priority): New method.
6 (Input_section_sorter::operator()): Handle SORT_WILDCARD_BY_INIT_PRIORITY.
7 (Output_section_element_input::print): Likewise.
8 * script.cc (script_keyword_parsecodes): Add entry SORT_BY_INIT_PRIORITY.
9 * yyscript.y (SORT_BY_INIT_PRIORITY): New token.
10 (wildcard_section): Handle SORT_BY_INIT_PRIORITY.
11
12 * testsuite/Makefile.am (script_test_14): New test.
13 * testsuite/Makefile.in: Regenerate.
14 * testsuite/script_test_14.s: New test source file.
15 * testsuite/script_test_14.sh: New test script.
16 * testsuite/script_test_14.t: New test linker script.
17
18 2016-06-28 James Clarke <jrtc27@jrtc27.com>
19
20 * sparc.cc (Target_sparc::Scan::local): Don't convert R_SPARC_32
21 to R_SPARC_RELATIVE if class is ELFCLASS64.
22 (Target_sparc::Scan::global): Likewise.
23
24 2016-06-23 Cary Coutant <ccoutant@gmail.com>
25 Igor Kudrin <ikudrin@accesssoftek.com>
26
27 PR gold/15370
28 * script-sections.cc
29 (Output_section_element_input::set_section_addresses): Keep bin_count
30 separate from input_pattern_count.
31 * testsuite/script_test_12.t: Add another section .x4.
32 * testsuite/script_test_12i.t: Likewise.
33 * testsuite/script_test_12a.c: Likewise.
34 * testsuite/script_test_12b.c: Likewise.
35
36 2016-06-23 Igor Kudrin <ikudrin@accesssoftek.com>
37
38 * gold-threads.cc (impl_threads::Lock_impl_threads): Fix typos.
39
40 2016-06-22 H.J. Lu <hongjiu.lu@intel.com>
41
42 PR ld/20283
43 * NEWS: Mention --enable-relro.
44 * configure.ac: Add --enable-relro.
45 (DEFAULT_LD_Z_RELRO): New. Set by --enable-relro and default
46 to 1.
47 * config.in: Regenerated.
48 * configure: Likewise.
49 * options.h (General_options::relro): Default to
50 DEFAULT_LD_Z_RELRO.
51
52 2016-06-20 Cary Coutant <ccoutant@gmail.com>
53
54 * NEWS: Add new features in 1.12.
55 * version.cc (version_string): Bump to 1.12.
56
57 2016-06-20 H.J. Lu <hongjiu.lu@intel.com>
58
59 PR gold/20245
60 * i386.cc (Target_i386::first_plt_entry_offset): Return 0 if
61 plt_ is NULL.
62 (Target_i386::plt_entry_size): Likewise.
63 (Target_x86_64<size>::first_plt_entry_offset): Likewise.
64 (Target_x86_64<size>::plt_entry_size): Likewise.
65
66 2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
67
68 * mips.cc (Target_mips::Target_mips): Initialize rld_map_.
69 (Target_mips::rld_map_): New data member.
70 (Target_mips::do_finalize_sections): Add support for
71 DT_MIPS_RLD_MAP and DT_MIPS_RLD_MAP_REL dynamic tags,
72 .rld_map section, and __RLD_MAP symbol.
73 (Target_mips::do_dynamic_tag_custom_value): Add support for
74 DT_MIPS_RLD_MAP_REL dynamic tag.
75 * output.cc (Output_data_dynamic::get_entry_offset): New method
76 definition.
77 * output.h (Output_data_dynamic::get_entry_offset): New method
78 declaration.
79
80 2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
81
82 * mips.cc (Mips_relocate_functions::relpc16): Add unaligned check.
83
84 2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
85
86 * mips.cc (relocation_needs_la25_stub): Add support for relocs:
87 R_MIPS_PC21_S2 and R_MIPS_PC26_S2.
88 (hi16_reloc): Add support for R_MIPS_PCHI16 relocation.
89 (is_matching_lo16_reloc): Likewise.
90 (lo16_reloc): Add support for R_MIPS_PCLO16 relocation.
91 (Mips_output_data_plt::plt_entry_r6): New static data member for
92 R6 PLT entry.
93 (Target_mips::is_output_r6): New method.
94 (Target_mips::Mips_mach): Add new enum constants.
95 (Mips_relocate_functions::Status): Likewise.
96 (Mips_relocate_functions::pchi16_relocs): New static data member.
97 (Mips_relocate_functions::relpc21): New method.
98 (Mips_relocate_functions::relpc26): Likewise.
99 (Mips_relocate_functions::relpc18): Likewise.
100 (Mips_relocate_functions::relpc19): Likewise.
101 (Mips_relocate_functions::relpchi16): Likewise.
102 (Mips_relocate_functions::do_relpchi16): Likewise.
103 (Mips_relocate_functions::relpclo16): Likewise.
104 (Mips_output_data_plt::do_write): Add support for Mips r6 plt
105 entry.
106 (Target_mips::mips_32bit_flags): Add E_MIPS_ARCH_32R6 support.
107 (Target_mips::elf_mips_mach): Add E_MIPS_ARCH_32R6 and
108 E_MIPS_ARCH_64R6 support.
109 (Target_mips::update_abiflags_isa): Likewise.
110 (mips_get_size_for_reloc): Add support for relocs: R_MIPS_PCHI16,
111 R_MIPS_PCLO16, R_MIPS_PC21_S2, R_MIPS_PC26_S2, R_MIPS_PC18_S3 and
112 R_MIPS_PC19_S2.
113 (Target_mips::Scan::local): Add support for relocs: R_MIPS_PCHI16
114 and R_MIPS_PCLO16.
115 (Target_mips::Scan::global): Add support for relocs:
116 R_MIPS_PC21_S2 and R_MIPS_PC26_S2.
117 (Target_mips::Relocate::relocate): Call functions for resolving
118 Mips32r6 and Mips64r6 relocations, and print error message for
119 STATUS_PCREL_UNALIGNED.
120 (Target_mips::Scan::get_reference_flags): Add support for relocs:
121 R_MIPS_PCHI16, R_MIPS_PCLO16, R_MIPS_PC21_S2, R_MIPS_PC26_S2,
122 R_MIPS_PC18_S3 and R_MIPS_PC19_S2.
123 (Target_mips::elf_mips_mach_name): Add E_MIPS_ARCH_32R6 and
124 E_MIPS_ARCH_64R6 support.
125
126 2016-06-13 H.J. Lu <hongjiu.lu@intel.com>
127
128 PR gold/20246
129 * testsuite/script_test_2.t: Add .got.plt after .got.
130
131 2016-06-10 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
132
133 * mips.cc (struct Mips_abiflags): New struct.
134 (Mips_relobj::Mips_relobj): Initialize attributes_section_data_
135 and abiflags_.
136 (Mips_relobj::~Mips_relobj): Delete object pointed by
137 attributes_section_data_.
138 (Mips_relobj::abiflags): New method.
139 (Mips_relobj::attributes_section_data): Likewise.
140 (Mips_relobj::attributes_section_data_): New data member.
141 (Mips_relobj::abiflags_): Likewise.
142 (class Mips_output_section_abiflags): New class.
143 (Target_mips::Target_mips): Initialize attributes_section_data_,
144 abiflags_ and has_abiflags_section_.
145 (Target_mips::do_should_include_section): Don't emit input
146 .MIPS.abiflags sections to output .MIPS.abiflags.
147 (Target_mips::Mips_mach): Add new enum constants.
148 (Target_mips::mips_isa_ext_mach): New method.
149 (Target_mips::mips_isa_ext): Likewise.
150 (Target_mips::update_abiflags_isa): Likewise.
151 (Target_mips::infer_abiflags): Likewise.
152 (Target_mips::create_abiflags): Likewise.
153 (Target_mips::fp_abi_string): Likewise.
154 (Target_mips::select_fp_abi): Likewise.
155 (Target_mips::merge_obj_attributes): Likewise.
156 (Target_mips::merge_obj_abiflags): Likewise.
157 (Target_mips::level_rev): Likewise.
158 (Target_mips::merge_obj_e_flags): Rename from
159 merge_processor_specific_flags. Remove dyn_obj argument,
160 call update_abiflags_isa when needed, compare NaN encodings and
161 compare FP64 state.
162 (Target_mips::add_machine_extensions): Add two machine extensions
163 and fix one.
164 (Target_mips::attributes_section_data_): New data member.
165 (Target_mips::abiflags_): Likewise.
166 (Target_mips::has_abiflags_section_): Likewise.
167 (Mips_relobj::do_read_symbols): Read .gnu.attributes and
168 .MIPS.abiflags sections if they exists.
169 (Target_mips::elf_mips_mach): Add E_MIPS_MACH_5900 and
170 E_MIPS_MACH_OCTEON3 support.
171 (Target_mips::do_adjust_elf_header): Setup EI_ABIVERSION flag.
172 (Target_mips::do_finalize_sections): Merge .gnu.attributes and
173 .MIPS.abiflags sections from input. Create these sections if
174 needed.
175 (Target_mips::elf_mips_mach_name): Add E_MIPS_MACH_5900 and
176 E_MIPS_MACH_OCTEON3 support, and change strings for
177 E_MIPS_MACH_LS2E, E_MIPS_MACH_LS2F and E_MIPS_MACH_LS3A just
178 to match bfd.
179
180 2016-06-10 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
181
182 * mips.cc (Mips_relobj::Mips_relobj): Initialize
183 has_reginfo_section_.
184 (Mips_relobj::has_reginfo_section_): New data member.
185 (Mips_relobj::has_reginfo_section): New method.
186 (class Mips_output_section_reginfo): Change base class to
187 Output_section_data, and set masks of the output .reginfo section
188 in constructor.
189 (Mips_output_section_reginfo::as_mips_output_section_reginfo):
190 Remove.
191 (Mips_output_section_reginfo::set_masks): Likewise.
192 (Mips_output_section_reginfo::set_final_data_size): Likewise.
193 (Mips_output_section_reginfo::do_print_to_mapfile): New method.
194 (Target_mips::do_make_output_section): Remove.
195 (Mips_relobj::do_read_symbols): Set has_reginfo_section_ to true
196 if the object contains a .reginfo section.
197 (Target_mips::do_finalize_sections): Create a .reginfo output
198 section if needed.
199
200 2016-06-09 Artemiy Volkov <artemiyv@acm.org>
201
202 * mips.cc (Mips_output_data_got::do_write): Add missing template
203 args via typedef.
204
205 2016-05-30 Marcin Koƛcielnicki <koriakin@0x04.net>
206
207 PR/19960
208 * s390.cc (Target_s390::ss_code_st_r14): Removed.
209 (Target_s390::ss_code_l_r14): Removed.
210 (Target_s390::ss_code_ear): Removed.
211 (Target_s390::ss_code_c): Removed.
212 (Target_s390::ss_match_st_r14): New function.
213 (Target_s390::ss_match_l_r14): New function.
214 (Target_s390::ss_match_mcount): Call ss_match_{l,st}_r14 instead
215 of matching code directly.
216 (Target_s390::ss_match_ear): New function.
217 (Target_s390::ss_match_c): New function.
218 (Target_s390::do_calls_non_split): Call ss_match_{ear,c} instead
219 of matching code directly.
220
221 2016-05-19 Cary Coutant <ccoutant@gmail.com>
222
223 PR gold/19823
224 * copy-relocs.cc (Copy_relocs::make_copy_reloc): Add object
225 parameter; check for protected symbol.
226 * copy-relocs.h (Copy_relocs::make_copy_reloc): Add object parameter.
227 * mips.cc (Mips_copy_relocs): Adjust call to make_copy_reloc.
228 * symtab.cc (Symbol::init_fields): Initialize is_protected_.
229 (Symbol_table::add_from_dynobj): Mark protected symbols.
230 * symtab.h (Symbol::is_protected): New method.
231 (Symbol::set_is_protected): New method.
232 (Symbol::is_protected_): New data member.
233
234 * testsuite/Makefile.am (copy_test_protected): New test.
235 * testsuite/Makefile.in: Regenerate.
236 * testsuite/copy_test.cc (main): Add legal reference to protected
237 symbol.
238 * testsuite/copy_test_v1.cc (main): Likewise.
239 * testsuite/copy_test_2.cc (ip): Add protected symbol.
240 * testsuite/copy_test_protected.cc: New test source file.
241 * testsuite/copy_test_protected.sh: New test script.
242
243 2016-05-19 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
244
245 * mips.cc (Mips_got_entry::Mips_got_entry): Remove object argument
246 for global got symbols, and set addend to 0.
247 (Mips_got_entry::hash): Change hash algorithm.
248 (Mips_got_entry::equals): Refactor.
249 (Mips_got_entry::object): Return input object for local got symbols
250 from union d.
251 (Mips_got_entry::addend): Change return of the relocation addend.
252 (Mips_got_entry::addend_): Move from union d.
253 (Mips_got_entry::object_): Move into union d.
254 (class Mips_symbol_hash): New class.
255 (Mips_got_info::Global_got_entry_set): New type.
256 (Mips_got_info::global_got_symbols): Change return type to
257 Global_got_entry_set.
258 (Mips_got_info::global_got_symbols_): Change type to
259 Global_got_entry_set.
260 (Mips_symbol::hash): New method.
261 (Mips_output_data_la25_stub::symbols_): Change type to std::vector.
262 (Mips_output_data_mips_stubs::Mips_stubs_entry_set): New type.
263 (Mips_output_data_mips_stubs::symbols_): Change type to
264 Mips_stubs_entry_set.
265 (Mips_got_info::record_global_got_symbol): Don't pass object
266 argument when creating global got symbol.
267 (Mips_got_info::record_got_entry): Remove find before inserting
268 got entries.
269 (Mips_got_info::add_reloc_only_entries): Change type of iterator
270 to Global_got_entry_set.
271 (Mips_got_info::count_got_symbols): Likewise.
272 (Mips_output_data_la25_stub::create_la25_stub): Use push_back
273 for adding entries to symbols_.
274 (Mips_output_data_la25_stub::do_write): Change type of iterator
275 to std::vector.
276 (Mips_output_data_mips_stubs::set_lazy_stub_offsets): Change type
277 of iterator to Mips_stubs_entry_set.
278 (Mips_output_data_mips_stubs::set_needs_dynsym_value): Likewise.
279 (Mips_output_data_mips_stubs::do_write): Likewise.
280
281 2016-05-06 Han Shen <shenhan@google.com>
282
283 PR gold/19987.
284
285 * aarch64-reloc.def: New relocation type.
286 * aarch64.cc (AArch64_relocate_functions::Page): Changed to public.
287 (Target_aarch64::Scan::local): Add R_AARCH64_LD64_GOTPAGE_LO15.
288 (Target_aarch64::Scan::global): Add R_AARCH64_LD64_GOTPAGE_LO15.
289 (Target_aarch64::Relocate::relocate): Implement R_AARCH64_LD64_GOTPAGE_LO15.
290
291 2016-04-28 Nick Clifton <nickc@redhat.com>
292
293 * po/zh_CN.po: Updated Chinese (simplified) translation.
294
295 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
296
297 * Makefile.in: Regenerated with automake 1.11.6.
298 * aclocal.m4: Likewise.
299 * testsuite/Makefile.in: Likewise.
300
301 2016-03-30 Cary Coutant <ccoutant@gmail.com>
302
303 PR gold/16979
304 * symtab.cc (Symbol_table::define_default_version): Check for case
305 where symbols are both in different shared objects.
306
307 2016-03-27 Cary Coutant <ccoutant@gmail.com>
308
309 PR gold/16111
310 * i386.cc (Target_i386): Add check for fully-resolved symbol for
311 R_386_GOTOFF.
312
313 2016-03-22 Nick Clifton <nickc@redhat.com>
314
315 * configure: Regenerate.
316
317 2016-03-21 Cary Coutant <ccoutant@gmail.com>
318
319 PR gold/19842
320 * errors.cc (Errors::undefined_symbol): Add info message when
321 symbol should have been provided by a plugin.
322 * target-reloc.h (issue_undefined_symbol_error): Check for
323 placeholder symbols defined in discarded sections.
324 * testsuite/Makefile.am (plugin_test_9b): New test case.
325 * testsuite/Makefile.in: Regenerate.
326 * testsuite/plugin_test_9b_elf.cc: New test source file.
327 * testsuite/plugin_test_9b_ir.cc: New test source file.
328
329 2016-03-20 Cary Coutant <ccoutant@gmail.com>
330
331 PR gold/19002
332 * ehframe.cc (Eh_frame::read_fde): Check for dropped functions.
333 * testsuite/Makefile.am (eh_test_2): New test.
334 * testsuite/Makefile.in: Regenerate.
335 * testsuite/eh_test_2.sh: New test script.
336 * testsuite/eh_test_a.cc (bar): Make it comdat.
337 * testsuite/eh_test_b.cc (bar): Add a duplicate copy.
338
339 2016-03-18 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
340
341 * mips.cc (Mips_relobj::is_n64_): Remove.
342 (Target_mips::ei_class_): Likewise.
343 (Mips_relobj::is_newabi): Call methods.
344 (Mips_relobj::is_n64): Change checking for N64 ABI.
345 (Target_mips::is_output_n64): Likewise.
346 (Target_mips::merge_processor_specific_flags): Remove ei_class
347 argument, and remove comparing ei_class.
348 (Target_mips::do_adjust_elf_header): Remove setting EI_CLASS field
349 of the ELF header.
350 (Target_mips::do_finalize_sections): Don't pass ei_class argument
351 to merge_processor_specific_flags.
352 (Target_mips::elf_mips_abi_name): Remove ei_class argument, and
353 change checking for N64 ABI.
354
355 2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
356
357 * mips.cc (enum Special_relocation_symbol): New enum type.
358 (is_readonly_section): New function.
359 (eh_reloc): Likewise.
360 (Mips_got_entry::is_section_symbol_): New member.
361 (Mips_got_entry::is_section_symbol): New method.
362 (Mips_got_info::record_local_got_symbol): Add is_section_symbol
363 argument.
364 (Mips_relobj::mips_elf_options_section_name): New method.
365 (Mips_output_data_got::record_local_got_symbol): Add
366 is_section_symbol argument, and pass it to
367 Mips_got_info::record_local_got_symbol.
368 (Mips_output_data_got::got_offset): Add addend argument, and pass
369 it to Relobj::local_got_offset.
370 (struct Mips_output_reloc_writer): New type.
371 (class Mips_output_data_reloc): New class.
372 (Mips_output_data_plt::Reloc_section): Change type to
373 Mips_output_data_reloc.
374 (Target_mips::Reloc_section): Likewise.
375 (Mips_reloc_types::get_r_addend): Remove unsigned from return type.
376 (Mips_classify_reloc::get_r_type2): New method.
377 (Mips_classify_reloc::get_r_type3): Likewise.
378 (Mips_classify_reloc::get_r_ssym): Likewise.
379 (Target_mips::Reloca_section): Remove.
380 (Relocate::should_apply_static_reloc): Rename from
381 should_apply_r_mips_32_reloc.
382 (Target_mips::copy_reloc): Replace Reltype parameter with r_type
383 and r_offset.
384 (Mips_relocate_functions::Valtype): New type.
385 (Mips_relocate_functions::Valtype64): New type.
386 (Mips_relocate_functions::check_overflow): New method.
387 (Mips_relocate_functions::mips_reloc_unshuffle): Move to public
388 interface.
389 (Mips_relocate_functions::mips_reloc_shuffle): Likewise.
390 (Mips_relocate_functions::rel16): Add support for resolving
391 relocations for Mips64.
392 (Mips_relocate_functions::rel32): Likewise.
393 (Mips_relocate_functions::reljalr): Likewise.
394 (Mips_relocate_functions::relpc32): Likewise.
395 (Mips_relocate_functions::rel26): Likewise.
396 (Mips_relocate_functions::relpc16): Likewise.
397 (Mips_relocate_functions::relmicromips_pc7_s1): Likewise.
398 (Mips_relocate_functions::relmicromips_pc10_s1): Likewise.
399 (Mips_relocate_functions::relmicromips_pc16_s1): Likewise.
400 (Mips_relocate_functions::do_relhi16): Likewise.
401 (Mips_relocate_functions::do_relgot16_local): Likewise.
402 (Mips_relocate_functions::rello16): Likewise.
403 (Mips_relocate_functions::relgot): Likewise.
404 (Mips_relocate_functions::relgotpage): Likewise.
405 (Mips_relocate_functions::relgotofst): Likewise.
406 (Mips_relocate_functions::relgot_hi16): Likewise.
407 (Mips_relocate_functions::relgot_lo16): Likewise.
408 (Mips_relocate_functions::relgprel): Likewise.
409 (Mips_relocate_functions::relgprel32): Likewise.
410 (Mips_relocate_functions::tlsrelhi16): Likewise.
411 (Mips_relocate_functions::tlsrello16): Likewise.
412 (Mips_relocate_functions::tlsrel32): Likewise.
413 (Mips_relocate_functions::relsub): Likewise.
414 (Mips_relocate_functions::releh): New method.
415 (Mips_relocate_functions::rel64): Likewise.
416 (Mips_got_info::record_local_got_symbol): Add is_section_symbol and
417 pass it to Mips_got_entry.
418 (Mips_got_info::add_local_entries): Pass addend argument
419 to code functions, and for STT_SECTION symbols call
420 add_symbolless_local_addend.
421 (Mips_got_info::add_tls_entries): Pass addend argument to code
422 functions.
423 (Mips_relobj::do_read_symbols): Read gp value that was used to
424 create object.
425 (Mips_output_data_plt::plt_entry): Remove opcode from l[wd]
426 instruction. Opcode for instruction will be selected later.
427 (Target_mips::gc_process_relocs): Add case for SHT_RELA.
428 (Target_mips::scan_relocatable_relocs): Likewise.
429 (Target_mips::emit_relocs_scan): Likewise.
430 (Target_mips::relocate_relocs): Likewise.
431 (Target_mips::do_finalize_sections): Skip objects for merging
432 processor specific flags in which all input sections will be
433 discarded.
434 (mips_get_size_for_reloc): Add case for R_MIPS_EH.
435 (Target_mips::Scan::get_reference_flags): Likewise.
436 (Target_mips::relocate_special_relocatable): Call rel26 method with
437 calculate_only and calculated_value arguments.
438 (Target_mips::Scan::local): Add case for R_MIPS_EH. Don't create a
439 dynamic relocation against a readonly sections, and pass
440 is_section_symbol to Mips_got_info::record_local_got_symbol.
441 (Target_mips::Scan::global): Add case for R_MIPS_EH. Don't create a
442 dynamic relocation against a readonly sections, and pass r_type
443 and r_offset to Target_mips::copy_reloc.
444 (Target_mips::Relocate::relocate): Add support for resolving
445 relocations for Mips64.
446 (Target_mips::mips_info): Add case for Mips64 default dynamic
447 linker name.
448 (Target_selector_mips): Correct emulation names.
449
450 2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
451
452 * mips.cc (class Mips_output_data_la25_stub): Add
453 do_print_to_mapfile function.
454
455 2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
456
457 * mips.cc (Mips_classify_reloc::put_r_info): Call 32bit version of
458 elf_r_info.
459
460 2016-03-09 H.J. Lu <hongjiu.lu@intel.com>
461
462 * testsuite/plugin_layout_with_alignment.cc: Renamed to ..
463 * testsuite/plugin_layout_with_alignment.c: This.
464 * testsuite/Makefile.am (plugin_layout_with_alignment.o): Updated.
465 (plugin_layout_with_alignment): Likewise.
466 * testsuite/Makefile.in: Regenerated.
467
468 2016-03-08 Cary Coutant <ccoutant@gmail.com>
469
470 PR 19751
471 * testsuite/Makefile.am (retain_symbols_file_test): Remove check
472 for constructor.
473 * testsuite/Makefile.in: Regenerate.
474 * testsuite/dynamic_list.sh: Likewise.
475 * testsuite/retain_symbols_file_test.sh: Likewise.
476
477 2016-03-08 Cary Coutant <ccoutant@gmail.com>
478
479 PR 19751
480 * arm.cc (Reloc_stub::Key::name): Add unused attribute.
481 * dirsearch.cc (Dir_caches::~Dir_caches): Likewise.
482
483 2016-03-08 Cary Coutant <ccoutant@gmail.com>
484 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
485
486 * output.cc (Output_reloc_writer): New type.
487 (Output_data_reloc_base::do_write): Move implementation to template
488 in output.h and replace with invocation of template.
489 * output.h (Output_file): Move to top of file.
490 (Output_reloc::get_symbol_index): Move to public interface.
491 (Output_reloc::get_address): Likewise.
492 (Output_data_reloc_base::do_write_generic): New function template.
493
494 2016-03-04 Cary Coutant <ccoutant@gmail.com>
495
496 PR gold/19019
497 PR gold/19763
498 * symtab.cc: Instantiate Sized_symbol::init_constant and
499 Sized_symbol::init_undefined.
500
501 2016-03-03 Cary Coutant <ccoutant@gmail.com>
502
503 PR gold/19019
504 * layout.h (Layout::add_target_specific_dynamic_tag): New function.
505 * layout.cc (Layout::add_target_specific_dynamic_tag): New function.
506 * mips.cc (Target_mips::make_symbol): Adjust function signature.
507 * sparc.cc (Target_sparc::Target_sparc): Initialize register_syms_.
508 (Target_sparc::do_is_defined_by_abi): Remove test for
509 STT_SPARC_REGISTER.
510 (Target_sparc::Register_symbol): New struct type.
511 (Target_sparc::register_syms_): New data member.
512 (Target_sparc<64, true>::sparc_info): Set has_make_symbol to true.
513 (Target_sparc::make_symbol): New function.
514 (Target_sparc::do_finalize_sections): Add register symbols and new
515 dynamic table entries.
516 * symtab.h (Sized_symbol::init_undefined): Add value parameter.
517 (Symbol_table::add_target_global_symbol): New function.
518 (Symbol_table::target_symbols_): New data member.
519 * symtab.cc (Sized_symbol::init_undefined): Add value parameter.
520 (Symbol_table::Symbol_table): Initialize target_symbols_.
521 (Symbol_table::add_from_object): Pass additional parameters to
522 Target::make_symbol.
523 (Symbol_table::define_special_symbol): Likewise.
524 (Symbol_table::add_undefined_symbol_from_command_line): Pass 0 for
525 undefined symbol value.
526 (Symbol_table::set_dynsym_indexes): Process target-specific symbols.
527 (Symbol_table::sized_finalize): Likewise.
528 (Symbol_table::sized_write_globals): Likewise.
529 * target.h (Sized_target::make_symbol): Add name, st_type, object,
530 st_shndx, and value parameters.
531
532 2016-03-03 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
533
534 * plugin.cc (do_should_include_member): Ignore LDPK_UNDEF and
535 LDPK_WEAKUNDEF symbols.
536
537 2016-03-03 Than McIntosh <thanm@google.com>
538
539 * plugin.cc (Plugin::load): Include hooks for get_input_section_size
540 and get_input_section_alignment in transfer vector.
541 (get_input_section_alignment): New function.
542 (get_input_section_size): New function.
543 * testsuite/Makefile.am: Add plugin_layout_with_alignment.sh test.
544 * testsuite/Makefile.in: [Regenerate.]
545 * testsuite/plugin_section_alignment.cc: New test file.
546 * testsuite/plugin_layout_with_alignment.cc: New test file.
547 * testsuite/plugin_layout_with_alignment.sh: New test file.
548
549 2016-03-03 Evgenii Stepanov <eugenis@google.com>
550
551 * plugin.h (Pluginobj::get_symbol_resolution_info): Add version
552 parameter.
553 * plugin.cc (get_symbols_v3): New function.
554 (Plugin::load): Add LDPT_GET_SYMBOLS_V3.
555 (Pluginobj::get_symbol_resolution_info): Return LDPS_NO_SYMS when using
556 new version.
557
558 2016-02-26 Egor Kochetov <egor.kochetov@intel.com>
559 Cary Coutant <ccoutant@gmail.com>
560
561 PR gold/19735
562 * ehframe.h (Cie::fde_encoding): New method.
563 * ehframe.cc (Eh_frame::read_fde): Discard FDEs for zero-length
564 address ranges.
565
566 2016-02-15 H.J. Lu <hongjiu.lu@intel.com>
567
568 * testsuite/Makefile.am (x86_64_mov_to_lea5.o): Pass
569 -mrelax-relocations=yes to $(TEST_AS).
570 (x86_64_mov_to_lea6.o): Likewise.
571 (x86_64_overflow_pc32.o): Remove duplicated target.
572 * testsuite/Makefile.in: Regenerated.
573
574 2016-02-15 Marcin Koƛcielnicki <koriakin@0x04.net>
575
576 * s390.cc (Target_s390::match_view_u): New helper method.
577 (Target_s390::do_is_call_to_non_split): New method.
578 (Target_s390::ss_code_st_r14): New const.
579 (Target_s390::ss_code_l_r14): New const.
580 (Target_s390::ss_code_bras_8): New const.
581 (Target_s390::ss_code_l_basr): New const.
582 (Target_s390::ss_code_a_basr): New const.
583 (Target_s390::ss_code_ear): New const.
584 (Target_s390::ss_code_c): New const.
585 (Target_s390::ss_code_larl): New const.
586 (Target_s390::ss_code_brasl): New const.
587 (Target_s390::ss_code_jg): New const.
588 (Target_s390::ss_code_jgl): New const.
589 (Target_s390::ss_match_mcount): New helper method.
590 (Target_s390::ss_match_l): New helper method.
591 (Target_s390::ss_match_ahi): New helper method.
592 (Target_s390::ss_match_alfi): New helper method.
593 (Target_s390::ss_match_cr): New helper method.
594 (Target_s390::do_calls_non_split): New method.
595 * testsuite/Makefile.am: Added new tests.
596 * testsuite/Makefile.in: Regenerate.
597 * testsuite/split_s390.sh: New test.
598 * testsuite/split_s390_1_a1.s: New test.
599 * testsuite/split_s390_1_a2.s: New test.
600 * testsuite/split_s390_1_n1.s: New test.
601 * testsuite/split_s390_1_n2.s: New test.
602 * testsuite/split_s390_1_z1.s: New test.
603 * testsuite/split_s390_1_z2.s: New test.
604 * testsuite/split_s390_1_z3.s: New test.
605 * testsuite/split_s390_1_z4.s: New test.
606 * testsuite/split_s390_2_ns.s: New test.
607 * testsuite/split_s390_2_s.s: New test.
608 * testsuite/split_s390x_1_a1.s: New test.
609 * testsuite/split_s390x_1_a2.s: New test.
610 * testsuite/split_s390x_1_n1.s: New test.
611 * testsuite/split_s390x_1_n2.s: New test.
612 * testsuite/split_s390x_1_z1.s: New test.
613 * testsuite/split_s390x_1_z2.s: New test.
614 * testsuite/split_s390x_1_z3.s: New test.
615 * testsuite/split_s390x_1_z4.s: New test.
616 * testsuite/split_s390x_2_ns.s: New test.
617 * testsuite/split_s390x_2_s.s: New test.
618
619 2016-02-11 Rahul Chaudhry <rahulchaudhry@google.com>
620
621 * aarch64.cc (Target_aarch64::scan_erratum_843419_span): Remove
622 info message for every erratum 843419 found and fixed.
623
624 2016-02-07 Cary Coutant <ccoutant@gmail.com>
625
626 PR gold/18695
627 * x86_64.cc (Target_x86_64::Relocate::relocate): Add additional
628 information to relocation overflow errors.
629
630 2016-02-06 Cary Coutant <ccoutant@gmail.com>
631
632 PR gold/18695
633 * x86_64.cc (X86_64_relocate_functions::pcrela32_check): Fix x32
634 overflow checking when symbol value + addend < 0.
635
636 2016-02-06 Cary Coutant <ccoutant@gmail.com>
637
638 PR gold/19577
639 * reloc.h (Limits): New class.
640 (Bits::has_overflow32): Use min/max values from Limits.
641 (Bits::has_unsigned_overflow32): Likewise.
642 (Bits::has_signed_unsigned_overflow32): Likewise.
643 (Bits::has_overflow): Likewise.
644 (Bits::has_unsigned_overflow): Likewise.
645 (Bits::has_signed_unsigned_overflow64): Likewise.
646
647 2016-02-06 Cary Coutant <ccoutant@gmail.com>
648
649 PR gold/19567
650 * reloc.h (Relocate_functions::Overflow_check): Add comments.
651 * x86_64.cc (X86_64_relocate_functions): New class.
652 (Target_x86_64::Relocate::relocate): Use the new class.
653 * testsuite/Makefile.am (x86_64_overflow_pc32): Add -Tdata option.
654 (x32_overflow_pc32): New test case.
655 * testsuite/Makefile.in: Regenerate.
656 * testsuite/x32_overflow_pc32.sh: New script.
657 * testsuite/x86_64_overflow_pc32.s: Remove .space directive.
658
659 2016-02-06 Cary Coutant <ccoutant@gmail.com>
660
661 PR gold/19577
662 * reloc.h (Bits::has_unsigned_overflow32): Fix static_cast.
663 (Bits::has_unsigned_overflow): Remove unnecessary static_cast.
664
665 2016-02-06 Cary Coutant <ccoutant@gmail.com>
666
667 PR gold/19577
668 * reloc.h (Bits::has_unsigned_overflow32): Fix unsigned/signed
669 comparison.
670 (Bits::has_unsigned_overflow): Likewise.
671
672 2016-02-06 Marcin Koƛcielnicki <koriakin@0x04.net>
673
674 * i386.cc (Target_i386::is_call_to_non_split): Add view and view_size
675 parameters.
676 * reloc.cc (Sized_relobj_file::split_stack_adjust_reltype): Pass view
677 and view_size to is_call_to_non_split.
678 * target.cc (Target::is_call_to_non_split): Add view and view_size
679 parameters.
680 * target.h (class Target): Likewise.
681
682 2016-02-05 Sriraman Tallam <tmsriram@google.com>
683
684 * icf.cc (get_rel_addend): New function.
685 (get_section_contents): Move merge section addend computation to a
686 new function. Ignore negative values for SHT_REL and SHT_RELA addends.
687 Fix bug to not read past the length of the section.
688
689 2016-02-05 Cary Coutant <ccoutant@gmail.com>
690 Andrew Senkevich <andrew.senkevich@intel.com>
691
692 PR gold/18695
693 * x86_64.cc (Target_x86_64::Relocate::relocate): Add overflow
694 checking for R_X86_64_32, R_X86_64_32S, R_X86_64_PC32, and
695 R_X86_64_PLT32.
696 * testsuite/Makefile.am (x86_64_overflow_pc32): New test.
697 * testsuite/x86_64_overflow_pc32.sh: New test script.
698 * testsuite/x86_64_overflow_pc32.s: New source file.
699
700 2016-02-05 Cary Coutant <ccoutant@gmail.com>
701
702 PR gold/18695
703 * reloc.h (Relocate_functions::Address): New typedef.
704 (Relocate_functions::Addendtype): New typedef.
705 (Relocate_functions::Overflow_check): New enum type.
706 (Relocate_functions::Reloc_status): New enum type.
707 (Relocate_functions::check_overflow): New function template.
708 (Relocate_functions::rel): Add check parameter; check for overflow.
709 (Relocate_functions::rel_unaligned): Likewise.
710 (Relocate_functions::rela): Likewise.
711 (Relocate_functions::pcrel): Likewise.
712 (Relocate_functions::pcrel_unaligned): Likewise.
713 (Relocate_functions::pcrela): Likewise.
714 (Relocate_functions::rel8): Adjust parameter types.
715 (Relocate_functions::rela8): Likewise.
716 (Relocate_functions::pcrel8): Likewise.
717 (Relocate_functions::pcrela8): Likewise.
718 (Relocate_functions::rel16): Likewise.
719 (Relocate_functions::rela168): Likewise.
720 (Relocate_functions::pcrel16): Likewise.
721 (Relocate_functions::pcrela16): Likewise.
722 (Relocate_functions::rel32): Likewise.
723 (Relocate_functions::rel32_unaligned): Likewise.
724 (Relocate_functions::rela32): Likewise.
725 (Relocate_functions::pcrel32): Likewise.
726 (Relocate_functions::pcrel32_unaligned): Likewise.
727 (Relocate_functions::pcrela32): Likewise.
728 (Relocate_functions::rel8_check): New function.
729 (Relocate_functions::rela8_check): New function.
730 (Relocate_functions::pcrel8_check): New function.
731 (Relocate_functions::pcrela8_check): New function.
732 (Relocate_functions::rel16_check): New function.
733 (Relocate_functions::rela168_check): New function.
734 (Relocate_functions::pcrel16_check): New function.
735 (Relocate_functions::pcrela16_check): New function.
736 (Relocate_functions::rel32_check): New function.
737 (Relocate_functions::rel32_unaligned_check): New function.
738 (Relocate_functions::rela32_check): New function.
739 (Relocate_functions::pcrel32_check): New function.
740 (Relocate_functions::pcrel32_unaligned_check): New function.
741 (Relocate_functions::pcrela32_check): New function.
742 (Bits::has_unsigned_overflow32): New function.
743 (Bits::has_unsigned_overflow): New function.
744 * testsuite/Makefile.am (overflow_unittest): New test.
745 * testsuite/Makefile.in: Regenerate.
746 * testsuite/overflow_unittest.cc: New source file.
747
748 2016-02-04 Alan Modra <amodra@gmail.com>
749
750 * powerpc.cc (relocate): Adjust last patch for big-endian.
751
752 2016-02-02 Alan Modra <amodra@gmail.com>
753
754 * powerpc.cc (relocate): Further restrict ELFv2 entry optimization.
755
756 2016-01-15 Han Shen <shenhan@google.com>
757
758 PR gold/19472 - need pc-relative stubs.
759
760 * aarch64.cc (Reloc_stub::stub_type_for_reloc): Return PC-relative
761 stub type for DSOs and pie executables.
762
763 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
764
765 * i386.cc (Target_i386::Classify_reloc::get_r_addend): Remove
766 'typename'.
767
768 2016-01-12 Cary Coutant <ccoutant@gmail.com>
769
770 * arm.cc (Target_arm::Classify_reloc::get_r_addend): New method.
771 * i386.cc (Target_i386::Classify_reloc::get_r_addend): New method.
772 * mips.cc (Target_arm::Mips_classify_reloc::get_r_addend): (Both
773 specializations) New method.
774
775 2016-01-11 Cary Coutant <ccoutant@gmail.com>
776
777 PR gold/19353
778 * aarch64.cc (Target_aarch64::relocate_tls): Don't insist that
779 we have a TLS segment for GD-to-IE optimization.
780 * i386.cc (Target_i386::tls_gd_to_ie): Remove tls_segment parameter.
781 Adjust all calls.
782 (Target_i386::tls_desc_gd_to_ie): Likewise.
783 (Target_i386::relocate_tls): Don't insist that we have a TLS segment
784 for TLSDESC GD-to-IE optimizations.
785 * x86_64.cc (Target_x86_64::tls_gd_to_ie): Remove tls_segment parameter.
786 Adjust all calls.
787 (Target_x86_64::tls_desc_gd_to_ie): Likewise.
788 (Target_x86_64::relocate_tls): Don't insist that we have a TLS segment
789 for TLSDESC GD-to-IE optimizations.
790
791 2016-01-11 Cary Coutant <ccoutant@gmail.com>
792
793 Refactor gold to enable support for MIPS-64 relocation format.
794
795 * gc.h (get_embedded_addend_size): Remove sh_type parameter.
796 (gc_process_relocs): Remove sh_type template parameter.
797 Use Classify_reloc to access r_sym, r_type, and r_addend fields.
798 * object.h (Sized_relobj_file::split_stack_adjust): Add target
799 parameter.
800 (Sized_relobj_file::split_stack_adjust_reltype): Likewise.
801 * reloc-types.h (Reloc_types::copy_reloc_addend): (SHT_REL and SHT_RELA
802 specializations) Remove.
803 * reloc.cc (Emit_relocs_strategy): Rename and move to target-reloc.h.
804 (Sized_relobj_file::emit_relocs_scan): Call Target::emit_relocs_scan().
805 (Sized_relobj_file::emit_relocs_scan_reltype): Remove.
806 (Sized_relobj_file::split_stack_adjust): Add target parameter.
807 Adjust all callers.
808 (Sized_relobj_file::split_stack_adjust_reltype): Likewise. Call
809 Target::get_r_sym() to get r_sym field from relocations.
810 (Track_relocs::next_symndx): Call Target::get_r_sym().
811 * target-reloc.h (scan_relocs): Remove sh_type template parameter;
812 add Classify_reloc template parameter. Use for accessing r_sym and
813 r_type.
814 (relocate_section): Likewise.
815 (Default_classify_reloc): New class (renamed and moved from reloc.cc).
816 (Default_scan_relocatable_relocs): Remove sh_type template parameter.
817 (Default_scan_relocatable_relocs::Reltype): New typedef.
818 (Default_scan_relocatable_relocs::reloc_size): New const.
819 (Default_scan_relocatable_relocs::sh_type): New const.
820 (Default_scan_relocatable_relocs::get_r_sym): New method.
821 (Default_scan_relocatable_relocs::get_r_type): New method.
822 (Default_emit_relocs_strategy): New class.
823 (scan_relocatable_relocs): Replace sh_type template parameter with
824 Scan_relocatable_relocs class. Use it to access r_sym and r_type
825 fields.
826 (relocate_relocs): Replace sh_type template parameter with
827 Classify_reloc class. Use it to access r_sym and r_type fields.
828 * target.h (Target::is_call_to_non_split): Replace r_type parameter
829 with pointer to relocation. Adjust all callers.
830 (Target::do_is_call_to_non_split): Likewise.
831 (Target::emit_relocs_scan): New virtual method.
832 (Sized_target::get_r_sym): New virtual method.
833 * target.cc (Target::do_is_call_to_non_split): Replace r_type parameter
834 with pointer to relocation.
835
836 * aarch64.cc (Target_aarch64::emit_relocs_scan): New method.
837 (Target_aarch64::Relocatable_size_for_reloc): Remove.
838 (Target_aarch64::gc_process_relocs): Use Default_classify_reloc.
839 (Target_aarch64::scan_relocs): Likewise.
840 (Target_aarch64::relocate_section): Likewise.
841 (Target_aarch64::Relocatable_size_for_reloc::get_size_for_reloc):
842 Remove.
843 (Target_aarch64::scan_relocatable_relocs): Use Default_classify_reloc.
844 (Target_aarch64::relocate_relocs): Use Default_classify_reloc.
845 * arm.cc (Target_arm::Arm_scan_relocatable_relocs): Remove sh_type
846 template parameter.
847 (Target_arm::emit_relocs_scan): New method.
848 (Target_arm::Relocatable_size_for_reloc): Replace with...
849 (Target_arm::Classify_reloc): ...this.
850 (Target_arm::gc_process_relocs): Use Classify_reloc.
851 (Target_arm::scan_relocs): Likewise.
852 (Target_arm::relocate_section): Likewise.
853 (Target_arm::scan_relocatable_relocs): Likewise.
854 (Target_arm::relocate_relocs): Likewise.
855 * i386.cc (Target_i386::emit_relocs_scan): New method.
856 (Target_i386::Relocatable_size_for_reloc): Replace with...
857 (Target_i386::Classify_reloc): ...this.
858 (Target_i386::gc_process_relocs): Use Classify_reloc.
859 (Target_i386::scan_relocs): Likewise.
860 (Target_i386::relocate_section): Likewise.
861 (Target_i386::scan_relocatable_relocs): Likewise.
862 (Target_i386::relocate_relocs): Likewise.
863 * mips.cc (Mips_scan_relocatable_relocs): Remove sh_type template
864 parameter.
865 (Mips_reloc_types): New class template.
866 (Mips_classify_reloc): New class template.
867 (Target_mips::Reltype): New typedef.
868 (Target_mips::Relatype): New typedef.
869 (Target_mips::emit_relocs_scan): New method.
870 (Target_mips::get_r_sym): New method.
871 (Target_mips::Relocatable_size_for_reloc): Replace with
872 Mips_classify_reloc.
873 (Target_mips::copy_reloc): Use Mips_classify_reloc.
874 (Target_mips::gc_process_relocs): Likewise.
875 (Target_mips::scan_relocs): Likewise.
876 (Target_mips::relocate_section): Likewise.
877 (Target_mips::scan_relocatable_relocs): Likewise.
878 (Target_mips::relocate_relocs): Likewise.
879 (mips_get_size_for_reloc): New function, factored out from
880 Relocatable_size_for_reloc::get_size_for_reloc.
881 (Target_mips::Scan::local): Use Mips_classify_reloc.
882 (Target_mips::Scan::global): Likewise.
883 (Target_mips::Relocate::relocate): Likewise.
884 * powerpc.cc (Target_powerpc::emit_relocs_scan): New method.
885 (Target_powerpc::Relocatable_size_for_reloc): Remove.
886 (Target_powerpc::gc_process_relocs): Use Default_classify_reloc.
887 (Target_powerpc::scan_relocs): Likewise.
888 (Target_powerpc::relocate_section): Likewise.
889 (Powerpc_scan_relocatable_reloc): Convert to class template.
890 (Powerpc_scan_relocatable_reloc::Reltype): New typedef.
891 (Powerpc_scan_relocatable_reloc::reloc_size): New const.
892 (Powerpc_scan_relocatable_reloc::sh_type): New const.
893 (Powerpc_scan_relocatable_reloc::get_r_sym): New method.
894 (Powerpc_scan_relocatable_reloc::get_r_type): New method.
895 (Target_powerpc::scan_relocatable_relocs): Use
896 Powerpc_scan_relocatable_reloc.
897 (Target_powerpc::relocate_relocs): Use Default_classify_reloc.
898 * s390.cc (Target_s390::emit_relocs_scan): New method.
899 (Target_s390::Relocatable_size_for_reloc): Remove.
900 (Target_s390::gc_process_relocs): Use Default_classify_reloc.
901 (Target_s390::scan_relocs): Likewise.
902 (Target_s390::relocate_section): Likewise.
903 (Target_s390::Relocatable_size_for_reloc::get_size_for_reloc):
904 Remove.
905 (Target_s390::scan_relocatable_relocs): Use Default_classify_reloc.
906 (Target_s390::relocate_relocs): Use Default_classify_reloc.
907 * sparc.cc (Target_sparc::emit_relocs_scan): New method.
908 (Target_sparc::Relocatable_size_for_reloc): Remove.
909 (Target_sparc::gc_process_relocs): Use Default_classify_reloc.
910 (Target_sparc::scan_relocs): Likewise.
911 (Target_sparc::relocate_section): Likewise.
912 (Target_sparc::Relocatable_size_for_reloc::get_size_for_reloc):
913 Remove.
914 (Target_sparc::scan_relocatable_relocs): Use Default_classify_reloc.
915 (Target_sparc::relocate_relocs): Use Default_classify_reloc.
916 * tilegx.cc (Target_tilegx::emit_relocs_scan): New method.
917 (Target_tilegx::Relocatable_size_for_reloc): Remove.
918 (Target_tilegx::gc_process_relocs): Use Default_classify_reloc.
919 (Target_tilegx::scan_relocs): Likewise.
920 (Target_tilegx::relocate_section): Likewise.
921 (Target_tilegx::Relocatable_size_for_reloc::get_size_for_reloc):
922 Remove.
923 (Target_tilegx::scan_relocatable_relocs): Use Default_classify_reloc.
924 (Target_tilegx::relocate_relocs): Use Default_classify_reloc.
925 * x86_64.cc (Target_x86_64::emit_relocs_scan): New method.
926 (Target_x86_64::Relocatable_size_for_reloc): Remove.
927 (Target_x86_64::gc_process_relocs): Use Default_classify_reloc.
928 (Target_x86_64::scan_relocs): Likewise.
929 (Target_x86_64::relocate_section): Likewise.
930 (Target_x86_64::Relocatable_size_for_reloc::get_size_for_reloc):
931 Remove.
932 (Target_x86_64::scan_relocatable_relocs): Use Default_classify_reloc.
933 (Target_x86_64::relocate_relocs): Use Default_classify_reloc.
934
935 * testsuite/testfile.cc (Target_test::emit_relocs_scan): New method.
936
937 2016-01-01 Alan Modra <amodra@gmail.com>
938
939 Update year range in copyright notice of all files.
940
941 For older changes see ChangeLog-0815
942 \f
943 Copyright (C) 2016 Free Software Foundation, Inc.
944
945 Copying and distribution of this file, with or without modification,
946 are permitted in any medium without royalty provided the copyright
947 notice and this notice are preserved.
948
949 Local Variables:
950 mode: change-log
951 left-margin: 8
952 fill-column: 74
953 version-control: never
954 End: