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