i386: Avoid dynamic symbol with GOT reference in PIE
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/21402
4 * elf32-i386.c (elf_i386_link_hash_entry): Add
5 no_finish_dynamic_symbol.
6 (elf_i386_link_hash_newfunc): Set no_finish_dynamic_symbol to 0.
7 (elf_i386_allocate_dynrelocs): If a symbol isn't undefined weak
8 symbol, don't make it dynamic in PIE.
9 (elf_i386_relocate_section): If a symbol isn't dynamic in PIE,
10 set no_finish_dynamic_symbol and generate R_386_RELATIVE
11 relocation for R_386_GOT32
12 (elf_i386_finish_dynamic_symbol): Abort if no_finish_dynamic_symbol
13 isn't 0.
14
15 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
16
17 PR ld/19617
18 PR ld/21086
19 * elflink.c (elf_link_add_object_symbols): Require
20 --no-dynamic-linker with -E/--dynamic-list when creating
21 dynamic sections.
22
23 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
24
25 * elflink.c (_bfd_elf_symbol_refs_local_p): Always return TRUE
26 if forced local.
27
28 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
29
30 * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about
31 dynamic symbol sorting.
32
33 2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
34
35 PR ld/21382
36 * elflink.c (elf_link_add_object_symbols): Preserve
37 dynamic_ref_after_ir_def when restoring the symbol table for
38 unneeded dynamic object.
39
40 2017-04-19 H.J. Lu <hongjiu.lu@intel.com>
41
42 PR ld/21401
43 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't abort
44 on on undefined IFUNC symbol in the second PLT.
45
46 2017-04-19 Wedson Almeida Filho <wedsonaf@gmail.com>
47
48 * peXXigen.c (pe_print_reloc): Correct chunk_end.
49
50 2017-04-19 Alan Modra <amodra@gmail.com>
51
52 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak
53 or make dynamic for info->dynamic_undefined_weak 0 and 1.
54 * elf32-ppc.c:Formatting.
55 (ensure_undefweak_dynamic): Don't make dynamic when
56 info->dynamic_undefined_weak is zero.
57 (allocate_dynrelocs): Discard undefweak dyn_relocs for
58 info->dynamic_undefined_weak. Discard undef dyn_relocs when
59 not default visibility. Discard undef and undefweak
60 dyn_relocs earlier.
61 (ppc_elf_relocate_section): Adjust to suit.
62 * elf64-ppc.c: Formatting.
63 (ensure_undefweak_dynamic): Don't make dynamic when
64 info->dynamic_undefined_weak is zero.
65 (allocate_dynrelocs): Discard undefweak dyn_relocs for
66 info->dynamic_undefined_weak. Discard them earlier.
67
68 2017-04-17 H.J. Lu <hongjiu.lu@intel.com>
69
70 PR ld/21389
71 * elflink.c (bfd_elf_size_dynamic_sections): Get soname index
72 before generating the version definition section.
73
74 2017-04-17 Alan Modra <amodra@gmail.com>
75
76 * elflink.c (_bfd_elf_merge_symbol): Undo dynamic linking
77 state when a regular object file defines a symbol with
78 incompatible type to that defined by an earlier shared lib.
79
80 2017-04-13 Alan Modra <amodra@gmail.com>
81
82 * coffcode.h: Wrap some overly long _bfd_error_handler args.
83 * elf.c: Likewise.
84 * elf32-arm.c: Likewise.
85 * elf32-i386.c: Likewise.
86 * elf32-mep.c: Likewise.
87 * elf64-ia64-vms.c: Likewise.
88 * elf64-x86-64.c: Likewise.
89 * elflink.c: Likewise.
90 * elfnn-ia64.c: Likewise.
91 * elfxx-mips.c: Likewise.
92
93 2017-04-13 Alan Modra <amodra@gmail.com>
94
95 * aoutx.h: Use %B and %A in error messages throughout file.
96 * aout-cris.c: Likewise.
97 * archive.c: Likewise.
98 * binary.c: Likewise.
99 * coff-rs6000.c: Likewise.
100 * coff-tic4x.c: Likewise.
101 * coffcode.h: Likewise.
102 * coffgen.c: Likewise.
103 * cofflink.c: Likewise.
104 * coffswap.h: Likewise.
105 * cpu-arm.c: Likewise.
106 * elf-eh-frame.c: Likewise.
107 * elf-m10300.c: Likewise.
108 * elf.c: Likewise.
109 * elf32-arc.c: Likewise.
110 * elf32-arm.c: Likewise.
111 * elf32-bfin.c: Likewise.
112 * elf32-frv.c: Likewise.
113 * elf32-iq2000.c: Likewise.
114 * elf32-m32c.c: Likewise.
115 * elf32-microblaze.c: Likewise.
116 * elf32-nds32.c: Likewise.
117 * elf32-rl78.c: Likewise.
118 * elf32-rx.c: Likewise.
119 * elf32-score.c: Likewise.
120 * elf32-score7.c: Likewise.
121 * elf32-sh64.c: Likewise.
122 * elf32-v850.c: Likewise.
123 * elf32-vax.c: Likewise.
124 * elf32-visium.c: Likewise.
125 * elf64-ia64-vms.c: Likewise.
126 * elf64-mmix.c: Likewise.
127 * elf64-sh64.c: Likewise.
128 * elfcode.h: Likewise.
129 * elfnn-aarch64.c: Likewise.
130 * elfnn-ia64.c: Likewise.
131 * elfxx-mips.c: Likewise.
132 * hpux-core.c: Likewise.
133 * ieee.c: Likewise.
134 * ihex.c: Likewise.
135 * linker.c: Likewise.
136 * merge.c: Likewise.
137 * mmo.c: Likewise.
138 * oasys.c: Likewise.
139 * pdp11.c: Likewise.
140 * peXXigen.c: Likewise.
141 * rs6000-core.c: Likewise.
142 * vms-alpha.c: Likewise.
143 * xcofflink.c: Likewise.
144
145 2017-04-13 Alan Modra <amodra@gmail.com>
146
147 * bfd.c (PRINT_TYPE): Define.
148 (_doprnt): New function.
149 (error_handler_internal): Use _doprnt.
150 * coff-arm.c: Put %A and %B arguments to _bfd_error_handler
151 calls in their natural order, throughout file.
152 * coff-mcore.c: Likewise.
153 * coff-ppc.c: Likewise.
154 * coff-tic80.c: Likewise.
155 * cofflink.c: Likewise.
156 * elf-s390-common.c: Likewise.
157 * elf.c: Likewise.
158 * elf32-arm.c: Likewise.
159 * elf32-i386.c: Likewise.
160 * elf32-m32r.c: Likewise.
161 * elf32-msp430.c: Likewise.
162 * elf32-spu.c: Likewise.
163 * elf64-ia64-vms.c: Likewise.
164 * elf64-sparc.c: Likewise.
165 * elf64-x86-64.c: Likewise.
166 * elflink.c: Likewise.
167 * elfnn-aarch64.c: Likewise.
168 * elfnn-ia64.c: Likewise.
169 * elfxx-mips.c: Likewise.
170
171 2017-04-13 Alan Modra <amodra@gmail.com>
172
173 * elf32-arm.c (arm_type_of_stub): Supply missing args to "long
174 branch veneers" error. Fix double space and format message.
175 * elf32-avr.c (avr_add_stub): Do not pass NULL as %B arg.
176 * elf64-ppc.c (tocsave_find): Supply missing %B arg.
177
178 2017-04-13 Alan Modra <amodra@gmail.com>
179
180 * bfd-in2.h: Regenerate.
181
182 2017-04-11 H.J. Lu <hongjiu.lu@intel.com>
183
184 * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the
185 extra `\n' in warning/error messages.
186 * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise.
187 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
188
189 2017-04-11 H.J. Lu <hongjiu.lu@intel.com>
190
191 * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore
192 processor-specific properties with generic ELF target vector.
193
194 2017-04-10 Qing Zhao <qing.zhao@oracle.com>
195
196 * elf32-sparc.c (elf_backend_fixup_symbol): New.
197 * elf64-sparc.c (elf_backend_fixup_symbol): New.
198 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
199 (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and
200 has_non_got_reloc.
201 (link_hash_newfunc): Initialize has_got_reloc and
202 has_non_got_reloc.
203 (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp
204 section.
205 (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and
206 has_non_got_reloc.
207 (_bfd_sparc_elf_check_relocs): Set has_got_reloc and
208 has_non_got_reloc.
209 (_bfd_sparc_elf_fixup_symbol): New function.
210 (allocate_dynrelocs): Don't allocate space for dynamic
211 relocations and discard relocations against resolved undefined
212 weak symbols in executable. Don't make resolved undefined weak
213 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
214 relocation against undefined weak symbols in PIE.
215 (_bfd_sparc_elf_relocate_section): Don't generate dynamic
216 relocations against resolved undefined weak symbols in PIE
217 (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries
218 without ynamic PLT/GOT relocations for resolved undefined weak
219 symbols.
220 Don't generate dynamic relocation against resolved undefined
221 weak symbol in executable.
222 (pie_finish_undefweak_symbol): New function.
223 (_bfd_sparc_elf_finish_dynamic_sections): Call
224 pie_finish_undefweak_symbol on all symbols in PIE.
225 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp.
226 (_bfd_sparc_elf_fixup_symbol): New function.
227
228 2017-04-10 Nick Clifton <nickc@redhat.com>
229
230 * config.bfd: Remove ns32k from obsolete list.
231
232 2017-04-10 Alan Modra <amodra@gmail.com>
233
234 PR 21287
235 * elf.c (special_sections_f): Match .fini_array and .fini_array.*.
236 (special_sections_i): Likewise for .init_array.
237 (special_sections_p): Likewise for .preinit_array.
238
239 2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
240
241 PR ld/19579
242 PR ld/21306
243 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check
244 ELF_COMMON_DEF_P for common symbols.
245 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
246 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
247 * elflink.c (_bfd_elf_merge_symbol): Revert commits
248 202ac193bbbecc96a4978d1ac3d17148253f9b01 and
249 07492f668d2173da7a2bda3707ff0985e0f460b6.
250
251 2017-04-07 Pedro Alves <palves@redhat.com>
252
253 * opncls.c (bfd_get_debug_link_info): Rename to...
254 (bfd_get_debug_link_info_1): ... this. Change type of second
255 parameter to void pointer. Adjust.
256 (bfd_get_debug_link_info): Reimplement on top of
257 bfd_get_debug_link_info_1.
258 (separate_debug_file_exists, separate_alt_debug_file_exists):
259 Change type of second parameter to void pointer. Adjust.
260 (get_func_type, check_func_type): Change type of second parameter
261 to void pointer.
262 (find_separate_debug_file): Add 'func_data' parameter. Pass it to
263 the callback functions instead of passing the address of a local.
264 (bfd_follow_gnu_debuglink): Pass address of unsigned long local to
265 find_separate_debug_file.
266 (get_alt_debug_link_info_shim): Change type of second parameter to
267 void pointer. Adjust.
268 (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to
269 find_separate_debug_file.
270 (get_build_id_name, bfd_boolean check_build_id_file): Change type
271 of second parameter to void pointer. Adjust.
272 (bfd_follow_build_id_debuglink): Pass address of bfd_build_id
273 pointer local to find_separate_debug_file.
274
275 2017-04-07 Tristan Gingold <gingold@gingold-Precision-7510>
276
277 * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak
278 external symbols with a definition.
279 (_bfd_coff_gc_mark_extra_sections): Fix typo.
280
281 2017-04-07 Alan Modra <amodra@gmail.com>
282
283 * po/SRC-POTFILES.in: Regenerate.
284
285 2017-04-05 Alan Modra <amodra@gmail.com>
286
287 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT
288 reference counting.
289
290 2017-04-02 Jon Turney <jon.turney@dronecode.org.uk>
291
292 (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than
293 numbers for DataDirectory entry indicies passed to
294 add_data_entry().
295
296 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
297
298 * elf.c (get_program_header_size): Add a GNU_MBIND segment for
299 each GNU_MBIND section and align GNU_MBIND section to page size.
300 (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND
301 segment for each GNU_MBIND section.
302 (_bfd_elf_init_private_section_data): Copy sh_info from input
303 for GNU_MBIND section.
304
305 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
306
307 * elfnn-riscv.c (GP_NAME): Delete.
308 (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL.
309 (_bfd_riscv_relax_lui): Likewise.
310
311 2017-04-04 Nick Clifton <nickc@redhat.com>
312
313 PR binutils/21342
314 * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer
315 dereference.
316 (bfd_elf_final_link): Only initialize the extended symbol index
317 section if there are extended symbol tables to list.
318
319 2017-04-03 H.J. Lu <hongjiu.lu@intel.com>
320
321 * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo.
322 (BFD32_BACKENDS_CFILES): Add elf-properties.c.
323 * configure.ac (elf): Add elf-properties.lo.
324 * Makefile.in: Regenerated.
325 * configure: Likewise.
326 * elf-bfd.h (elf_property_kind): New.
327 (elf_property): Likewise.
328 (elf_property_list): Likewise.
329 (elf_properties): Likewise.
330 (_bfd_elf_parse_gnu_properties): Likewise.
331 (_bfd_elf_get_property): Likewise.
332 (_bfd_elf_link_setup_gnu_properties): Likewise.
333 (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties
334 and setup_gnu_properties.
335 (elf_obj_tdata): Add properties.
336 * elf-properties.c: New file.
337 * elf32-i386.c (elf_i386_parse_gnu_properties): New.
338 (elf_i386_merge_gnu_properties): Likewise.
339 (elf_backend_parse_gnu_properties): Likewise.
340 (elf_backend_merge_gnu_properties): Likewise.
341 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
342 (elf_x86_64_merge_gnu_properties): Likewise.
343 (elf_backend_parse_gnu_properties): Likewise.
344 (elf_backend_merge_gnu_properties): Likewise.
345 * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise.
346 (elf_backend_parse_gnu_properties): Likewise.
347 (elf_backend_setup_gnu_properties): Likewise.
348 (elfNN_bed): Add elf_backend_parse_gnu_properties,
349 elf_backend_merge_gnu_properties and
350 elf_backend_setup_gnu_properties.
351
352 2017-03-30 Pip Cet <pipcet@gmail.com>
353
354 * elf32-wasm32.c: Add relocation code, two relocs.
355 * reloc.c: Add wasm32 relocations.
356 * libbfd.h: Regenerate.
357 * bfd-in2.h: Regenerate.
358 * bfd/po/bfd.pot: Regenerate.
359
360 2017-03-29 Nick Clifton <nickc@redhat.com>
361
362 PR binutils/18025
363 * coff-bfd.h (struct coff_section_data): Add new fields:
364 saved_bias and bias.
365 * coffgen.c (coff_find_nearest_line_with_names): Cache the bias
366 computed for PE binaries.
367 * dwarf2.c (scan_unit_for_symbols): Only warn once about each
368 missing abbrev.
369
370 2017-03-28 Hans-Peter Nilsson <hp@axis.com>
371
372 PR ld/16044
373 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT
374 to handle a local symbol with a hash-symbol-entry; without PLT.
375 Add BFD_ASSERT for an incidental case with GOT entry present.
376 (cris_elf_check_relocs): Increment PLT refcount only if the symbol
377 isn't forced-or-set local.
378
379 2017-03-27 Pip Cet <pipcet@gmail.com>
380
381 * wasm-module.c: New file to support WebAssembly modules.
382 * wasm-module.h: New file to support WebAssembly modules.
383 * doc/webassembly.texi: Start documenting wasm-module.c.
384 * config.bfd: Add wasm_vec.
385 * targets.c: Likewise.
386 * configure.ac: Likewise.
387 * Makefile.am: Add entries for wasm-module.c.
388 * Makefile.in: Regenerate.
389 * configure: Regenerate.
390 * po/SRC-POTFILES.in: Regenerate.
391
392 2017-03-27 Pip Cet <pipcet@gmail.com>
393
394 * cpu-wasm32.c: New file to support wasm32 architecture.
395 * elf32-wasm32.c: New file to support wasm32 architecture.
396 * Makefile.am: Add wasm32 architecture.
397 * archures.c: Likewise.
398 * config.bfd: Likewise.
399 * configure.ac: Likewise.
400 * targets.c: Likewise.
401 * Makefile.in: Regenerate.
402 * bfd-in2.h: Regenerate.
403 * configure: Regenerate.
404 * po/SRC-POTFILES.in: Regenerate.
405
406 2017-03-20 Alan Modra <amodra@gmail.com>
407
408 PR 21266
409 * elf64-ppc.c (compare_symbols): Stabilize sort.
410
411 2017-03-18 Alan Modra <amodra@gmail.com>
412
413 * elf64-ppc.c (struct ppc_link_hash_table): Add
414 local_ifunc_resolver and maybe_local_ifunc_resolver.
415 (ppc_build_one_stub): Set flags on emitting dynamic
416 relocation to ifunc.
417 (ppc64_elf_relocate_section): Likewise.
418 (ppc64_elf_finish_dynamic_symbol): Likewise.
419 (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with
420 local dynamic relocs to ifuncs.
421 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add
422 local_ifunc_resolver and maybe_local_ifunc_resolver.
423 (ppc_elf_relocate_section): Set flag on emitting dynamic
424 relocation to ifuncs.
425 (ppc_elf_finish_dynamic_symbol): Likewise.
426 (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local
427 dynamic relocs to ifuncs.
428
429 2017-03-13 Nick Clifton <nickc@redhat.com>
430
431 PR binutils/21202
432 * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to
433 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12.
434 (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to
435 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
436 * bfd-in2.h: Regenerate.
437 * libbfd.h: Regenerate.
438 * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc
439 names.
440 (IS_AARCH64_TLSDESC_RELOC): Likewise.
441 (elfNN_aarch64_howto_table): Likewise.
442 (aarch64_tls_transition_without_check): Likewise.
443 (aarch64_reloc_got_type): Likewise.
444 (elfNN_aarch64_final_link_relocate): Likewise.
445 (elfNN_aarch64_tls_relax): Likewise.
446 (elfNN_aarch64_relocate_section): Likewise.
447 (elfNN_aarch64_gc_sweep_hook): Likewise.
448 (elfNN_aarch64_check_relocs): Likewise.
449 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
450 (_bfd_aarch64_elf_resolve_relocation): Likewise.
451
452 2017-03-11 Alan Modra <amodra@gmail.com>
453
454 * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function
455 parameter is in fact used. Whitespace fixes.
456 * elf64-ppc.c: Likewise.
457
458 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk>
459
460 * rs6000-core.c (CORE_NEW): Simplify macro when
461 AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning.
462
463 2017-03-07 Alan Modra <amodra@gmail.com>
464
465 PR 21224
466 PR 20519
467 * elf64-ppc.c (ppc64_elf_relocate_section): Add missing
468 dyn_relocs check.
469
470 2017-03-05 Alan Modra <amodra@gmail.com>
471
472 * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8.
473 * elf-eh-frame.c (size_of_output_cie_fde): Don't align here.
474 (next_cie_fde_offset): New function.
475 (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8.
476 (_bfd_elf_discard_section_eh_frame): Align zero terminator to
477 four bytes. Align CIEs to four or eight bytes depending on
478 per_encoding_aligned8. Align FDEs according to their encoding.
479 Pad last FDE to output section alignment.
480 (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove
481 assertion.
482 * elf64-ppc.c (glink_eh_frame_cie): Delete padding.
483 (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c.
484 (ppc64_elf_finish_dynamic_sections): Adjust to suit.
485
486 2017-03-02 Martin Bickel <binutils@ineranves.de>
487
488 PR ld/21212
489 * elf.c (rewrite_elf_program_header): Do not issue a warning for
490 empty segments which have a zero filesz, but a non-zero memsz.
491
492 2017-03-02 Alan Modra <amodra@gmail.com>
493
494 * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo.
495
496 2017-02-28 Alan Modra <amodra@gmail.com>
497
498 * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change.
499 (ppc64_elf_relocate_section): Likewise.
500
501 2017-02-28 Alan Modra <amodra@gmail.com>
502
503 PR 20995
504 * elf32-nios2.c (nios2_elf32_relocate_section): Use htab
505 rather than elf32_nios2_hash_table or elf_hash_table.
506 (create_got_section): Likewise.
507 (nios2_elf32_finish_dynamic_symbol): Likewise.
508 (nios2_elf32_adjust_dynamic_symbol): Likewise.
509 (nios2_elf32_size_dynamic_sections): Likewise.
510 (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot
511 vars. Use htab equivalents directly instead. Don't create
512 all dynamic sections on needing just the GOT. Use a goto
513 rather than a fall-through with reloc test. Ensure
514 htab->dynobj is set when making dynamic sreloc section.
515 (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab
516 equivalent directly instead. Don't segfault on looking for
517 .dynamic when dynamic sections have not been created. Don't
518 segfault on .got.plt being discarded.
519 (nios2_elf32_size_dynamic_sections): Delete plt and got vars.
520 Don't set "relocs" on .rela.plt. Do handle .sbss. Delete
521 fixme and another not so relevant comment.
522 (nios2_elf_add_symbol_hook): Delete dynobj var. If not
523 already set, set hash table dynobj on creating .sbss.
524
525 2017-02-28 Alan Modra <amodra@gmail.com>
526
527 * reloc.c (BFD_RELOC_PPC_16DX_HA): New.
528 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto.
529 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc.
530 (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA.
531 (ppc64_elf_relocate_section): Likewise.
532 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto.
533 (ppc_elf_reloc_type_lookup): Translate new bfd reloc.
534 (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc.
535 * libbfd.h: Regenerate.
536 * bfd-in2.h: Regenerate.
537
538 2017-02-28 Alan Modra <amodra@gmail.com>
539
540 * elflink.c (_bfd_elf_create_dynamic_sections): Don't make
541 dynamic .data.rel.ro read-only.
542 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section
543 rather than section flags when deciding where copy reloc goes.
544 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
545 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
546 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
547 * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise.
548 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise.
549 * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise.
550 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise.
551 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise.
552 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
553 * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
554 * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
555 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise.
556 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
557 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
558 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise.
559 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise.
560 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
561 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
562 * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.
563
564 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
565
566 * elfxx-mips.c (mips_elf_perform_relocation): Also handle the
567 `jalr $0, $25' instruction encoding.
568
569 2017-02-27 Nick Clifton <nickc@redhat.com>
570
571 PR ld/21180
572 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid
573 generating a seg-fault when encountering a symbol that has been
574 deleted by garbage collection.
575
576 2017-02-25 Alan Modra <amodra@gmail.com>
577
578 * elf32-arc.c (struct dynamic_sections): Delete.
579 (enum dyn_section_types): Delete.
580 (dyn_section_names): Delete.
581 (arc_create_dynamic_sections): Delete.
582 (elf_arc_finish_dynamic_sections): Don't call the above. Don't
583 segfault on discarded .rela.plt section.
584 (elf_arc_size_dynamic_sections): Formatting. Don't call
585 arc_create_dynamic_sections. Don't allocate memory for sections
586 handled by the generic linker. Correct code finding relocs in
587 read-only sections. Set SEC_EXCLUDE on zero size .got,
588 .got.plt, and .dynbss sections. Do set .interp for pies.
589
590 2017-02-24 Andrew Waterman <andrew@sifive.com>
591
592 * elfnn-riscv.c (GP_NAME): New macro.
593 (riscv_global_pointer_value): Use it.
594 (_bfd_riscv_relax_lui): If symbol and global pointer are in same
595 output section, consider only that section's alignment.
596
597 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
598
599 * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype.
600 * elfxx-mips.c (_bfd_mips_relax_section): Remove function.
601 * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro.
602 * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise.
603
604 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
605
606 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR>
607 <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p'
608 or misaligned.
609
610 2017-02-23 Alan Modra <amodra@gmail.com>
611
612 PR 20744
613 * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE
614 16D relocations.
615 (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs.
616 (ppc_elf_relocate_section): Correct calculation for VLE SDAREL
617 relocs.
618
619 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
620
621 PR ld/20828
622 * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version
623 processing ahead of the call to `elf_gc_sweep_symbol'.
624
625 2017-02-22 Nick Clifton <nickc@redhat.com>
626
627 PR binutils/21193
628 * opncls.c (bfd_create_gnu_debuglink_section): Give the newly
629 created section 4-byte alignment.
630
631 2017-02-22 Alan Modra <amodra@gmail.com>
632
633 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault
634 on .got or .plt output section being discarded by script.
635 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move
636 vxworks splt temp.
637
638 2017-02-21 Alan Modra <amodra@gmail.com>
639
640 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit
641 DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero.
642
643 2017-02-20 Alan Modra <amodra@gmail.com>
644
645 PR 21181
646 * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero
647 if DT_RELSZ/DT_RELASZ is zero.
648
649 2017-02-17 Nick Clifton <nickc@redhat.com>
650
651 * compress.c (bfd_get_full_section_contents): Remember to reduce
652 compressed size by the sizeof the compression header when
653 decompressing the contents.
654
655 2017-02-17 Pedro Alves <palves@redhat.com>
656
657 * srec.c (Chunk): Rename to ...
658 (_bfd_srec_len): ... this.
659 (S3Forced): Rename to ...
660 (_bfd_srec_forceS3): ... this.
661 * objcopy.c: Adjust all references.
662
663 2017-02-17 Pedro Alves <palves@redhat.com>
664
665 * archive.c (bsd_write_armap): Rename to ...
666 (_bfd_bsd_write_armap): ... this.
667 (coff_write_armap): Rename to ...
668 (_bfd_coff_write_armap): ... this.
669 * libbfd-in.h (bsd_write_armap): Rename to ...
670 (_bfd_bsd_write_armap): ... this.
671 (coff_write_armap): Rename to ...
672 (_bfd_coff_write_armap): ... this.
673 * aout-target.h, aout-tic30.c: Adjust all users.
674 * libbfd.h: Regenerate.
675
676 2017-02-17 Pedro Alves <palves@redhat.com>
677
678 * bfd-in.h (bfd_read, bfd_write): Adjust to rename.
679 (warn_deprecated): Rename to ...
680 (_bfd_warn_deprecated): ... this.
681 * libbfd.c (warn_deprecated): Rename to ...
682 (_bfd_warn_deprecated): ... this.
683 * bfd-in2.h: Regenerate.
684
685 2017-02-17 Pedro Alves <palves@redhat.com>
686
687 * bfdio.c (real_ftell): Rename to ...
688 (_bfd_real_ftell): ... this.
689 (real_fseek): Rename to ...
690 (_bfd_real_fseek): ... this.
691 (real_fopen): Rename to ...
692 (_bfd_real_fopen): ... this.
693 * libbfd-in.h (real_ftell): Rename to ...
694 (_bfd_real_ftell): ... this.
695 (real_fseek): Rename to ...
696 (_bfd_real_fseek): ... this.
697 (real_fopen): Rename to ...
698 (_bfd_real_fopen): ... this.
699 * cache.c, dwarf2.c, opncls.c: Adjust all callers.
700 * libbfd.h: Regenerate.
701
702 2017-02-17 Pedro Alves <palves@redhat.com>
703
704 * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers.
705 * libbfd.c (read_unsigned_leb128): Rename to ...
706 (_bfd_read_unsigned_leb128): ... this.
707 (read_signed_leb128): Rename to ...
708 (_bfd_read_signed_leb128): ... this.
709 (safe_read_leb128): Rename to ...
710 (_bfd_safe_read_leb128): ... this.
711 * libbfd-in.h (read_unsigned_leb128): Rename to ...
712 (_bfd_read_unsigned_leb128): ... this.
713 (read_signed_leb128): Rename to ...
714 (_bfd_read_signed_leb128): ... this.
715 (safe_read_leb128): Rename to ...
716 (_bfd_safe_read_leb128): ... this.
717 * libbfd.h: Renegerate.
718
719 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
720
721 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup
722 before trying to fine matching file and line information.
723
724 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
725
726 * dwarf2.c (struct dwarf2_debug): Add orig_bfd member.
727 (_bfd_dwarf2_slurp_debug_info): If stashed debug information does
728 not match current bfd, then reload debug information. Record bfd
729 we're loading debug info for in the stash. If we have debug
730 informatin in the cache then perform section placement before
731 returning.
732
733 2017-02-16 Alan Modra <amodra@gmail.com>
734
735 PR 21000
736 * elf-bfd.h (struct elf_backend_data): Add no_page_alias.
737 * elfxx-target.h (elf_backend_no_page_alias): Define.
738 (elfNN_bed): Init new field.
739 * elf.c (assign_file_positions_for_load_sections): If no_page_alias
740 ensure PT_LOAD segment starts on a new page.
741 * elf32-hppa.c (elf_backend_no_page_alias): Define.
742
743 2017-02-16 Alan Modra <amodra@gmail.com>
744
745 PR 21132
746 * elf32-hppa.c (allocate_plt_static): Allocate space for relocs
747 if pic.
748
749 2017-02-16 Jiong Wang <jiong.wang@arm.com>
750
751 * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED.
752 * bfd-in2.h: Regenerated.
753
754 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
755
756 PR ld/21168
757 * elf32-i386.c (elf_i386_relocate_section): Allow
758 "lea foo@GOT, %reg" in PIC.
759
760 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
761
762 PR ld/20244
763 * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC
764 symbol name when reporting R_386_GOT32/R_386_GOT32X relocation
765 error against local IFUNC symbol without a base register for
766 PIC.
767
768 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
769
770 * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than
771 `%P: %H:' with `info->callbacks->einfo'.
772 (ppc_elf_relocate_section): Likewise.
773 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
774 (ppc64_elf_edit_toc): Likewise.
775 (ppc64_elf_relocate_section): Likewise.
776
777 2017-02-14 Alan Modra <amodra@gmail.com>
778
779 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
780 --gc-keep-exported, and test versioned field of sym rather than
781 looking for @ in name.
782
783 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
784
785 * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to
786 __global_pointer$.
787
788 2017-02-13 Nick Clifton <nickc@redhat.com>
789
790 PR binutils/21151
791 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid
792 unit length field.
793
794 2017-02-07 Andrew Waterman <andrew@sifive.com>
795
796 * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT
797 entry size if PLT header is written.
798
799 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com>
800
801 Fix sparc64 dynamic relocation processing to use the dynamic
802 symbol count.
803 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic'
804 to determine if bfd_get_symcount() or bfd_get_dynamic_symcount()
805 should be used.
806
807 2017-02-03 Nick Clifton <nickc@redhat.com>
808
809 PR 21096
810 * coffcode.h (coff_write_object_contents): Enlarge size of
811 s_name_buf in order to avoid compile time warning about possible
812 integer truncation.
813 * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower
814 32-bits of insn value before printing into buffer.
815
816 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
817
818 * elfxx-mips.c (mips_elf_hash_sort_data): Add
819 `max_local_dynindx'.
820 (mips_elf_sort_hash_table): Handle it.
821 (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local
822 symbols bump up `max_local_dynindx' rather than
823 `max_non_got_dynindx'.
824
825 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
826
827 * elfxx-mips.c (mips_elf_hash_sort_data): Convert the
828 `min_got_dynindx', `max_unref_got_dynindx' and
829 `max_non_got_dynindx' members to the `bfd_size_type' data type.
830 (mips_elf_sort_hash_table): Adjust accordingly.
831
832 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
833
834 * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout
835 to access the hash table.
836
837 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
838
839 * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on
840 non-NULL `htab' to the beginning.
841
842 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
843
844 * elflink.c (elf_gc_sweep): Wrap overlong line.
845
846 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
847
848 * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to...
849 (_bfd_mips_elf_linker_flags): ... this. Add another parameter.
850 * elfxx-mips.c (mips_elf_link_hash_table): Add
851 `ignore_branch_isa' member.
852 (mips_elf_perform_relocation): Do not treat an ISA mode mismatch
853 in branch relocation calculation as an error if
854 `ignore_branch_isa' has been set.
855 (_bfd_mips_elf_insn32): Rename to...
856 (_bfd_mips_elf_linker_flags): ... this. Rename the `on'
857 parameter to `insn32' and add an `ignore_branch_isa' parameter.
858 Handle the new parameter.
859
860 2017-01-27 Hans-Peter Nilsson <hp@axis.com>
861
862 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
863 local variable dynobj.
864
865 PR ld/20995
866 * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro.
867 (elf_cris_adjust_dynamic_symbol): Place variables copied into the
868 executable from read-only sections into sdynrelro.
869 (elf_cris_finish_dynamic_symbol): Select sreldynrelro for
870 dynamic relocs in sdynrelro.
871 (elf_backend_want_dynrelro): Define.
872
873 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
874
875 * config.bfd (*-*-rtemsaout*): Mark as removed.
876
877 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
878
879 * config.bfd (powerpcle-*-rtems*): Do not mark as removed.
880 (arm-*-rtems*): Move to (arm*-*-eabi*).
881 (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*).
882 (m68-*-rtems*): Move to (m68*-*-elf*).
883
884 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
885
886 * config.bfd (*-*-rtemscoff*): Mark as removed.
887
888 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
889
890 PR ld/20828
891 * elflink.c (bfd_elf_record_link_assignment): Revert last
892 change and don't ever clear `forced_local'. Set `mark'
893 unconditionally.
894 (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within
895 file.
896 (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'...
897 (bfd_elf_size_dynamic_sections): ... here.
898 * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local'
899 and set `mark' instead in `__tls_get_addr_opt' processing.
900 * elf64-ppc.c (ppc64_elf_tls_setup): Likewise.
901
902 2017-01-24 Alan Modra <amodra@gmail.com>
903
904 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases
905 where dynamic relocs are preferable. Allow ifunc too.
906 (ensure_undefweak_dynamic): New function.
907 (allocate_dynrelocs): Use it here. Move plt handling last and
908 don't make symbols dynamic, simplifying loop. Only make undef
909 weak symbols with GOT entries dynamic. Correct condition
910 for GOT relocs. Handle dynamic relocs on ifuncs. Correct
911 comments. Remove goto.
912 (ppc_elf_relocate_section): Correct test for using dynamic
913 symbol on GOT relocs. Rearrange test for emitting GOT relocs
914 to suit. Set up explicit tls_index entries and implicit GOT
915 tls_index entries resolvable at link time for
916 __tls_get_addr_opt. Simplify test to clear mem for prelink.
917 * elf64-ppc.c (allocate_got): Correct condition for GOT relocs.
918 (ensure_undefweak_dynamic): New function.
919 (allocate_dynrelocs): Use it here. Only make undef weak symbols
920 with GOT entries dynamic. Remove unnecessary test of
921 WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling.
922 (ppc64_elf_relocate_section): Correct test for using dynamic
923 symbol on GOT relocs. Rearrange test for emitting GOT relocs
924 to suit. Set up explicit tls_index entries and implicit GOT
925 tls_index entries resolvable at link time for __tls_get_addr_opt.
926 Simplify expression to clear mem for prelink.
927
928 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
929
930 * elfnn-aarch64.c: Fix relaxations for ILP32 mode.
931
932 2017-01-20 Jiong Wang <jiong.wang@arm.com>
933
934 * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function.
935 (elf_backend_hash_symbol): Define.
936
937 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
938
939 PR ld/20828
940 * elflink.c (bfd_elf_record_link_assignment): Clear any
941 `forced_local' marking for DSO symbols that are not being
942 provided.
943
944 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com>
945
946 * elfnn-riscv.c (riscv_elf_object_p): New function.
947
948 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
949
950 PR ld/21038
951 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
952 plt_bnd_eh_frame.
953 (elf_x86_64_check_relocs): Create .eh_frame section for the
954 .plt.bnd section.
955 (elf_x86_64_size_dynamic_sections): Allocate and initialize
956 .eh_frame section for the .plt.bnd section.
957 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
958 for the .plt.bnd section.
959
960 2017-01-12 Nick Clifton <nickc@redhat.com>
961
962 PR binutils/20876
963 * opncls.c (find_separate_debug_file): Add include_dirs
964 parameter. Only include the directory part of the bfd's filename
965 in search paths if include_dirs is true. Add a couple of extra
966 locations for looking for debug files.
967 ( bfd_follow_gnu_debuglink): Update invocation of
968 find_separate_debug_file.
969 (bfd_follow_gnu_debugaltlink): Likewise.
970 (get_build_id): New function: Finds the build-id of the given bfd.
971 (get_build_id_name): New function: Computes the name of the
972 separate debug info file for a bfd, based upon its build-id.
973 (check_build_id_file): New function: Checks to see if a separate
974 debug info file exists at the given location, and that its
975 build-id matches that of the original bfd.
976 (bfd_follow_build_id_debuglink): New function: Finds a separate
977 debug info file for a given bfd by using the build-id method.
978 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id
979 method of locating a separate debug info file before using the
980 debuglink method.
981 * bfd-in2.h: Regenerate.
982
983 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
984
985 PR ld/21038
986 * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New.
987 (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and
988 elf_x86_64_eh_frame_plt_got.
989 (elf_x86_64_size_dynamic_sections): Get unwind info from
990 elf_x86_64_bnd_arch_bed for the BND PLT.
991
992 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
993
994 * config.bfd: Add entries for i686-redox and x86_64-redox.
995
996 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
997
998 * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section
999 to 4 bytes.
1000 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align
1001 .eh_frame section to 4 bytes for x32.
1002 (elf_x86_64_check_relocs): Likewise.
1003
1004 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1005
1006 PR ld/20830
1007 * elf32-i386.c (elf_i386_eh_frame_plt_got): New.
1008 (PLT_GOT_FDE_LENGTH): Likewise.
1009 (elf_i386_plt_layout): Add eh_frame_plt_got and
1010 eh_frame_plt_got_size.
1011 (elf_i386_plt): Updated.
1012 (elf_i386_link_hash_table): Add plt_got_eh_frame.
1013 (elf_i386_check_relocs): Create .eh_frame section for .plt.got.
1014 (elf_i386_size_dynamic_sections): Allocate and initialize
1015 .eh_frame section for .plt.got.
1016 (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for
1017 .plt.got.
1018 (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and
1019 eh_frame_plt_got_size.
1020 * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New.
1021 (PLT_GOT_FDE_LENGTH): Likewise.
1022 (elf_x86_64_backend_data): Add eh_frame_plt_got and
1023 eh_frame_plt_got_size.
1024 (elf_x86_64_arch_bed): Updated.
1025 (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and
1026 eh_frame_plt_got_size.
1027 (elf_x86_64_nacl_arch_bed): Likewise.
1028 (elf_x86_64_link_hash_table): Add plt_got_eh_frame.
1029 (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got.
1030 (elf_x86_64_size_dynamic_sections): Allocate and initialize
1031 .eh_frame section for .plt.got.
1032 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
1033 for .plt.got.
1034
1035 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1036
1037 * elf32-i386.c (elf_i386_size_dynamic_sections): Set
1038 plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt.
1039
1040 2017-01-09 Nick Clifton <nickc@redhat.com>
1041
1042 * dwarf2.c (lookup_address_in_function_table): Return early if
1043 there are no functions in the given comp unit, or if the high
1044 address of the last function in the comp unit is less than the
1045 desired address.
1046
1047 2017-01-09 Nick Clifton <nickc@redhat.com>
1048
1049 PR binutils/21013
1050 * coffgen.c (_bfd_coff_get_external_symbols): Generate an error
1051 message if there are too many symbols to load.
1052
1053 2017-01-04 James Clarke <jrtc27@jrtc27.com>
1054
1055 * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free
1056 if relocs are cached.
1057
1058 2017-01-03 Rich Felker <bugdal@aerifal.cx>
1059
1060 PR ld/21017
1061 * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry
1062 for R_MICROBLAZE_GOTOFF_64.
1063
1064 2017-01-03 Nick Clifton <nickc@redhat.com>
1065
1066 * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time
1067 warning about using a possibly uninitialised variable.
1068
1069 2017-01-02 Alan Modra <amodra@gmail.com>
1070
1071 * elf32-hppa.c (ensure_undef_weak_dynamic): New function.
1072 (allocate_plt_static, allocate_dynrelocs): Use it.
1073
1074 2017-01-02 Alan Modra <amodra@gmail.com>
1075
1076 * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
1077 .PARISC.unwind section.
1078
1079 2017-01-02 Alan Modra <amodra@gmail.com>
1080
1081 PR ld/20989
1082 * elfxx-sparc.c (gdop_relative_offset_ok): New function.
1083 (_bfd_sparc_elf_relocate_section): Use it to validate GOT
1084 indirect to GOT pointer relative code edit.
1085
1086 2017-01-02 Alan Modra <amodra@gmail.com>
1087
1088 Update year range in copyright notice of all files.
1089
1090 For older changes see ChangeLog-2016
1091 \f
1092 Copyright (C) 2017 Free Software Foundation, Inc.
1093
1094 Copying and distribution of this file, with or without modification,
1095 are permitted in any medium without royalty provided the copyright
1096 notice and this notice are preserved.
1097
1098 Local Variables:
1099 mode: change-log
1100 left-margin: 8
1101 fill-column: 74
1102 version-control: never
1103 End:
This page took 0.05918 seconds and 5 git commands to generate.