Fix spelling mistakes in comments in configure scripts
[deliverable/binutils-gdb.git] / gold / ChangeLog
1 2016-11-22 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
2
3 * configure: Regenerate.
4
5 2016-11-21 Cary Coutant <ccoutant@gmail.com>
6
7 PR gold/20693
8 * gold.cc (queue_middle_tasks): Force valid target earlier.
9
10 2016-11-21 Igor Kudrin <ikudrin@accesssoftek.com>
11
12 * layout.cc: Include windows.h and rpcdce.h (for MinGW32).
13 (Layout::create_build_id): Generate uuid using UuidCreate().
14
15 2016-11-04 Loïc Yhuel <loic.yhuel@softathome.com>
16
17 * configure.ac: add missing '$'.
18 * configure: Regenerate.
19
20 2016-10-21 Gergely Nagy <ngg@tresorit.com>
21
22 PR gold/17704
23 * icf.cc (match_sections): Add new parameter section_addraligns.
24 Check section alignment and keep the section with the strictest
25 alignment.
26 (find_identical_sections): New local variable section_addraligns.
27 Store each section's alignment.
28 * testsuite/pr17704a_test.s: New file.
29 * testsuite/Makefile.am (pr17704a_test): New test.
30 * testsuite/Makefile.in: Regenerate.
31
32 2016-10-06 Alan Modra <amodra@gmail.com>
33
34 * powerpc.cc (Target_powerpc::Relocate::relocate): Add fall
35 through comment.
36 * tilegx.cc (Target_tilegx::Relocate::relocate): Likewise.
37
38 2016-10-06 Alan Modra <amodra@gmail.com>
39
40 * aarch64.cc: Spell fall through comments as "// Fall through.".
41 * arm.cc: Likewise.
42 * mips.cc: Likewise.
43 * powerpc.cc: Likewise.
44 * s390.cc: Likewise.
45 * sparc.cc: Likewise.
46 * x86_64.cc: Likewise.
47 * powerpc.cc (Target_powerpc::Relocate::relocate): Add missing
48 fall through comments.
49 * sparc.cc: (Target_sparc::Scan::global): Likewise.
50 (Target_sparc::Relocate::relocate): Likewise.
51 * tilegx.cc (Target_tilegx::Relocate::relocate): Likewise.
52 * resolve.cc (symbol_to_bits): Add missing break.
53
54 2016-09-26 Cary Coutant <ccoutant@gmail.com>
55
56 PR gold/20238
57 * symtab.cc (Symbol_table::define_default_version): Check that
58 unversioned symbol is defined.
59
60 2016-09-26 Vlad Zakharov <vzakhar@synopsys.com>
61
62 * Makefile.in: Regenerate.
63 * configure: Likewise.
64 * testsuite/Makefile.in: Likewise.
65
66 2016-09-26 Alan Modra <amodra@gmail.com>
67
68 * aarch64.cc (Target_aarch64::is_erratum_835769_sequence): Avoid
69 compiler warning.
70 * output.cc (Output_segment::set_section_addresses): Likewise.
71 * testsuite/Makefile.in: Regenerate.
72
73 2016-09-02 Doug Kwan <dougkwan@google.com>
74
75 * arm.cc (Target_arm::Target_arm): Move method definition outside of
76 class definition. Add code to handle --target1-rel, --target1-abs
77 and --target2= options.
78 (Target_arm::get_reloc_reloc_type): Change method to be non-static
79 and const.
80 (Target_arm::target1_is_rel_, Target_arm::target2_reloc_): New data
81 member declaration.
82 (Target_arm::Scan::local, Target_arm::Scan::global,
83 Target_arm::Relocate::relocate,
84 Target_arm::Relocatable_size_for_reloc::get_size_for_reloc): Adjust
85 call to Target_arm::get_real_reloc_type.
86 (Target_arm::get_real_reloc_type): Use command line options to
87 determine real types of R_ARM_TARGET1 and R_ARM_TARGET2.
88 * options.h (--target1-rel, --target1-abs, --target2): New ARM-only
89 options.
90
91 2016-08-31 Alan Modra <amodra@gmail.com>
92
93 * powerpc.cc (class Stub_control): Delete stub14_group_size_
94 and has14_. Add group_size_.
95 (Stub_control::can_add_to_stub_group): Adjust to suit. Print
96 debug info when switching to adding sections before stubs.
97
98 2016-08-31 Alan Modra <amodra@gmail.com>
99
100 * debug.h (DEBUG_TARGET): New.
101 (DEBUG_ALL): Add DEBUG_TARGET.
102 (gold_debug): Delete FORMAT param.
103 * powerpc.cc (Stub_control::can_add_to_stub_group): Print debug ourput.
104
105 2016-08-30 Alan Modra <amodra@gmail.com>
106
107 PR 20523
108 * powerpc.cc (class Stub_control): Add has14_. Comment owner_.
109 (Stub_control::can_add_to_stub_group): Correct grouping of
110 sections containing 14-bit external branches. When returning
111 false, set state_ to reflect the fact that we have one section
112 for the next group. Rewrite most of function for clarity.
113 Add and expand comments.
114 (Target_powerpc::do_relax): Print stub group size retry in hex.
115
116 2016-08-26 Han Shen <shenhan@google.com>
117
118 PR gold/20529 - relaxing loop never ends.
119
120 * powerpc.cc (Stub_table::min_size_threshold_): New member to
121 limit size.
122 (Stub_table::set_min_size_threshold): New member function.
123 (Stub_table::set_address_and_size): Add code to only allow size
124 increase.
125 (Target_powerpc::do_relax): Add code to record last size.
126
127 2016-08-23 Roland McGrath <roland@hack.frob.com>
128
129 * options.h (General_options): Grok -z stack-size.
130 * output.h (Output_segment::set_size): New method.
131 * layout.cc (Layout::create_executable_stack_info): Renamed to ...
132 (Layout::create_stack_segment): ... this. Always create the
133 segment if -z stack-size was used.
134 (Layout::set_segment_offsets): Don't call ->set_offset on the
135 PT_GNU_STACK segment.
136
137 2016-08-15 Bharathi Seshadri <bseshadr@cisco.com>
138
139 * options.h (General_options): Add --be8 option.
140 * arm.cc (Arm_relobj::do_relocate_sections): Add code to swap for be8.
141 (Output_data_plt_arm_standard::do_fill_first_plt_entry): Likewise.
142 (Output_data_plt_arm_short::do_fill_plt_entry): Likewise.
143 (Output_data_plt_arm_long::do_fill_plt_entry): Likewise.
144 (Target_arm::do_adjust_elf_header): Do EF_ARM_BE8 adjustment.
145
146 2016-08-17 Cary Coutant <ccoutant@gmail.com>
147
148 * i386.cc (Target_i386): Reset skip_call_tls_get_addr_ after printing
149 error message.
150 * testsuite/Makefile.am (pr20216a): Add missing dependencies.
151 (pr20308a): Add -Bgcctestdir/ to compile rules.
152 * testsuite/Makefile.in: Regenerate.
153
154 2016-08-12 Roland McGrath <roland@hack.frob.com>
155
156 PR gold/20462
157 * script-sections.cc (Script_sections::release_segments):
158 Reset this->segments_created_.
159
160 2016-08-12 Roland McGrath <roland@hack.frob.com>
161
162 * yyscript.y (HIDDEN): New %token.
163 (assignment): Handle HIDDEN(string = expr) syntax.
164 * script.cc (script_keyword_parsecodes): Add HIDDEN.
165
166 2016-08-10 Cary Coutant <ccoutant@gmail.com>
167
168 PR gold/20216
169 * x86_64.cc (Target_x86_64::Relocate::relocate): Add check for
170 R_X86_64_GOTPCREL. Reset skip_call_tls_get_addr_ after printing
171 error message.
172 * testsuite/Makefile.am (pr20216_gd.o): Add -Bgcctestdir/.
173 (pr20216_ld.o): Likewise.
174 * testsuite/Makefile.in: Regenerate.
175
176 2016-08-10 James Clarke <jrtc27@jrtc27.com>
177
178 PR gold/20443
179 * symtab.cc (Symbol_table::add_from_relobj): Handle NULL symbols,
180 which will be present for STT_SPARC_REGISTER.
181 (Symbol_table::add_from_pluginobj): Likewise.
182 (Symbol_table::add_from_dynobj): Likewise.
183 (Symbol_table::add_from_incrobj): Removed dead code.
184
185 2016-08-10 James Clarke <jrtc27@jrtc27.com>
186
187 PR gold/20442
188 * sparc.cc (Target_sparc::Relocate::relocate): R_SPARC_GOTDATA_OP_LOX10
189 should fall back on R_SPARC_GOT10, not R_SPARC_GOT13.
190
191 2016-08-10 James Clarke <jrtc27@jrtc27.com>
192
193 PR gold/20441
194 * sparc.cc (Target_sparc::Scan::check_non_pic): Allow R_SPARC_32 on
195 sparc64.
196
197 2016-06-29 Cary Coutant <ccoutant@gmail.com>
198
199 PR gold/20310
200 * testsuite/dynamic_list.sh: Remove check for _ZdlPv.
201
202 2016-06-29 Cary Coutant <ccoutant@gmail.com>
203
204 * testsuite/Makefile.am (MOSTLYCLEANFILES): Add eh_test_2.
205 * testsuite/Makefile.in: Regenerate.
206
207 2016-06-30 Alan Modra <amodra@gmail.com>
208
209 * testsuite/Makefile.am (memory_test, memory_test_2): Pass
210 -Wl,-z to gcc, not plain -z.
211 * testsuite/Makefile.in: Regenerate.
212
213 2016-06-29 H.J. Lu <hongjiu.lu@intel.com>
214
215 PR gold/20308
216 * i386.cc (Target_i386::Relocate::relocate): Allow
217 R_386_GOT32X relocation against ___tls_get_addr.
218 (Target_i386::Relocate::tls_gd_to_ie): Support indirect
219 call to __tls_get_addr.
220 (Target_i386::Relocate::tls_gd_to_le): Likewise.
221 (Target_i386::Relocate::tls_ld_to_le): Likewise.
222 * testsuite/Makefile.am (check_PROGRAMS): Add pr20308a_test,
223 pr20308b_test, pr20308c_test, pr20308d_test, pr20308e_test.
224 (pr20308a_test_SOURCES): New.
225 (pr20308a_test_DEPENDENCIES): Likewise.
226 (pr20308a_test_CFLAGS): Likewise.
227 (pr20308a_test_LDFLAGS): Likewise.
228 (pr20308a_test_LDADD): Likewise.
229 (pr20308b_test_SOURCES): Likewise.
230 (pr20308b_test_DEPENDENCIES): Likewise.
231 (pr20308b_test_CFLAGS): Likewise.
232 (pr20308b_test_LDFLAGS): Likewise.
233 (pr20308b_test_LDADD): Likewise.
234 (pr20308c_test_SOURCES): Likewise.
235 (pr20308c_test_DEPENDENCIES): Likewise.
236 (pr20308c_test_CFLAGS): Likewise.
237 (pr20308c_test_LDFLAGS): Likewise.
238 (pr20308c_test_LDADD): Likewise.
239 (pr20308d_test_SOURCES): Likewise.
240 (pr20308d_test_DEPENDENCIES): Likewise.
241 (pr20308d_test_CFLAGS): Likewise.
242 (pr20308d_test_LDFLAGS): Likewise.
243 (pr20308d_test_LDADD): Likewise.
244 (pr20308e_test_SOURCES): Likewise.
245 (pr20308e_test_DEPENDENCIES): Likewise.
246 (pr20308e_test_CFLAGS): Likewise.
247 (pr20308e_test_LDFLAGS): Likewise.
248 (pr20308e_test_LDADD): Likewise.
249 (pr20308a.so): Likewise.
250 (pr20308b.so): Likewise.
251 (pr20308_gd.o): Likewise.
252 (pr20308_ld.o): Likewise.
253 (MOSTLYCLEANFILES): Add pr20308a.so pr20308b.so.
254 * testsuite/Makefile.in: Regenerated.
255 * testsuite/pr20308_def.c: New file.
256 * testsuite/pr20308_gd.S: Likewise.
257 * testsuite/pr20308_ld.S: Likewise.
258 * testsuite/pr20308_main.c: Likewise.
259
260 2016-06-29 H.J. Lu <hongjiu.lu@intel.com>
261
262 PR gold/20216
263 * configure.ac (DEFAULT_TARGET_X86_64_OR_X32): New
264 AM_CONDITIONAL.
265 * configure: Regenerated.
266 * x86_64.cc (Target_x86_64<size>::Relocate::relocate): Allow
267 R_X86_64_GOTPCRELX relocation against __tls_get_addr.
268 (Target_x86_64<size>::Relocate::tls_gd_to_ie): Support indirect
269 call to __tls_get_addr.
270 (Target_x86_64<size>::Relocate::tls_gd_to_le): Likewise.
271 (Target_x86_64<size>::Relocate::tls_ld_to_le): Likewise.
272 * testsuite/Makefile.am (check_PROGRAMS): Add pr20216a_test,
273 pr20216b_test, pr20216c_test, pr20216d_test, pr20216e_test.
274 (pr20216a_test_SOURCES): New.
275 (pr20216a_test_DEPENDENCIES): Likewise.
276 (pr20216a_test_CFLAGS): Likewise.
277 (pr20216a_test_LDFLAGS): Likewise.
278 (pr20216a_test_LDADD): Likewise.
279 (pr20216b_test_SOURCES): Likewise.
280 (pr20216b_test_DEPENDENCIES): Likewise.
281 (pr20216b_test_CFLAGS): Likewise.
282 (pr20216b_test_LDFLAGS): Likewise.
283 (pr20216b_test_LDADD): Likewise.
284 (pr20216c_test_SOURCES): Likewise.
285 (pr20216c_test_DEPENDENCIES): Likewise.
286 (pr20216c_test_CFLAGS): Likewise.
287 (pr20216c_test_LDFLAGS): Likewise.
288 (pr20216c_test_LDADD): Likewise.
289 (pr20216d_test_SOURCES): Likewise.
290 (pr20216d_test_DEPENDENCIES): Likewise.
291 (pr20216d_test_CFLAGS): Likewise.
292 (pr20216d_test_LDFLAGS): Likewise.
293 (pr20216d_test_LDADD): Likewise.
294 (pr20216e_test_SOURCES): Likewise.
295 (pr20216e_test_DEPENDENCIES): Likewise.
296 (pr20216e_test_CFLAGS): Likewise.
297 (pr20216e_test_LDFLAGS): Likewise.
298 (pr20216e_test_LDADD): Likewise.
299 (pr20216a.so): Likewise.
300 (pr20216b.so): Likewise.
301 (pr20216_gd.o): Likewise.
302 (pr20216_ld.o): Likewise.
303 (MOSTLYCLEANFILES): Add pr20216a.so pr20216b.so.
304 * testsuite/Makefile.in: Regenerated.
305 * testsuite/pr20216_def.c: New file.
306 * testsuite/pr20216_gd.S: Likewise.
307 * testsuite/pr20216_ld.S: Likewise.
308 * testsuite/pr20216_main.c: Likewise.
309
310 2016-06-29 Alan Modra <amodra@gmail.com>
311
312 * script_test_12.t: Delete .plt, specify 64k page size.
313 * script_test_12i.t: Likewise.
314
315 2016-06-29 Alan Modra <amodra@gmail.com>
316
317 * testsuite/plugin_layout_with_alignment.c: Explicitly align all
318 variables.
319
320 2016-06-29 Alan Modra <amodra@gmail.com>
321
322 * testsuite/Makefile.am (copy_test_protected): Disable for powerpc.
323 * testsuite/Makefile.in: Regenerate.
324
325 2016-06-28 Igor Kudrin <ikudrin@accesssoftek.com>
326
327 * aarch64-reloc.def (NONE): New relocation.
328 * aarch64.cc (Target_aarch64::Scan::local): Handle R_AARCH64_NONE.
329 (Target_aarch64::Scan::global): Likewise.
330 * testsuite/Makefile.am (aarch64_reloc_none): New test.
331 * testsuite/Makefile.in: Regenerate.
332 * testsuite/aarch64_reloc_none.s: New test source file.
333 * testsuite/aarch64_reloc_none.sh: New test script.
334
335 2016-06-28 Sriraman Tallam <tmsriram@google.com>
336
337 * x86_64.cc (Lazy_view): New class.
338 (can_convert_mov_to_lea): Templatize function. Make the function
339 check for appropriate relocation types and use the view parameter
340 to get section contents.
341 (can_convert_callq_to_direct): New function.
342 (Target_x86_64<size>::Scan::global): Refactor.
343 (Target_x86_64<size>::Relocate::relocate): Refactor. Change any indirect
344 call via GOT that can be converted.
345 * testsuite/Makefile.am (x86_64_indirect_call_to_direct.sh): New test.
346 * testsuite/Makefile.in: Regenerate.
347 * testsuite/x86_64_indirect_call_to_direct1.s: New file.
348 * testsuite/x86_64_indirect_jump_to_direct1.s: New file.
349
350 2016-06-28 Igor Kudrin <ikudrin@accesssoftek.com>
351
352 * aarch64.cc (Target_aarch64::Scan::local): Move the call to got_section
353 from the top level to the places of its use.
354
355 2016-06-28 Igor Kudrin <ikudrin@accesssoftek.com>
356
357 PR gold/18098
358 * script-c.h (Sort_wildcard): Add SORT_WILDCARD_BY_INIT_PRIORITY.
359 * script-sections.cc (Input_section_sorter::get_init_priority): New method.
360 (Input_section_sorter::operator()): Handle SORT_WILDCARD_BY_INIT_PRIORITY.
361 (Output_section_element_input::print): Likewise.
362 * script.cc (script_keyword_parsecodes): Add entry SORT_BY_INIT_PRIORITY.
363 * yyscript.y (SORT_BY_INIT_PRIORITY): New token.
364 (wildcard_section): Handle SORT_BY_INIT_PRIORITY.
365
366 * testsuite/Makefile.am (script_test_14): New test.
367 * testsuite/Makefile.in: Regenerate.
368 * testsuite/script_test_14.s: New test source file.
369 * testsuite/script_test_14.sh: New test script.
370 * testsuite/script_test_14.t: New test linker script.
371
372 2016-06-28 James Clarke <jrtc27@jrtc27.com>
373
374 * sparc.cc (Target_sparc::Scan::local): Don't convert R_SPARC_32
375 to R_SPARC_RELATIVE if class is ELFCLASS64.
376 (Target_sparc::Scan::global): Likewise.
377
378 2016-06-23 Cary Coutant <ccoutant@gmail.com>
379 Igor Kudrin <ikudrin@accesssoftek.com>
380
381 PR gold/15370
382 * script-sections.cc
383 (Output_section_element_input::set_section_addresses): Keep bin_count
384 separate from input_pattern_count.
385 * testsuite/script_test_12.t: Add another section .x4.
386 * testsuite/script_test_12i.t: Likewise.
387 * testsuite/script_test_12a.c: Likewise.
388 * testsuite/script_test_12b.c: Likewise.
389
390 2016-06-23 Igor Kudrin <ikudrin@accesssoftek.com>
391
392 * gold-threads.cc (impl_threads::Lock_impl_threads): Fix typos.
393
394 2016-06-22 H.J. Lu <hongjiu.lu@intel.com>
395
396 PR ld/20283
397 * NEWS: Mention --enable-relro.
398 * configure.ac: Add --enable-relro.
399 (DEFAULT_LD_Z_RELRO): New. Set by --enable-relro and default
400 to 1.
401 * config.in: Regenerated.
402 * configure: Likewise.
403 * options.h (General_options::relro): Default to
404 DEFAULT_LD_Z_RELRO.
405
406 2016-06-20 Cary Coutant <ccoutant@gmail.com>
407
408 * NEWS: Add new features in 1.12.
409 * version.cc (version_string): Bump to 1.12.
410
411 2016-06-20 H.J. Lu <hongjiu.lu@intel.com>
412
413 PR gold/20245
414 * i386.cc (Target_i386::first_plt_entry_offset): Return 0 if
415 plt_ is NULL.
416 (Target_i386::plt_entry_size): Likewise.
417 (Target_x86_64<size>::first_plt_entry_offset): Likewise.
418 (Target_x86_64<size>::plt_entry_size): Likewise.
419
420 2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
421
422 * mips.cc (Target_mips::Target_mips): Initialize rld_map_.
423 (Target_mips::rld_map_): New data member.
424 (Target_mips::do_finalize_sections): Add support for
425 DT_MIPS_RLD_MAP and DT_MIPS_RLD_MAP_REL dynamic tags,
426 .rld_map section, and __RLD_MAP symbol.
427 (Target_mips::do_dynamic_tag_custom_value): Add support for
428 DT_MIPS_RLD_MAP_REL dynamic tag.
429 * output.cc (Output_data_dynamic::get_entry_offset): New method
430 definition.
431 * output.h (Output_data_dynamic::get_entry_offset): New method
432 declaration.
433
434 2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
435
436 * mips.cc (Mips_relocate_functions::relpc16): Add unaligned check.
437
438 2016-06-20 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
439
440 * mips.cc (relocation_needs_la25_stub): Add support for relocs:
441 R_MIPS_PC21_S2 and R_MIPS_PC26_S2.
442 (hi16_reloc): Add support for R_MIPS_PCHI16 relocation.
443 (is_matching_lo16_reloc): Likewise.
444 (lo16_reloc): Add support for R_MIPS_PCLO16 relocation.
445 (Mips_output_data_plt::plt_entry_r6): New static data member for
446 R6 PLT entry.
447 (Target_mips::is_output_r6): New method.
448 (Target_mips::Mips_mach): Add new enum constants.
449 (Mips_relocate_functions::Status): Likewise.
450 (Mips_relocate_functions::pchi16_relocs): New static data member.
451 (Mips_relocate_functions::relpc21): New method.
452 (Mips_relocate_functions::relpc26): Likewise.
453 (Mips_relocate_functions::relpc18): Likewise.
454 (Mips_relocate_functions::relpc19): Likewise.
455 (Mips_relocate_functions::relpchi16): Likewise.
456 (Mips_relocate_functions::do_relpchi16): Likewise.
457 (Mips_relocate_functions::relpclo16): Likewise.
458 (Mips_output_data_plt::do_write): Add support for Mips r6 plt
459 entry.
460 (Target_mips::mips_32bit_flags): Add E_MIPS_ARCH_32R6 support.
461 (Target_mips::elf_mips_mach): Add E_MIPS_ARCH_32R6 and
462 E_MIPS_ARCH_64R6 support.
463 (Target_mips::update_abiflags_isa): Likewise.
464 (mips_get_size_for_reloc): Add support for relocs: R_MIPS_PCHI16,
465 R_MIPS_PCLO16, R_MIPS_PC21_S2, R_MIPS_PC26_S2, R_MIPS_PC18_S3 and
466 R_MIPS_PC19_S2.
467 (Target_mips::Scan::local): Add support for relocs: R_MIPS_PCHI16
468 and R_MIPS_PCLO16.
469 (Target_mips::Scan::global): Add support for relocs:
470 R_MIPS_PC21_S2 and R_MIPS_PC26_S2.
471 (Target_mips::Relocate::relocate): Call functions for resolving
472 Mips32r6 and Mips64r6 relocations, and print error message for
473 STATUS_PCREL_UNALIGNED.
474 (Target_mips::Scan::get_reference_flags): Add support for relocs:
475 R_MIPS_PCHI16, R_MIPS_PCLO16, R_MIPS_PC21_S2, R_MIPS_PC26_S2,
476 R_MIPS_PC18_S3 and R_MIPS_PC19_S2.
477 (Target_mips::elf_mips_mach_name): Add E_MIPS_ARCH_32R6 and
478 E_MIPS_ARCH_64R6 support.
479
480 2016-06-13 H.J. Lu <hongjiu.lu@intel.com>
481
482 PR gold/20246
483 * testsuite/script_test_2.t: Add .got.plt after .got.
484
485 2016-06-10 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
486
487 * mips.cc (struct Mips_abiflags): New struct.
488 (Mips_relobj::Mips_relobj): Initialize attributes_section_data_
489 and abiflags_.
490 (Mips_relobj::~Mips_relobj): Delete object pointed by
491 attributes_section_data_.
492 (Mips_relobj::abiflags): New method.
493 (Mips_relobj::attributes_section_data): Likewise.
494 (Mips_relobj::attributes_section_data_): New data member.
495 (Mips_relobj::abiflags_): Likewise.
496 (class Mips_output_section_abiflags): New class.
497 (Target_mips::Target_mips): Initialize attributes_section_data_,
498 abiflags_ and has_abiflags_section_.
499 (Target_mips::do_should_include_section): Don't emit input
500 .MIPS.abiflags sections to output .MIPS.abiflags.
501 (Target_mips::Mips_mach): Add new enum constants.
502 (Target_mips::mips_isa_ext_mach): New method.
503 (Target_mips::mips_isa_ext): Likewise.
504 (Target_mips::update_abiflags_isa): Likewise.
505 (Target_mips::infer_abiflags): Likewise.
506 (Target_mips::create_abiflags): Likewise.
507 (Target_mips::fp_abi_string): Likewise.
508 (Target_mips::select_fp_abi): Likewise.
509 (Target_mips::merge_obj_attributes): Likewise.
510 (Target_mips::merge_obj_abiflags): Likewise.
511 (Target_mips::level_rev): Likewise.
512 (Target_mips::merge_obj_e_flags): Rename from
513 merge_processor_specific_flags. Remove dyn_obj argument,
514 call update_abiflags_isa when needed, compare NaN encodings and
515 compare FP64 state.
516 (Target_mips::add_machine_extensions): Add two machine extensions
517 and fix one.
518 (Target_mips::attributes_section_data_): New data member.
519 (Target_mips::abiflags_): Likewise.
520 (Target_mips::has_abiflags_section_): Likewise.
521 (Mips_relobj::do_read_symbols): Read .gnu.attributes and
522 .MIPS.abiflags sections if they exists.
523 (Target_mips::elf_mips_mach): Add E_MIPS_MACH_5900 and
524 E_MIPS_MACH_OCTEON3 support.
525 (Target_mips::do_adjust_elf_header): Setup EI_ABIVERSION flag.
526 (Target_mips::do_finalize_sections): Merge .gnu.attributes and
527 .MIPS.abiflags sections from input. Create these sections if
528 needed.
529 (Target_mips::elf_mips_mach_name): Add E_MIPS_MACH_5900 and
530 E_MIPS_MACH_OCTEON3 support, and change strings for
531 E_MIPS_MACH_LS2E, E_MIPS_MACH_LS2F and E_MIPS_MACH_LS3A just
532 to match bfd.
533
534 2016-06-10 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
535
536 * mips.cc (Mips_relobj::Mips_relobj): Initialize
537 has_reginfo_section_.
538 (Mips_relobj::has_reginfo_section_): New data member.
539 (Mips_relobj::has_reginfo_section): New method.
540 (class Mips_output_section_reginfo): Change base class to
541 Output_section_data, and set masks of the output .reginfo section
542 in constructor.
543 (Mips_output_section_reginfo::as_mips_output_section_reginfo):
544 Remove.
545 (Mips_output_section_reginfo::set_masks): Likewise.
546 (Mips_output_section_reginfo::set_final_data_size): Likewise.
547 (Mips_output_section_reginfo::do_print_to_mapfile): New method.
548 (Target_mips::do_make_output_section): Remove.
549 (Mips_relobj::do_read_symbols): Set has_reginfo_section_ to true
550 if the object contains a .reginfo section.
551 (Target_mips::do_finalize_sections): Create a .reginfo output
552 section if needed.
553
554 2016-06-09 Artemiy Volkov <artemiyv@acm.org>
555
556 * mips.cc (Mips_output_data_got::do_write): Add missing template
557 args via typedef.
558
559 2016-05-30 Marcin Kościelnicki <koriakin@0x04.net>
560
561 PR/19960
562 * s390.cc (Target_s390::ss_code_st_r14): Removed.
563 (Target_s390::ss_code_l_r14): Removed.
564 (Target_s390::ss_code_ear): Removed.
565 (Target_s390::ss_code_c): Removed.
566 (Target_s390::ss_match_st_r14): New function.
567 (Target_s390::ss_match_l_r14): New function.
568 (Target_s390::ss_match_mcount): Call ss_match_{l,st}_r14 instead
569 of matching code directly.
570 (Target_s390::ss_match_ear): New function.
571 (Target_s390::ss_match_c): New function.
572 (Target_s390::do_calls_non_split): Call ss_match_{ear,c} instead
573 of matching code directly.
574
575 2016-05-19 Cary Coutant <ccoutant@gmail.com>
576
577 PR gold/19823
578 * copy-relocs.cc (Copy_relocs::make_copy_reloc): Add object
579 parameter; check for protected symbol.
580 * copy-relocs.h (Copy_relocs::make_copy_reloc): Add object parameter.
581 * mips.cc (Mips_copy_relocs): Adjust call to make_copy_reloc.
582 * symtab.cc (Symbol::init_fields): Initialize is_protected_.
583 (Symbol_table::add_from_dynobj): Mark protected symbols.
584 * symtab.h (Symbol::is_protected): New method.
585 (Symbol::set_is_protected): New method.
586 (Symbol::is_protected_): New data member.
587
588 * testsuite/Makefile.am (copy_test_protected): New test.
589 * testsuite/Makefile.in: Regenerate.
590 * testsuite/copy_test.cc (main): Add legal reference to protected
591 symbol.
592 * testsuite/copy_test_v1.cc (main): Likewise.
593 * testsuite/copy_test_2.cc (ip): Add protected symbol.
594 * testsuite/copy_test_protected.cc: New test source file.
595 * testsuite/copy_test_protected.sh: New test script.
596
597 2016-05-19 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
598
599 * mips.cc (Mips_got_entry::Mips_got_entry): Remove object argument
600 for global got symbols, and set addend to 0.
601 (Mips_got_entry::hash): Change hash algorithm.
602 (Mips_got_entry::equals): Refactor.
603 (Mips_got_entry::object): Return input object for local got symbols
604 from union d.
605 (Mips_got_entry::addend): Change return of the relocation addend.
606 (Mips_got_entry::addend_): Move from union d.
607 (Mips_got_entry::object_): Move into union d.
608 (class Mips_symbol_hash): New class.
609 (Mips_got_info::Global_got_entry_set): New type.
610 (Mips_got_info::global_got_symbols): Change return type to
611 Global_got_entry_set.
612 (Mips_got_info::global_got_symbols_): Change type to
613 Global_got_entry_set.
614 (Mips_symbol::hash): New method.
615 (Mips_output_data_la25_stub::symbols_): Change type to std::vector.
616 (Mips_output_data_mips_stubs::Mips_stubs_entry_set): New type.
617 (Mips_output_data_mips_stubs::symbols_): Change type to
618 Mips_stubs_entry_set.
619 (Mips_got_info::record_global_got_symbol): Don't pass object
620 argument when creating global got symbol.
621 (Mips_got_info::record_got_entry): Remove find before inserting
622 got entries.
623 (Mips_got_info::add_reloc_only_entries): Change type of iterator
624 to Global_got_entry_set.
625 (Mips_got_info::count_got_symbols): Likewise.
626 (Mips_output_data_la25_stub::create_la25_stub): Use push_back
627 for adding entries to symbols_.
628 (Mips_output_data_la25_stub::do_write): Change type of iterator
629 to std::vector.
630 (Mips_output_data_mips_stubs::set_lazy_stub_offsets): Change type
631 of iterator to Mips_stubs_entry_set.
632 (Mips_output_data_mips_stubs::set_needs_dynsym_value): Likewise.
633 (Mips_output_data_mips_stubs::do_write): Likewise.
634
635 2016-05-06 Han Shen <shenhan@google.com>
636
637 PR gold/19987.
638
639 * aarch64-reloc.def: New relocation type.
640 * aarch64.cc (AArch64_relocate_functions::Page): Changed to public.
641 (Target_aarch64::Scan::local): Add R_AARCH64_LD64_GOTPAGE_LO15.
642 (Target_aarch64::Scan::global): Add R_AARCH64_LD64_GOTPAGE_LO15.
643 (Target_aarch64::Relocate::relocate): Implement R_AARCH64_LD64_GOTPAGE_LO15.
644
645 2016-04-28 Nick Clifton <nickc@redhat.com>
646
647 * po/zh_CN.po: Updated Chinese (simplified) translation.
648
649 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
650
651 * Makefile.in: Regenerated with automake 1.11.6.
652 * aclocal.m4: Likewise.
653 * testsuite/Makefile.in: Likewise.
654
655 2016-03-30 Cary Coutant <ccoutant@gmail.com>
656
657 PR gold/16979
658 * symtab.cc (Symbol_table::define_default_version): Check for case
659 where symbols are both in different shared objects.
660
661 2016-03-27 Cary Coutant <ccoutant@gmail.com>
662
663 PR gold/16111
664 * i386.cc (Target_i386): Add check for fully-resolved symbol for
665 R_386_GOTOFF.
666
667 2016-03-22 Nick Clifton <nickc@redhat.com>
668
669 * configure: Regenerate.
670
671 2016-03-21 Cary Coutant <ccoutant@gmail.com>
672
673 PR gold/19842
674 * errors.cc (Errors::undefined_symbol): Add info message when
675 symbol should have been provided by a plugin.
676 * target-reloc.h (issue_undefined_symbol_error): Check for
677 placeholder symbols defined in discarded sections.
678 * testsuite/Makefile.am (plugin_test_9b): New test case.
679 * testsuite/Makefile.in: Regenerate.
680 * testsuite/plugin_test_9b_elf.cc: New test source file.
681 * testsuite/plugin_test_9b_ir.cc: New test source file.
682
683 2016-03-20 Cary Coutant <ccoutant@gmail.com>
684
685 PR gold/19002
686 * ehframe.cc (Eh_frame::read_fde): Check for dropped functions.
687 * testsuite/Makefile.am (eh_test_2): New test.
688 * testsuite/Makefile.in: Regenerate.
689 * testsuite/eh_test_2.sh: New test script.
690 * testsuite/eh_test_a.cc (bar): Make it comdat.
691 * testsuite/eh_test_b.cc (bar): Add a duplicate copy.
692
693 2016-03-18 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
694
695 * mips.cc (Mips_relobj::is_n64_): Remove.
696 (Target_mips::ei_class_): Likewise.
697 (Mips_relobj::is_newabi): Call methods.
698 (Mips_relobj::is_n64): Change checking for N64 ABI.
699 (Target_mips::is_output_n64): Likewise.
700 (Target_mips::merge_processor_specific_flags): Remove ei_class
701 argument, and remove comparing ei_class.
702 (Target_mips::do_adjust_elf_header): Remove setting EI_CLASS field
703 of the ELF header.
704 (Target_mips::do_finalize_sections): Don't pass ei_class argument
705 to merge_processor_specific_flags.
706 (Target_mips::elf_mips_abi_name): Remove ei_class argument, and
707 change checking for N64 ABI.
708
709 2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
710
711 * mips.cc (enum Special_relocation_symbol): New enum type.
712 (is_readonly_section): New function.
713 (eh_reloc): Likewise.
714 (Mips_got_entry::is_section_symbol_): New member.
715 (Mips_got_entry::is_section_symbol): New method.
716 (Mips_got_info::record_local_got_symbol): Add is_section_symbol
717 argument.
718 (Mips_relobj::mips_elf_options_section_name): New method.
719 (Mips_output_data_got::record_local_got_symbol): Add
720 is_section_symbol argument, and pass it to
721 Mips_got_info::record_local_got_symbol.
722 (Mips_output_data_got::got_offset): Add addend argument, and pass
723 it to Relobj::local_got_offset.
724 (struct Mips_output_reloc_writer): New type.
725 (class Mips_output_data_reloc): New class.
726 (Mips_output_data_plt::Reloc_section): Change type to
727 Mips_output_data_reloc.
728 (Target_mips::Reloc_section): Likewise.
729 (Mips_reloc_types::get_r_addend): Remove unsigned from return type.
730 (Mips_classify_reloc::get_r_type2): New method.
731 (Mips_classify_reloc::get_r_type3): Likewise.
732 (Mips_classify_reloc::get_r_ssym): Likewise.
733 (Target_mips::Reloca_section): Remove.
734 (Relocate::should_apply_static_reloc): Rename from
735 should_apply_r_mips_32_reloc.
736 (Target_mips::copy_reloc): Replace Reltype parameter with r_type
737 and r_offset.
738 (Mips_relocate_functions::Valtype): New type.
739 (Mips_relocate_functions::Valtype64): New type.
740 (Mips_relocate_functions::check_overflow): New method.
741 (Mips_relocate_functions::mips_reloc_unshuffle): Move to public
742 interface.
743 (Mips_relocate_functions::mips_reloc_shuffle): Likewise.
744 (Mips_relocate_functions::rel16): Add support for resolving
745 relocations for Mips64.
746 (Mips_relocate_functions::rel32): Likewise.
747 (Mips_relocate_functions::reljalr): Likewise.
748 (Mips_relocate_functions::relpc32): Likewise.
749 (Mips_relocate_functions::rel26): Likewise.
750 (Mips_relocate_functions::relpc16): Likewise.
751 (Mips_relocate_functions::relmicromips_pc7_s1): Likewise.
752 (Mips_relocate_functions::relmicromips_pc10_s1): Likewise.
753 (Mips_relocate_functions::relmicromips_pc16_s1): Likewise.
754 (Mips_relocate_functions::do_relhi16): Likewise.
755 (Mips_relocate_functions::do_relgot16_local): Likewise.
756 (Mips_relocate_functions::rello16): Likewise.
757 (Mips_relocate_functions::relgot): Likewise.
758 (Mips_relocate_functions::relgotpage): Likewise.
759 (Mips_relocate_functions::relgotofst): Likewise.
760 (Mips_relocate_functions::relgot_hi16): Likewise.
761 (Mips_relocate_functions::relgot_lo16): Likewise.
762 (Mips_relocate_functions::relgprel): Likewise.
763 (Mips_relocate_functions::relgprel32): Likewise.
764 (Mips_relocate_functions::tlsrelhi16): Likewise.
765 (Mips_relocate_functions::tlsrello16): Likewise.
766 (Mips_relocate_functions::tlsrel32): Likewise.
767 (Mips_relocate_functions::relsub): Likewise.
768 (Mips_relocate_functions::releh): New method.
769 (Mips_relocate_functions::rel64): Likewise.
770 (Mips_got_info::record_local_got_symbol): Add is_section_symbol and
771 pass it to Mips_got_entry.
772 (Mips_got_info::add_local_entries): Pass addend argument
773 to code functions, and for STT_SECTION symbols call
774 add_symbolless_local_addend.
775 (Mips_got_info::add_tls_entries): Pass addend argument to code
776 functions.
777 (Mips_relobj::do_read_symbols): Read gp value that was used to
778 create object.
779 (Mips_output_data_plt::plt_entry): Remove opcode from l[wd]
780 instruction. Opcode for instruction will be selected later.
781 (Target_mips::gc_process_relocs): Add case for SHT_RELA.
782 (Target_mips::scan_relocatable_relocs): Likewise.
783 (Target_mips::emit_relocs_scan): Likewise.
784 (Target_mips::relocate_relocs): Likewise.
785 (Target_mips::do_finalize_sections): Skip objects for merging
786 processor specific flags in which all input sections will be
787 discarded.
788 (mips_get_size_for_reloc): Add case for R_MIPS_EH.
789 (Target_mips::Scan::get_reference_flags): Likewise.
790 (Target_mips::relocate_special_relocatable): Call rel26 method with
791 calculate_only and calculated_value arguments.
792 (Target_mips::Scan::local): Add case for R_MIPS_EH. Don't create a
793 dynamic relocation against a readonly sections, and pass
794 is_section_symbol to Mips_got_info::record_local_got_symbol.
795 (Target_mips::Scan::global): Add case for R_MIPS_EH. Don't create a
796 dynamic relocation against a readonly sections, and pass r_type
797 and r_offset to Target_mips::copy_reloc.
798 (Target_mips::Relocate::relocate): Add support for resolving
799 relocations for Mips64.
800 (Target_mips::mips_info): Add case for Mips64 default dynamic
801 linker name.
802 (Target_selector_mips): Correct emulation names.
803
804 2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
805
806 * mips.cc (class Mips_output_data_la25_stub): Add
807 do_print_to_mapfile function.
808
809 2016-03-17 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
810
811 * mips.cc (Mips_classify_reloc::put_r_info): Call 32bit version of
812 elf_r_info.
813
814 2016-03-09 H.J. Lu <hongjiu.lu@intel.com>
815
816 * testsuite/plugin_layout_with_alignment.cc: Renamed to ..
817 * testsuite/plugin_layout_with_alignment.c: This.
818 * testsuite/Makefile.am (plugin_layout_with_alignment.o): Updated.
819 (plugin_layout_with_alignment): Likewise.
820 * testsuite/Makefile.in: Regenerated.
821
822 2016-03-08 Cary Coutant <ccoutant@gmail.com>
823
824 PR 19751
825 * testsuite/Makefile.am (retain_symbols_file_test): Remove check
826 for constructor.
827 * testsuite/Makefile.in: Regenerate.
828 * testsuite/dynamic_list.sh: Likewise.
829 * testsuite/retain_symbols_file_test.sh: Likewise.
830
831 2016-03-08 Cary Coutant <ccoutant@gmail.com>
832
833 PR 19751
834 * arm.cc (Reloc_stub::Key::name): Add unused attribute.
835 * dirsearch.cc (Dir_caches::~Dir_caches): Likewise.
836
837 2016-03-08 Cary Coutant <ccoutant@gmail.com>
838 Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
839
840 * output.cc (Output_reloc_writer): New type.
841 (Output_data_reloc_base::do_write): Move implementation to template
842 in output.h and replace with invocation of template.
843 * output.h (Output_file): Move to top of file.
844 (Output_reloc::get_symbol_index): Move to public interface.
845 (Output_reloc::get_address): Likewise.
846 (Output_data_reloc_base::do_write_generic): New function template.
847
848 2016-03-04 Cary Coutant <ccoutant@gmail.com>
849
850 PR gold/19019
851 PR gold/19763
852 * symtab.cc: Instantiate Sized_symbol::init_constant and
853 Sized_symbol::init_undefined.
854
855 2016-03-03 Cary Coutant <ccoutant@gmail.com>
856
857 PR gold/19019
858 * layout.h (Layout::add_target_specific_dynamic_tag): New function.
859 * layout.cc (Layout::add_target_specific_dynamic_tag): New function.
860 * mips.cc (Target_mips::make_symbol): Adjust function signature.
861 * sparc.cc (Target_sparc::Target_sparc): Initialize register_syms_.
862 (Target_sparc::do_is_defined_by_abi): Remove test for
863 STT_SPARC_REGISTER.
864 (Target_sparc::Register_symbol): New struct type.
865 (Target_sparc::register_syms_): New data member.
866 (Target_sparc<64, true>::sparc_info): Set has_make_symbol to true.
867 (Target_sparc::make_symbol): New function.
868 (Target_sparc::do_finalize_sections): Add register symbols and new
869 dynamic table entries.
870 * symtab.h (Sized_symbol::init_undefined): Add value parameter.
871 (Symbol_table::add_target_global_symbol): New function.
872 (Symbol_table::target_symbols_): New data member.
873 * symtab.cc (Sized_symbol::init_undefined): Add value parameter.
874 (Symbol_table::Symbol_table): Initialize target_symbols_.
875 (Symbol_table::add_from_object): Pass additional parameters to
876 Target::make_symbol.
877 (Symbol_table::define_special_symbol): Likewise.
878 (Symbol_table::add_undefined_symbol_from_command_line): Pass 0 for
879 undefined symbol value.
880 (Symbol_table::set_dynsym_indexes): Process target-specific symbols.
881 (Symbol_table::sized_finalize): Likewise.
882 (Symbol_table::sized_write_globals): Likewise.
883 * target.h (Sized_target::make_symbol): Add name, st_type, object,
884 st_shndx, and value parameters.
885
886 2016-03-03 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
887
888 * plugin.cc (do_should_include_member): Ignore LDPK_UNDEF and
889 LDPK_WEAKUNDEF symbols.
890
891 2016-03-03 Than McIntosh <thanm@google.com>
892
893 * plugin.cc (Plugin::load): Include hooks for get_input_section_size
894 and get_input_section_alignment in transfer vector.
895 (get_input_section_alignment): New function.
896 (get_input_section_size): New function.
897 * testsuite/Makefile.am: Add plugin_layout_with_alignment.sh test.
898 * testsuite/Makefile.in: [Regenerate.]
899 * testsuite/plugin_section_alignment.cc: New test file.
900 * testsuite/plugin_layout_with_alignment.cc: New test file.
901 * testsuite/plugin_layout_with_alignment.sh: New test file.
902
903 2016-03-03 Evgenii Stepanov <eugenis@google.com>
904
905 * plugin.h (Pluginobj::get_symbol_resolution_info): Add version
906 parameter.
907 * plugin.cc (get_symbols_v3): New function.
908 (Plugin::load): Add LDPT_GET_SYMBOLS_V3.
909 (Pluginobj::get_symbol_resolution_info): Return LDPS_NO_SYMS when using
910 new version.
911
912 2016-02-26 Egor Kochetov <egor.kochetov@intel.com>
913 Cary Coutant <ccoutant@gmail.com>
914
915 PR gold/19735
916 * ehframe.h (Cie::fde_encoding): New method.
917 * ehframe.cc (Eh_frame::read_fde): Discard FDEs for zero-length
918 address ranges.
919
920 2016-02-15 H.J. Lu <hongjiu.lu@intel.com>
921
922 * testsuite/Makefile.am (x86_64_mov_to_lea5.o): Pass
923 -mrelax-relocations=yes to $(TEST_AS).
924 (x86_64_mov_to_lea6.o): Likewise.
925 (x86_64_overflow_pc32.o): Remove duplicated target.
926 * testsuite/Makefile.in: Regenerated.
927
928 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
929
930 * s390.cc (Target_s390::match_view_u): New helper method.
931 (Target_s390::do_is_call_to_non_split): New method.
932 (Target_s390::ss_code_st_r14): New const.
933 (Target_s390::ss_code_l_r14): New const.
934 (Target_s390::ss_code_bras_8): New const.
935 (Target_s390::ss_code_l_basr): New const.
936 (Target_s390::ss_code_a_basr): New const.
937 (Target_s390::ss_code_ear): New const.
938 (Target_s390::ss_code_c): New const.
939 (Target_s390::ss_code_larl): New const.
940 (Target_s390::ss_code_brasl): New const.
941 (Target_s390::ss_code_jg): New const.
942 (Target_s390::ss_code_jgl): New const.
943 (Target_s390::ss_match_mcount): New helper method.
944 (Target_s390::ss_match_l): New helper method.
945 (Target_s390::ss_match_ahi): New helper method.
946 (Target_s390::ss_match_alfi): New helper method.
947 (Target_s390::ss_match_cr): New helper method.
948 (Target_s390::do_calls_non_split): New method.
949 * testsuite/Makefile.am: Added new tests.
950 * testsuite/Makefile.in: Regenerate.
951 * testsuite/split_s390.sh: New test.
952 * testsuite/split_s390_1_a1.s: New test.
953 * testsuite/split_s390_1_a2.s: New test.
954 * testsuite/split_s390_1_n1.s: New test.
955 * testsuite/split_s390_1_n2.s: New test.
956 * testsuite/split_s390_1_z1.s: New test.
957 * testsuite/split_s390_1_z2.s: New test.
958 * testsuite/split_s390_1_z3.s: New test.
959 * testsuite/split_s390_1_z4.s: New test.
960 * testsuite/split_s390_2_ns.s: New test.
961 * testsuite/split_s390_2_s.s: New test.
962 * testsuite/split_s390x_1_a1.s: New test.
963 * testsuite/split_s390x_1_a2.s: New test.
964 * testsuite/split_s390x_1_n1.s: New test.
965 * testsuite/split_s390x_1_n2.s: New test.
966 * testsuite/split_s390x_1_z1.s: New test.
967 * testsuite/split_s390x_1_z2.s: New test.
968 * testsuite/split_s390x_1_z3.s: New test.
969 * testsuite/split_s390x_1_z4.s: New test.
970 * testsuite/split_s390x_2_ns.s: New test.
971 * testsuite/split_s390x_2_s.s: New test.
972
973 2016-02-11 Rahul Chaudhry <rahulchaudhry@google.com>
974
975 * aarch64.cc (Target_aarch64::scan_erratum_843419_span): Remove
976 info message for every erratum 843419 found and fixed.
977
978 2016-02-07 Cary Coutant <ccoutant@gmail.com>
979
980 PR gold/18695
981 * x86_64.cc (Target_x86_64::Relocate::relocate): Add additional
982 information to relocation overflow errors.
983
984 2016-02-06 Cary Coutant <ccoutant@gmail.com>
985
986 PR gold/18695
987 * x86_64.cc (X86_64_relocate_functions::pcrela32_check): Fix x32
988 overflow checking when symbol value + addend < 0.
989
990 2016-02-06 Cary Coutant <ccoutant@gmail.com>
991
992 PR gold/19577
993 * reloc.h (Limits): New class.
994 (Bits::has_overflow32): Use min/max values from Limits.
995 (Bits::has_unsigned_overflow32): Likewise.
996 (Bits::has_signed_unsigned_overflow32): Likewise.
997 (Bits::has_overflow): Likewise.
998 (Bits::has_unsigned_overflow): Likewise.
999 (Bits::has_signed_unsigned_overflow64): Likewise.
1000
1001 2016-02-06 Cary Coutant <ccoutant@gmail.com>
1002
1003 PR gold/19567
1004 * reloc.h (Relocate_functions::Overflow_check): Add comments.
1005 * x86_64.cc (X86_64_relocate_functions): New class.
1006 (Target_x86_64::Relocate::relocate): Use the new class.
1007 * testsuite/Makefile.am (x86_64_overflow_pc32): Add -Tdata option.
1008 (x32_overflow_pc32): New test case.
1009 * testsuite/Makefile.in: Regenerate.
1010 * testsuite/x32_overflow_pc32.sh: New script.
1011 * testsuite/x86_64_overflow_pc32.s: Remove .space directive.
1012
1013 2016-02-06 Cary Coutant <ccoutant@gmail.com>
1014
1015 PR gold/19577
1016 * reloc.h (Bits::has_unsigned_overflow32): Fix static_cast.
1017 (Bits::has_unsigned_overflow): Remove unnecessary static_cast.
1018
1019 2016-02-06 Cary Coutant <ccoutant@gmail.com>
1020
1021 PR gold/19577
1022 * reloc.h (Bits::has_unsigned_overflow32): Fix unsigned/signed
1023 comparison.
1024 (Bits::has_unsigned_overflow): Likewise.
1025
1026 2016-02-06 Marcin Kościelnicki <koriakin@0x04.net>
1027
1028 * i386.cc (Target_i386::is_call_to_non_split): Add view and view_size
1029 parameters.
1030 * reloc.cc (Sized_relobj_file::split_stack_adjust_reltype): Pass view
1031 and view_size to is_call_to_non_split.
1032 * target.cc (Target::is_call_to_non_split): Add view and view_size
1033 parameters.
1034 * target.h (class Target): Likewise.
1035
1036 2016-02-05 Sriraman Tallam <tmsriram@google.com>
1037
1038 * icf.cc (get_rel_addend): New function.
1039 (get_section_contents): Move merge section addend computation to a
1040 new function. Ignore negative values for SHT_REL and SHT_RELA addends.
1041 Fix bug to not read past the length of the section.
1042
1043 2016-02-05 Cary Coutant <ccoutant@gmail.com>
1044 Andrew Senkevich <andrew.senkevich@intel.com>
1045
1046 PR gold/18695
1047 * x86_64.cc (Target_x86_64::Relocate::relocate): Add overflow
1048 checking for R_X86_64_32, R_X86_64_32S, R_X86_64_PC32, and
1049 R_X86_64_PLT32.
1050 * testsuite/Makefile.am (x86_64_overflow_pc32): New test.
1051 * testsuite/x86_64_overflow_pc32.sh: New test script.
1052 * testsuite/x86_64_overflow_pc32.s: New source file.
1053
1054 2016-02-05 Cary Coutant <ccoutant@gmail.com>
1055
1056 PR gold/18695
1057 * reloc.h (Relocate_functions::Address): New typedef.
1058 (Relocate_functions::Addendtype): New typedef.
1059 (Relocate_functions::Overflow_check): New enum type.
1060 (Relocate_functions::Reloc_status): New enum type.
1061 (Relocate_functions::check_overflow): New function template.
1062 (Relocate_functions::rel): Add check parameter; check for overflow.
1063 (Relocate_functions::rel_unaligned): Likewise.
1064 (Relocate_functions::rela): Likewise.
1065 (Relocate_functions::pcrel): Likewise.
1066 (Relocate_functions::pcrel_unaligned): Likewise.
1067 (Relocate_functions::pcrela): Likewise.
1068 (Relocate_functions::rel8): Adjust parameter types.
1069 (Relocate_functions::rela8): Likewise.
1070 (Relocate_functions::pcrel8): Likewise.
1071 (Relocate_functions::pcrela8): Likewise.
1072 (Relocate_functions::rel16): Likewise.
1073 (Relocate_functions::rela168): Likewise.
1074 (Relocate_functions::pcrel16): Likewise.
1075 (Relocate_functions::pcrela16): Likewise.
1076 (Relocate_functions::rel32): Likewise.
1077 (Relocate_functions::rel32_unaligned): Likewise.
1078 (Relocate_functions::rela32): Likewise.
1079 (Relocate_functions::pcrel32): Likewise.
1080 (Relocate_functions::pcrel32_unaligned): Likewise.
1081 (Relocate_functions::pcrela32): Likewise.
1082 (Relocate_functions::rel8_check): New function.
1083 (Relocate_functions::rela8_check): New function.
1084 (Relocate_functions::pcrel8_check): New function.
1085 (Relocate_functions::pcrela8_check): New function.
1086 (Relocate_functions::rel16_check): New function.
1087 (Relocate_functions::rela168_check): New function.
1088 (Relocate_functions::pcrel16_check): New function.
1089 (Relocate_functions::pcrela16_check): New function.
1090 (Relocate_functions::rel32_check): New function.
1091 (Relocate_functions::rel32_unaligned_check): New function.
1092 (Relocate_functions::rela32_check): New function.
1093 (Relocate_functions::pcrel32_check): New function.
1094 (Relocate_functions::pcrel32_unaligned_check): New function.
1095 (Relocate_functions::pcrela32_check): New function.
1096 (Bits::has_unsigned_overflow32): New function.
1097 (Bits::has_unsigned_overflow): New function.
1098 * testsuite/Makefile.am (overflow_unittest): New test.
1099 * testsuite/Makefile.in: Regenerate.
1100 * testsuite/overflow_unittest.cc: New source file.
1101
1102 2016-02-04 Alan Modra <amodra@gmail.com>
1103
1104 * powerpc.cc (relocate): Adjust last patch for big-endian.
1105
1106 2016-02-02 Alan Modra <amodra@gmail.com>
1107
1108 * powerpc.cc (relocate): Further restrict ELFv2 entry optimization.
1109
1110 2016-01-15 Han Shen <shenhan@google.com>
1111
1112 PR gold/19472 - need pc-relative stubs.
1113
1114 * aarch64.cc (Reloc_stub::stub_type_for_reloc): Return PC-relative
1115 stub type for DSOs and pie executables.
1116
1117 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
1118
1119 * i386.cc (Target_i386::Classify_reloc::get_r_addend): Remove
1120 'typename'.
1121
1122 2016-01-12 Cary Coutant <ccoutant@gmail.com>
1123
1124 * arm.cc (Target_arm::Classify_reloc::get_r_addend): New method.
1125 * i386.cc (Target_i386::Classify_reloc::get_r_addend): New method.
1126 * mips.cc (Target_arm::Mips_classify_reloc::get_r_addend): (Both
1127 specializations) New method.
1128
1129 2016-01-11 Cary Coutant <ccoutant@gmail.com>
1130
1131 PR gold/19353
1132 * aarch64.cc (Target_aarch64::relocate_tls): Don't insist that
1133 we have a TLS segment for GD-to-IE optimization.
1134 * i386.cc (Target_i386::tls_gd_to_ie): Remove tls_segment parameter.
1135 Adjust all calls.
1136 (Target_i386::tls_desc_gd_to_ie): Likewise.
1137 (Target_i386::relocate_tls): Don't insist that we have a TLS segment
1138 for TLSDESC GD-to-IE optimizations.
1139 * x86_64.cc (Target_x86_64::tls_gd_to_ie): Remove tls_segment parameter.
1140 Adjust all calls.
1141 (Target_x86_64::tls_desc_gd_to_ie): Likewise.
1142 (Target_x86_64::relocate_tls): Don't insist that we have a TLS segment
1143 for TLSDESC GD-to-IE optimizations.
1144
1145 2016-01-11 Cary Coutant <ccoutant@gmail.com>
1146
1147 Refactor gold to enable support for MIPS-64 relocation format.
1148
1149 * gc.h (get_embedded_addend_size): Remove sh_type parameter.
1150 (gc_process_relocs): Remove sh_type template parameter.
1151 Use Classify_reloc to access r_sym, r_type, and r_addend fields.
1152 * object.h (Sized_relobj_file::split_stack_adjust): Add target
1153 parameter.
1154 (Sized_relobj_file::split_stack_adjust_reltype): Likewise.
1155 * reloc-types.h (Reloc_types::copy_reloc_addend): (SHT_REL and SHT_RELA
1156 specializations) Remove.
1157 * reloc.cc (Emit_relocs_strategy): Rename and move to target-reloc.h.
1158 (Sized_relobj_file::emit_relocs_scan): Call Target::emit_relocs_scan().
1159 (Sized_relobj_file::emit_relocs_scan_reltype): Remove.
1160 (Sized_relobj_file::split_stack_adjust): Add target parameter.
1161 Adjust all callers.
1162 (Sized_relobj_file::split_stack_adjust_reltype): Likewise. Call
1163 Target::get_r_sym() to get r_sym field from relocations.
1164 (Track_relocs::next_symndx): Call Target::get_r_sym().
1165 * target-reloc.h (scan_relocs): Remove sh_type template parameter;
1166 add Classify_reloc template parameter. Use for accessing r_sym and
1167 r_type.
1168 (relocate_section): Likewise.
1169 (Default_classify_reloc): New class (renamed and moved from reloc.cc).
1170 (Default_scan_relocatable_relocs): Remove sh_type template parameter.
1171 (Default_scan_relocatable_relocs::Reltype): New typedef.
1172 (Default_scan_relocatable_relocs::reloc_size): New const.
1173 (Default_scan_relocatable_relocs::sh_type): New const.
1174 (Default_scan_relocatable_relocs::get_r_sym): New method.
1175 (Default_scan_relocatable_relocs::get_r_type): New method.
1176 (Default_emit_relocs_strategy): New class.
1177 (scan_relocatable_relocs): Replace sh_type template parameter with
1178 Scan_relocatable_relocs class. Use it to access r_sym and r_type
1179 fields.
1180 (relocate_relocs): Replace sh_type template parameter with
1181 Classify_reloc class. Use it to access r_sym and r_type fields.
1182 * target.h (Target::is_call_to_non_split): Replace r_type parameter
1183 with pointer to relocation. Adjust all callers.
1184 (Target::do_is_call_to_non_split): Likewise.
1185 (Target::emit_relocs_scan): New virtual method.
1186 (Sized_target::get_r_sym): New virtual method.
1187 * target.cc (Target::do_is_call_to_non_split): Replace r_type parameter
1188 with pointer to relocation.
1189
1190 * aarch64.cc (Target_aarch64::emit_relocs_scan): New method.
1191 (Target_aarch64::Relocatable_size_for_reloc): Remove.
1192 (Target_aarch64::gc_process_relocs): Use Default_classify_reloc.
1193 (Target_aarch64::scan_relocs): Likewise.
1194 (Target_aarch64::relocate_section): Likewise.
1195 (Target_aarch64::Relocatable_size_for_reloc::get_size_for_reloc):
1196 Remove.
1197 (Target_aarch64::scan_relocatable_relocs): Use Default_classify_reloc.
1198 (Target_aarch64::relocate_relocs): Use Default_classify_reloc.
1199 * arm.cc (Target_arm::Arm_scan_relocatable_relocs): Remove sh_type
1200 template parameter.
1201 (Target_arm::emit_relocs_scan): New method.
1202 (Target_arm::Relocatable_size_for_reloc): Replace with...
1203 (Target_arm::Classify_reloc): ...this.
1204 (Target_arm::gc_process_relocs): Use Classify_reloc.
1205 (Target_arm::scan_relocs): Likewise.
1206 (Target_arm::relocate_section): Likewise.
1207 (Target_arm::scan_relocatable_relocs): Likewise.
1208 (Target_arm::relocate_relocs): Likewise.
1209 * i386.cc (Target_i386::emit_relocs_scan): New method.
1210 (Target_i386::Relocatable_size_for_reloc): Replace with...
1211 (Target_i386::Classify_reloc): ...this.
1212 (Target_i386::gc_process_relocs): Use Classify_reloc.
1213 (Target_i386::scan_relocs): Likewise.
1214 (Target_i386::relocate_section): Likewise.
1215 (Target_i386::scan_relocatable_relocs): Likewise.
1216 (Target_i386::relocate_relocs): Likewise.
1217 * mips.cc (Mips_scan_relocatable_relocs): Remove sh_type template
1218 parameter.
1219 (Mips_reloc_types): New class template.
1220 (Mips_classify_reloc): New class template.
1221 (Target_mips::Reltype): New typedef.
1222 (Target_mips::Relatype): New typedef.
1223 (Target_mips::emit_relocs_scan): New method.
1224 (Target_mips::get_r_sym): New method.
1225 (Target_mips::Relocatable_size_for_reloc): Replace with
1226 Mips_classify_reloc.
1227 (Target_mips::copy_reloc): Use Mips_classify_reloc.
1228 (Target_mips::gc_process_relocs): Likewise.
1229 (Target_mips::scan_relocs): Likewise.
1230 (Target_mips::relocate_section): Likewise.
1231 (Target_mips::scan_relocatable_relocs): Likewise.
1232 (Target_mips::relocate_relocs): Likewise.
1233 (mips_get_size_for_reloc): New function, factored out from
1234 Relocatable_size_for_reloc::get_size_for_reloc.
1235 (Target_mips::Scan::local): Use Mips_classify_reloc.
1236 (Target_mips::Scan::global): Likewise.
1237 (Target_mips::Relocate::relocate): Likewise.
1238 * powerpc.cc (Target_powerpc::emit_relocs_scan): New method.
1239 (Target_powerpc::Relocatable_size_for_reloc): Remove.
1240 (Target_powerpc::gc_process_relocs): Use Default_classify_reloc.
1241 (Target_powerpc::scan_relocs): Likewise.
1242 (Target_powerpc::relocate_section): Likewise.
1243 (Powerpc_scan_relocatable_reloc): Convert to class template.
1244 (Powerpc_scan_relocatable_reloc::Reltype): New typedef.
1245 (Powerpc_scan_relocatable_reloc::reloc_size): New const.
1246 (Powerpc_scan_relocatable_reloc::sh_type): New const.
1247 (Powerpc_scan_relocatable_reloc::get_r_sym): New method.
1248 (Powerpc_scan_relocatable_reloc::get_r_type): New method.
1249 (Target_powerpc::scan_relocatable_relocs): Use
1250 Powerpc_scan_relocatable_reloc.
1251 (Target_powerpc::relocate_relocs): Use Default_classify_reloc.
1252 * s390.cc (Target_s390::emit_relocs_scan): New method.
1253 (Target_s390::Relocatable_size_for_reloc): Remove.
1254 (Target_s390::gc_process_relocs): Use Default_classify_reloc.
1255 (Target_s390::scan_relocs): Likewise.
1256 (Target_s390::relocate_section): Likewise.
1257 (Target_s390::Relocatable_size_for_reloc::get_size_for_reloc):
1258 Remove.
1259 (Target_s390::scan_relocatable_relocs): Use Default_classify_reloc.
1260 (Target_s390::relocate_relocs): Use Default_classify_reloc.
1261 * sparc.cc (Target_sparc::emit_relocs_scan): New method.
1262 (Target_sparc::Relocatable_size_for_reloc): Remove.
1263 (Target_sparc::gc_process_relocs): Use Default_classify_reloc.
1264 (Target_sparc::scan_relocs): Likewise.
1265 (Target_sparc::relocate_section): Likewise.
1266 (Target_sparc::Relocatable_size_for_reloc::get_size_for_reloc):
1267 Remove.
1268 (Target_sparc::scan_relocatable_relocs): Use Default_classify_reloc.
1269 (Target_sparc::relocate_relocs): Use Default_classify_reloc.
1270 * tilegx.cc (Target_tilegx::emit_relocs_scan): New method.
1271 (Target_tilegx::Relocatable_size_for_reloc): Remove.
1272 (Target_tilegx::gc_process_relocs): Use Default_classify_reloc.
1273 (Target_tilegx::scan_relocs): Likewise.
1274 (Target_tilegx::relocate_section): Likewise.
1275 (Target_tilegx::Relocatable_size_for_reloc::get_size_for_reloc):
1276 Remove.
1277 (Target_tilegx::scan_relocatable_relocs): Use Default_classify_reloc.
1278 (Target_tilegx::relocate_relocs): Use Default_classify_reloc.
1279 * x86_64.cc (Target_x86_64::emit_relocs_scan): New method.
1280 (Target_x86_64::Relocatable_size_for_reloc): Remove.
1281 (Target_x86_64::gc_process_relocs): Use Default_classify_reloc.
1282 (Target_x86_64::scan_relocs): Likewise.
1283 (Target_x86_64::relocate_section): Likewise.
1284 (Target_x86_64::Relocatable_size_for_reloc::get_size_for_reloc):
1285 Remove.
1286 (Target_x86_64::scan_relocatable_relocs): Use Default_classify_reloc.
1287 (Target_x86_64::relocate_relocs): Use Default_classify_reloc.
1288
1289 * testsuite/testfile.cc (Target_test::emit_relocs_scan): New method.
1290
1291 2016-01-01 Alan Modra <amodra@gmail.com>
1292
1293 Update year range in copyright notice of all files.
1294
1295 For older changes see ChangeLog-0815
1296 \f
1297 Copyright (C) 2016 Free Software Foundation, Inc.
1298
1299 Copying and distribution of this file, with or without modification,
1300 are permitted in any medium without royalty provided the copyright
1301 notice and this notice are preserved.
1302
1303 Local Variables:
1304 mode: change-log
1305 left-margin: 8
1306 fill-column: 74
1307 version-control: never
1308 End:
This page took 0.102911 seconds and 5 git commands to generate.