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