1 2017-04-27 Alan Modra <amodra@gmail.com>
3 * elf32-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define.
4 (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Use it.
5 (ppc_elf_adjust_dynamic_symbol, allocate_dynrelocs): Likewise.
6 (ppc_elf_relocate_section): Likewise. Delete silly optimisation
7 for undef and undefweak dyn_relocs.
8 * elf64-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define.
9 (ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup): Use it.
10 (allocate_got, allocate_dynrelocs): Likewise.
11 (ppc64_elf_relocate_section): Likewise.
13 2017-04-26 H.J. Lu <hongjiu.lu@intel.com>
15 * elf32-i386.c (elf_i386_size_dynamic_sections): Alwasys add
16 DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rel.plt section.
17 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Alwasys
18 add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rela.plt section.
20 2017-04-26 Nick Clifton <nickc@redhat.com>
23 * reloc.c (bfd_perform_relocation): Check for a negative address
26 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
29 * elf-bfd.h (elf_backend_data): Add `always_renumber_dynsyms'
31 * elfxx-target.h [!elf_backend_always_renumber_dynsyms]
32 (elf_backend_always_renumber_dynsyms): Define.
33 (elfNN_bed): Initialize `always_renumber_dynsyms' member.
34 * elfxx-mips.h (elf_backend_always_renumber_dynsyms): Define.
35 * elflink.c (bfd_elf_size_dynamic_sections): Also call
36 `_bfd_elf_link_renumber_dynsyms' if the backend has requested
38 (bfd_elf_size_dynsym_hash_dynstr): Likewise.
40 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
42 * elflink.c (bfd_elf_size_dynamic_sections): Only call
43 `_bfd_elf_link_renumber_dynsyms' after section GC if dynamic
44 sections have been created.
46 2017-04-26 Nick Clifton <nickc@redhat.com>
49 * compress.c (bfd_init_section_compress_status): Check the return
50 value from bfd_malloc.
52 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
54 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add
55 no_finish_dynamic_symbol.
56 (elf_x86_64_link_hash_newfunc): Set no_finish_dynamic_symbol to
58 (elf_x86_64_allocate_dynrelocs): If a symbol isn't undefined
59 weak symbol, don't make it dynamic.
60 (elf_x86_64_relocate_section): If a symbol isn't dynamic in PIC,
61 set no_finish_dynamic_symbol and generate R_X86_64_RELATIVE
62 relocation for GOT reference.
63 (elf_x86_64_finish_dynamic_symbol): Abort if
64 no_finish_dynamic_symbol isn't 0.
66 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
69 * elf32-i386.c (elf_i386_allocate_dynrelocs): If a symbol isn't
70 undefined weak symbol, don't make it dynamic.
71 (elf_i386_relocate_section): If a symbol isn't dynamic in PIC,
72 set no_finish_dynamic_symbol and generate R_386_RELATIVE
73 relocation for R_386_GOT32.
75 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
78 * elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks.
80 2017-04-23 Alan Modra <amodra@gmail.com>
83 * section.c (GLOBAL_SYM_INIT): Make available in bfd.h.
84 * elf.c (lcomm_sym): New.
85 (_bfd_elf_large_com_section): Use lcomm_sym section symbol.
86 * bfd-in2.h: Regenerate.
88 2017-04-23 Alan Modra <amodra@gmail.com>
91 * elf-bfd.h (struct elf_backend_data <get_reloc_section>): Change
92 parameters and comment.
93 (_bfd_elf_get_reloc_section): Delete.
94 (_bfd_elf_plt_get_reloc_section): Declare.
95 * elf.c (_bfd_elf_plt_get_reloc_section, elf_get_reloc_section):
96 New functions. Don't blindly skip over assumed .rel/.rela prefix.
98 (_bfd_elf_get_reloc_section): ..here. Delete.
99 (assign_section_numbers): Call elf_get_reloc_section.
100 * elf64-ppc.c (elf_backend_get_reloc_section): Define.
101 * elfxx-target.h (elf_backend_get_reloc_section): Update.
103 2017-04-23 Alan Modra <amodra@gmail.com>
106 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Don't segfault when
109 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
112 * elf32-i386.c (elf_i386_link_hash_entry): Add
113 no_finish_dynamic_symbol.
114 (elf_i386_link_hash_newfunc): Set no_finish_dynamic_symbol to 0.
115 (elf_i386_allocate_dynrelocs): If a symbol isn't undefined weak
116 symbol, don't make it dynamic in PIE.
117 (elf_i386_relocate_section): If a symbol isn't dynamic in PIE,
118 set no_finish_dynamic_symbol and generate R_386_RELATIVE
119 relocation for R_386_GOT32
120 (elf_i386_finish_dynamic_symbol): Abort if no_finish_dynamic_symbol
123 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
127 * elflink.c (elf_link_add_object_symbols): Require
128 --no-dynamic-linker with -E/--dynamic-list when creating
131 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
133 * elflink.c (_bfd_elf_symbol_refs_local_p): Always return TRUE
136 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
138 * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about
139 dynamic symbol sorting.
141 2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
144 * elflink.c (elf_link_add_object_symbols): Preserve
145 dynamic_ref_after_ir_def when restoring the symbol table for
146 unneeded dynamic object.
148 2017-04-19 H.J. Lu <hongjiu.lu@intel.com>
151 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't abort
152 on on undefined IFUNC symbol in the second PLT.
154 2017-04-19 Wedson Almeida Filho <wedsonaf@gmail.com>
156 * peXXigen.c (pe_print_reloc): Correct chunk_end.
158 2017-04-19 Alan Modra <amodra@gmail.com>
160 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak
161 or make dynamic for info->dynamic_undefined_weak 0 and 1.
162 * elf32-ppc.c:Formatting.
163 (ensure_undefweak_dynamic): Don't make dynamic when
164 info->dynamic_undefined_weak is zero.
165 (allocate_dynrelocs): Discard undefweak dyn_relocs for
166 info->dynamic_undefined_weak. Discard undef dyn_relocs when
167 not default visibility. Discard undef and undefweak
169 (ppc_elf_relocate_section): Adjust to suit.
170 * elf64-ppc.c: Formatting.
171 (ensure_undefweak_dynamic): Don't make dynamic when
172 info->dynamic_undefined_weak is zero.
173 (allocate_dynrelocs): Discard undefweak dyn_relocs for
174 info->dynamic_undefined_weak. Discard them earlier.
176 2017-04-17 H.J. Lu <hongjiu.lu@intel.com>
179 * elflink.c (bfd_elf_size_dynamic_sections): Get soname index
180 before generating the version definition section.
182 2017-04-17 Alan Modra <amodra@gmail.com>
184 * elflink.c (_bfd_elf_merge_symbol): Undo dynamic linking
185 state when a regular object file defines a symbol with
186 incompatible type to that defined by an earlier shared lib.
188 2017-04-13 Alan Modra <amodra@gmail.com>
190 * coffcode.h: Wrap some overly long _bfd_error_handler args.
192 * elf32-arm.c: Likewise.
193 * elf32-i386.c: Likewise.
194 * elf32-mep.c: Likewise.
195 * elf64-ia64-vms.c: Likewise.
196 * elf64-x86-64.c: Likewise.
197 * elflink.c: Likewise.
198 * elfnn-ia64.c: Likewise.
199 * elfxx-mips.c: Likewise.
201 2017-04-13 Alan Modra <amodra@gmail.com>
203 * aoutx.h: Use %B and %A in error messages throughout file.
204 * aout-cris.c: Likewise.
205 * archive.c: Likewise.
206 * binary.c: Likewise.
207 * coff-rs6000.c: Likewise.
208 * coff-tic4x.c: Likewise.
209 * coffcode.h: Likewise.
210 * coffgen.c: Likewise.
211 * cofflink.c: Likewise.
212 * coffswap.h: Likewise.
213 * cpu-arm.c: Likewise.
214 * elf-eh-frame.c: Likewise.
215 * elf-m10300.c: Likewise.
217 * elf32-arc.c: Likewise.
218 * elf32-arm.c: Likewise.
219 * elf32-bfin.c: Likewise.
220 * elf32-frv.c: Likewise.
221 * elf32-iq2000.c: Likewise.
222 * elf32-m32c.c: Likewise.
223 * elf32-microblaze.c: Likewise.
224 * elf32-nds32.c: Likewise.
225 * elf32-rl78.c: Likewise.
226 * elf32-rx.c: Likewise.
227 * elf32-score.c: Likewise.
228 * elf32-score7.c: Likewise.
229 * elf32-sh64.c: Likewise.
230 * elf32-v850.c: Likewise.
231 * elf32-vax.c: Likewise.
232 * elf32-visium.c: Likewise.
233 * elf64-ia64-vms.c: Likewise.
234 * elf64-mmix.c: Likewise.
235 * elf64-sh64.c: Likewise.
236 * elfcode.h: Likewise.
237 * elfnn-aarch64.c: Likewise.
238 * elfnn-ia64.c: Likewise.
239 * elfxx-mips.c: Likewise.
240 * hpux-core.c: Likewise.
243 * linker.c: Likewise.
248 * peXXigen.c: Likewise.
249 * rs6000-core.c: Likewise.
250 * vms-alpha.c: Likewise.
251 * xcofflink.c: Likewise.
253 2017-04-13 Alan Modra <amodra@gmail.com>
255 * bfd.c (PRINT_TYPE): Define.
256 (_doprnt): New function.
257 (error_handler_internal): Use _doprnt.
258 * coff-arm.c: Put %A and %B arguments to _bfd_error_handler
259 calls in their natural order, throughout file.
260 * coff-mcore.c: Likewise.
261 * coff-ppc.c: Likewise.
262 * coff-tic80.c: Likewise.
263 * cofflink.c: Likewise.
264 * elf-s390-common.c: Likewise.
266 * elf32-arm.c: Likewise.
267 * elf32-i386.c: Likewise.
268 * elf32-m32r.c: Likewise.
269 * elf32-msp430.c: Likewise.
270 * elf32-spu.c: Likewise.
271 * elf64-ia64-vms.c: Likewise.
272 * elf64-sparc.c: Likewise.
273 * elf64-x86-64.c: Likewise.
274 * elflink.c: Likewise.
275 * elfnn-aarch64.c: Likewise.
276 * elfnn-ia64.c: Likewise.
277 * elfxx-mips.c: Likewise.
279 2017-04-13 Alan Modra <amodra@gmail.com>
281 * elf32-arm.c (arm_type_of_stub): Supply missing args to "long
282 branch veneers" error. Fix double space and format message.
283 * elf32-avr.c (avr_add_stub): Do not pass NULL as %B arg.
284 * elf64-ppc.c (tocsave_find): Supply missing %B arg.
286 2017-04-13 Alan Modra <amodra@gmail.com>
288 * bfd-in2.h: Regenerate.
290 2017-04-11 H.J. Lu <hongjiu.lu@intel.com>
292 * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the
293 extra `\n' in warning/error messages.
294 * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise.
295 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
297 2017-04-11 H.J. Lu <hongjiu.lu@intel.com>
299 * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore
300 processor-specific properties with generic ELF target vector.
302 2017-04-10 Qing Zhao <qing.zhao@oracle.com>
304 * elf32-sparc.c (elf_backend_fixup_symbol): New.
305 * elf64-sparc.c (elf_backend_fixup_symbol): New.
306 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
307 (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and
309 (link_hash_newfunc): Initialize has_got_reloc and
311 (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp
313 (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and
315 (_bfd_sparc_elf_check_relocs): Set has_got_reloc and
317 (_bfd_sparc_elf_fixup_symbol): New function.
318 (allocate_dynrelocs): Don't allocate space for dynamic
319 relocations and discard relocations against resolved undefined
320 weak symbols in executable. Don't make resolved undefined weak
321 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
322 relocation against undefined weak symbols in PIE.
323 (_bfd_sparc_elf_relocate_section): Don't generate dynamic
324 relocations against resolved undefined weak symbols in PIE
325 (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries
326 without ynamic PLT/GOT relocations for resolved undefined weak
328 Don't generate dynamic relocation against resolved undefined
329 weak symbol in executable.
330 (pie_finish_undefweak_symbol): New function.
331 (_bfd_sparc_elf_finish_dynamic_sections): Call
332 pie_finish_undefweak_symbol on all symbols in PIE.
333 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp.
334 (_bfd_sparc_elf_fixup_symbol): New function.
336 2017-04-10 Nick Clifton <nickc@redhat.com>
338 * config.bfd: Remove ns32k from obsolete list.
340 2017-04-10 Alan Modra <amodra@gmail.com>
343 * elf.c (special_sections_f): Match .fini_array and .fini_array.*.
344 (special_sections_i): Likewise for .init_array.
345 (special_sections_p): Likewise for .preinit_array.
347 2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
351 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check
352 ELF_COMMON_DEF_P for common symbols.
353 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
354 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
355 * elflink.c (_bfd_elf_merge_symbol): Revert commits
356 202ac193bbbecc96a4978d1ac3d17148253f9b01 and
357 07492f668d2173da7a2bda3707ff0985e0f460b6.
359 2017-04-07 Pedro Alves <palves@redhat.com>
361 * opncls.c (bfd_get_debug_link_info): Rename to...
362 (bfd_get_debug_link_info_1): ... this. Change type of second
363 parameter to void pointer. Adjust.
364 (bfd_get_debug_link_info): Reimplement on top of
365 bfd_get_debug_link_info_1.
366 (separate_debug_file_exists, separate_alt_debug_file_exists):
367 Change type of second parameter to void pointer. Adjust.
368 (get_func_type, check_func_type): Change type of second parameter
370 (find_separate_debug_file): Add 'func_data' parameter. Pass it to
371 the callback functions instead of passing the address of a local.
372 (bfd_follow_gnu_debuglink): Pass address of unsigned long local to
373 find_separate_debug_file.
374 (get_alt_debug_link_info_shim): Change type of second parameter to
375 void pointer. Adjust.
376 (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to
377 find_separate_debug_file.
378 (get_build_id_name, bfd_boolean check_build_id_file): Change type
379 of second parameter to void pointer. Adjust.
380 (bfd_follow_build_id_debuglink): Pass address of bfd_build_id
381 pointer local to find_separate_debug_file.
383 2017-04-07 Tristan Gingold <gingold@gingold-Precision-7510>
385 * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak
386 external symbols with a definition.
387 (_bfd_coff_gc_mark_extra_sections): Fix typo.
389 2017-04-07 Alan Modra <amodra@gmail.com>
391 * po/SRC-POTFILES.in: Regenerate.
393 2017-04-05 Alan Modra <amodra@gmail.com>
395 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT
398 2017-04-02 Jon Turney <jon.turney@dronecode.org.uk>
400 (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than
401 numbers for DataDirectory entry indicies passed to
404 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
406 * elf.c (get_program_header_size): Add a GNU_MBIND segment for
407 each GNU_MBIND section and align GNU_MBIND section to page size.
408 (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND
409 segment for each GNU_MBIND section.
410 (_bfd_elf_init_private_section_data): Copy sh_info from input
411 for GNU_MBIND section.
413 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
415 * elfnn-riscv.c (GP_NAME): Delete.
416 (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL.
417 (_bfd_riscv_relax_lui): Likewise.
419 2017-04-04 Nick Clifton <nickc@redhat.com>
422 * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer
424 (bfd_elf_final_link): Only initialize the extended symbol index
425 section if there are extended symbol tables to list.
427 2017-04-03 H.J. Lu <hongjiu.lu@intel.com>
429 * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo.
430 (BFD32_BACKENDS_CFILES): Add elf-properties.c.
431 * configure.ac (elf): Add elf-properties.lo.
432 * Makefile.in: Regenerated.
433 * configure: Likewise.
434 * elf-bfd.h (elf_property_kind): New.
435 (elf_property): Likewise.
436 (elf_property_list): Likewise.
437 (elf_properties): Likewise.
438 (_bfd_elf_parse_gnu_properties): Likewise.
439 (_bfd_elf_get_property): Likewise.
440 (_bfd_elf_link_setup_gnu_properties): Likewise.
441 (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties
442 and setup_gnu_properties.
443 (elf_obj_tdata): Add properties.
444 * elf-properties.c: New file.
445 * elf32-i386.c (elf_i386_parse_gnu_properties): New.
446 (elf_i386_merge_gnu_properties): Likewise.
447 (elf_backend_parse_gnu_properties): Likewise.
448 (elf_backend_merge_gnu_properties): Likewise.
449 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
450 (elf_x86_64_merge_gnu_properties): Likewise.
451 (elf_backend_parse_gnu_properties): Likewise.
452 (elf_backend_merge_gnu_properties): Likewise.
453 * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise.
454 (elf_backend_parse_gnu_properties): Likewise.
455 (elf_backend_setup_gnu_properties): Likewise.
456 (elfNN_bed): Add elf_backend_parse_gnu_properties,
457 elf_backend_merge_gnu_properties and
458 elf_backend_setup_gnu_properties.
460 2017-03-30 Pip Cet <pipcet@gmail.com>
462 * elf32-wasm32.c: Add relocation code, two relocs.
463 * reloc.c: Add wasm32 relocations.
464 * libbfd.h: Regenerate.
465 * bfd-in2.h: Regenerate.
466 * bfd/po/bfd.pot: Regenerate.
468 2017-03-29 Nick Clifton <nickc@redhat.com>
471 * coff-bfd.h (struct coff_section_data): Add new fields:
473 * coffgen.c (coff_find_nearest_line_with_names): Cache the bias
474 computed for PE binaries.
475 * dwarf2.c (scan_unit_for_symbols): Only warn once about each
478 2017-03-28 Hans-Peter Nilsson <hp@axis.com>
481 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT
482 to handle a local symbol with a hash-symbol-entry; without PLT.
483 Add BFD_ASSERT for an incidental case with GOT entry present.
484 (cris_elf_check_relocs): Increment PLT refcount only if the symbol
485 isn't forced-or-set local.
487 2017-03-27 Pip Cet <pipcet@gmail.com>
489 * wasm-module.c: New file to support WebAssembly modules.
490 * wasm-module.h: New file to support WebAssembly modules.
491 * doc/webassembly.texi: Start documenting wasm-module.c.
492 * config.bfd: Add wasm_vec.
493 * targets.c: Likewise.
494 * configure.ac: Likewise.
495 * Makefile.am: Add entries for wasm-module.c.
496 * Makefile.in: Regenerate.
497 * configure: Regenerate.
498 * po/SRC-POTFILES.in: Regenerate.
500 2017-03-27 Pip Cet <pipcet@gmail.com>
502 * cpu-wasm32.c: New file to support wasm32 architecture.
503 * elf32-wasm32.c: New file to support wasm32 architecture.
504 * Makefile.am: Add wasm32 architecture.
505 * archures.c: Likewise.
506 * config.bfd: Likewise.
507 * configure.ac: Likewise.
508 * targets.c: Likewise.
509 * Makefile.in: Regenerate.
510 * bfd-in2.h: Regenerate.
511 * configure: Regenerate.
512 * po/SRC-POTFILES.in: Regenerate.
514 2017-03-20 Alan Modra <amodra@gmail.com>
517 * elf64-ppc.c (compare_symbols): Stabilize sort.
519 2017-03-18 Alan Modra <amodra@gmail.com>
521 * elf64-ppc.c (struct ppc_link_hash_table): Add
522 local_ifunc_resolver and maybe_local_ifunc_resolver.
523 (ppc_build_one_stub): Set flags on emitting dynamic
525 (ppc64_elf_relocate_section): Likewise.
526 (ppc64_elf_finish_dynamic_symbol): Likewise.
527 (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with
528 local dynamic relocs to ifuncs.
529 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add
530 local_ifunc_resolver and maybe_local_ifunc_resolver.
531 (ppc_elf_relocate_section): Set flag on emitting dynamic
532 relocation to ifuncs.
533 (ppc_elf_finish_dynamic_symbol): Likewise.
534 (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local
535 dynamic relocs to ifuncs.
537 2017-03-13 Nick Clifton <nickc@redhat.com>
540 * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to
541 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12.
542 (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to
543 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
544 * bfd-in2.h: Regenerate.
545 * libbfd.h: Regenerate.
546 * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc
548 (IS_AARCH64_TLSDESC_RELOC): Likewise.
549 (elfNN_aarch64_howto_table): Likewise.
550 (aarch64_tls_transition_without_check): Likewise.
551 (aarch64_reloc_got_type): Likewise.
552 (elfNN_aarch64_final_link_relocate): Likewise.
553 (elfNN_aarch64_tls_relax): Likewise.
554 (elfNN_aarch64_relocate_section): Likewise.
555 (elfNN_aarch64_gc_sweep_hook): Likewise.
556 (elfNN_aarch64_check_relocs): Likewise.
557 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
558 (_bfd_aarch64_elf_resolve_relocation): Likewise.
560 2017-03-11 Alan Modra <amodra@gmail.com>
562 * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function
563 parameter is in fact used. Whitespace fixes.
564 * elf64-ppc.c: Likewise.
566 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk>
568 * rs6000-core.c (CORE_NEW): Simplify macro when
569 AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning.
571 2017-03-07 Alan Modra <amodra@gmail.com>
575 * elf64-ppc.c (ppc64_elf_relocate_section): Add missing
578 2017-03-05 Alan Modra <amodra@gmail.com>
580 * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8.
581 * elf-eh-frame.c (size_of_output_cie_fde): Don't align here.
582 (next_cie_fde_offset): New function.
583 (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8.
584 (_bfd_elf_discard_section_eh_frame): Align zero terminator to
585 four bytes. Align CIEs to four or eight bytes depending on
586 per_encoding_aligned8. Align FDEs according to their encoding.
587 Pad last FDE to output section alignment.
588 (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove
590 * elf64-ppc.c (glink_eh_frame_cie): Delete padding.
591 (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c.
592 (ppc64_elf_finish_dynamic_sections): Adjust to suit.
594 2017-03-02 Martin Bickel <binutils@ineranves.de>
597 * elf.c (rewrite_elf_program_header): Do not issue a warning for
598 empty segments which have a zero filesz, but a non-zero memsz.
600 2017-03-02 Alan Modra <amodra@gmail.com>
602 * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo.
604 2017-02-28 Alan Modra <amodra@gmail.com>
606 * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change.
607 (ppc64_elf_relocate_section): Likewise.
609 2017-02-28 Alan Modra <amodra@gmail.com>
612 * elf32-nios2.c (nios2_elf32_relocate_section): Use htab
613 rather than elf32_nios2_hash_table or elf_hash_table.
614 (create_got_section): Likewise.
615 (nios2_elf32_finish_dynamic_symbol): Likewise.
616 (nios2_elf32_adjust_dynamic_symbol): Likewise.
617 (nios2_elf32_size_dynamic_sections): Likewise.
618 (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot
619 vars. Use htab equivalents directly instead. Don't create
620 all dynamic sections on needing just the GOT. Use a goto
621 rather than a fall-through with reloc test. Ensure
622 htab->dynobj is set when making dynamic sreloc section.
623 (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab
624 equivalent directly instead. Don't segfault on looking for
625 .dynamic when dynamic sections have not been created. Don't
626 segfault on .got.plt being discarded.
627 (nios2_elf32_size_dynamic_sections): Delete plt and got vars.
628 Don't set "relocs" on .rela.plt. Do handle .sbss. Delete
629 fixme and another not so relevant comment.
630 (nios2_elf_add_symbol_hook): Delete dynobj var. If not
631 already set, set hash table dynobj on creating .sbss.
633 2017-02-28 Alan Modra <amodra@gmail.com>
635 * reloc.c (BFD_RELOC_PPC_16DX_HA): New.
636 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto.
637 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc.
638 (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA.
639 (ppc64_elf_relocate_section): Likewise.
640 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto.
641 (ppc_elf_reloc_type_lookup): Translate new bfd reloc.
642 (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc.
643 * libbfd.h: Regenerate.
644 * bfd-in2.h: Regenerate.
646 2017-02-28 Alan Modra <amodra@gmail.com>
648 * elflink.c (_bfd_elf_create_dynamic_sections): Don't make
649 dynamic .data.rel.ro read-only.
650 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section
651 rather than section flags when deciding where copy reloc goes.
652 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
653 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
654 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
655 * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise.
656 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise.
657 * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise.
658 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise.
659 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise.
660 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
661 * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
662 * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
663 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise.
664 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
665 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
666 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise.
667 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise.
668 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
669 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
670 * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.
672 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
674 * elfxx-mips.c (mips_elf_perform_relocation): Also handle the
675 `jalr $0, $25' instruction encoding.
677 2017-02-27 Nick Clifton <nickc@redhat.com>
680 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid
681 generating a seg-fault when encountering a symbol that has been
682 deleted by garbage collection.
684 2017-02-25 Alan Modra <amodra@gmail.com>
686 * elf32-arc.c (struct dynamic_sections): Delete.
687 (enum dyn_section_types): Delete.
688 (dyn_section_names): Delete.
689 (arc_create_dynamic_sections): Delete.
690 (elf_arc_finish_dynamic_sections): Don't call the above. Don't
691 segfault on discarded .rela.plt section.
692 (elf_arc_size_dynamic_sections): Formatting. Don't call
693 arc_create_dynamic_sections. Don't allocate memory for sections
694 handled by the generic linker. Correct code finding relocs in
695 read-only sections. Set SEC_EXCLUDE on zero size .got,
696 .got.plt, and .dynbss sections. Do set .interp for pies.
698 2017-02-24 Andrew Waterman <andrew@sifive.com>
700 * elfnn-riscv.c (GP_NAME): New macro.
701 (riscv_global_pointer_value): Use it.
702 (_bfd_riscv_relax_lui): If symbol and global pointer are in same
703 output section, consider only that section's alignment.
705 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
707 * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype.
708 * elfxx-mips.c (_bfd_mips_relax_section): Remove function.
709 * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro.
710 * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise.
712 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
714 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR>
715 <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p'
718 2017-02-23 Alan Modra <amodra@gmail.com>
721 * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE
723 (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs.
724 (ppc_elf_relocate_section): Correct calculation for VLE SDAREL
727 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
730 * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version
731 processing ahead of the call to `elf_gc_sweep_symbol'.
733 2017-02-22 Nick Clifton <nickc@redhat.com>
736 * opncls.c (bfd_create_gnu_debuglink_section): Give the newly
737 created section 4-byte alignment.
739 2017-02-22 Alan Modra <amodra@gmail.com>
741 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault
742 on .got or .plt output section being discarded by script.
743 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move
746 2017-02-21 Alan Modra <amodra@gmail.com>
748 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit
749 DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero.
751 2017-02-20 Alan Modra <amodra@gmail.com>
754 * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero
755 if DT_RELSZ/DT_RELASZ is zero.
757 2017-02-17 Nick Clifton <nickc@redhat.com>
759 * compress.c (bfd_get_full_section_contents): Remember to reduce
760 compressed size by the sizeof the compression header when
761 decompressing the contents.
763 2017-02-17 Pedro Alves <palves@redhat.com>
765 * srec.c (Chunk): Rename to ...
766 (_bfd_srec_len): ... this.
767 (S3Forced): Rename to ...
768 (_bfd_srec_forceS3): ... this.
769 * objcopy.c: Adjust all references.
771 2017-02-17 Pedro Alves <palves@redhat.com>
773 * archive.c (bsd_write_armap): Rename to ...
774 (_bfd_bsd_write_armap): ... this.
775 (coff_write_armap): Rename to ...
776 (_bfd_coff_write_armap): ... this.
777 * libbfd-in.h (bsd_write_armap): Rename to ...
778 (_bfd_bsd_write_armap): ... this.
779 (coff_write_armap): Rename to ...
780 (_bfd_coff_write_armap): ... this.
781 * aout-target.h, aout-tic30.c: Adjust all users.
782 * libbfd.h: Regenerate.
784 2017-02-17 Pedro Alves <palves@redhat.com>
786 * bfd-in.h (bfd_read, bfd_write): Adjust to rename.
787 (warn_deprecated): Rename to ...
788 (_bfd_warn_deprecated): ... this.
789 * libbfd.c (warn_deprecated): Rename to ...
790 (_bfd_warn_deprecated): ... this.
791 * bfd-in2.h: Regenerate.
793 2017-02-17 Pedro Alves <palves@redhat.com>
795 * bfdio.c (real_ftell): Rename to ...
796 (_bfd_real_ftell): ... this.
797 (real_fseek): Rename to ...
798 (_bfd_real_fseek): ... this.
799 (real_fopen): Rename to ...
800 (_bfd_real_fopen): ... this.
801 * libbfd-in.h (real_ftell): Rename to ...
802 (_bfd_real_ftell): ... this.
803 (real_fseek): Rename to ...
804 (_bfd_real_fseek): ... this.
805 (real_fopen): Rename to ...
806 (_bfd_real_fopen): ... this.
807 * cache.c, dwarf2.c, opncls.c: Adjust all callers.
808 * libbfd.h: Regenerate.
810 2017-02-17 Pedro Alves <palves@redhat.com>
812 * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers.
813 * libbfd.c (read_unsigned_leb128): Rename to ...
814 (_bfd_read_unsigned_leb128): ... this.
815 (read_signed_leb128): Rename to ...
816 (_bfd_read_signed_leb128): ... this.
817 (safe_read_leb128): Rename to ...
818 (_bfd_safe_read_leb128): ... this.
819 * libbfd-in.h (read_unsigned_leb128): Rename to ...
820 (_bfd_read_unsigned_leb128): ... this.
821 (read_signed_leb128): Rename to ...
822 (_bfd_read_signed_leb128): ... this.
823 (safe_read_leb128): Rename to ...
824 (_bfd_safe_read_leb128): ... this.
825 * libbfd.h: Renegerate.
827 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
829 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup
830 before trying to fine matching file and line information.
832 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
834 * dwarf2.c (struct dwarf2_debug): Add orig_bfd member.
835 (_bfd_dwarf2_slurp_debug_info): If stashed debug information does
836 not match current bfd, then reload debug information. Record bfd
837 we're loading debug info for in the stash. If we have debug
838 informatin in the cache then perform section placement before
841 2017-02-16 Alan Modra <amodra@gmail.com>
844 * elf-bfd.h (struct elf_backend_data): Add no_page_alias.
845 * elfxx-target.h (elf_backend_no_page_alias): Define.
846 (elfNN_bed): Init new field.
847 * elf.c (assign_file_positions_for_load_sections): If no_page_alias
848 ensure PT_LOAD segment starts on a new page.
849 * elf32-hppa.c (elf_backend_no_page_alias): Define.
851 2017-02-16 Alan Modra <amodra@gmail.com>
854 * elf32-hppa.c (allocate_plt_static): Allocate space for relocs
857 2017-02-16 Jiong Wang <jiong.wang@arm.com>
859 * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED.
860 * bfd-in2.h: Regenerated.
862 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
865 * elf32-i386.c (elf_i386_relocate_section): Allow
866 "lea foo@GOT, %reg" in PIC.
868 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
871 * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC
872 symbol name when reporting R_386_GOT32/R_386_GOT32X relocation
873 error against local IFUNC symbol without a base register for
876 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
878 * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than
879 `%P: %H:' with `info->callbacks->einfo'.
880 (ppc_elf_relocate_section): Likewise.
881 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
882 (ppc64_elf_edit_toc): Likewise.
883 (ppc64_elf_relocate_section): Likewise.
885 2017-02-14 Alan Modra <amodra@gmail.com>
887 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
888 --gc-keep-exported, and test versioned field of sym rather than
889 looking for @ in name.
891 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
893 * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to
896 2017-02-13 Nick Clifton <nickc@redhat.com>
899 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid
902 2017-02-07 Andrew Waterman <andrew@sifive.com>
904 * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT
905 entry size if PLT header is written.
907 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com>
909 Fix sparc64 dynamic relocation processing to use the dynamic
911 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic'
912 to determine if bfd_get_symcount() or bfd_get_dynamic_symcount()
915 2017-02-03 Nick Clifton <nickc@redhat.com>
918 * coffcode.h (coff_write_object_contents): Enlarge size of
919 s_name_buf in order to avoid compile time warning about possible
921 * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower
922 32-bits of insn value before printing into buffer.
924 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
926 * elfxx-mips.c (mips_elf_hash_sort_data): Add
928 (mips_elf_sort_hash_table): Handle it.
929 (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local
930 symbols bump up `max_local_dynindx' rather than
931 `max_non_got_dynindx'.
933 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
935 * elfxx-mips.c (mips_elf_hash_sort_data): Convert the
936 `min_got_dynindx', `max_unref_got_dynindx' and
937 `max_non_got_dynindx' members to the `bfd_size_type' data type.
938 (mips_elf_sort_hash_table): Adjust accordingly.
940 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
942 * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout
943 to access the hash table.
945 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
947 * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on
948 non-NULL `htab' to the beginning.
950 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
952 * elflink.c (elf_gc_sweep): Wrap overlong line.
954 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
956 * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to...
957 (_bfd_mips_elf_linker_flags): ... this. Add another parameter.
958 * elfxx-mips.c (mips_elf_link_hash_table): Add
959 `ignore_branch_isa' member.
960 (mips_elf_perform_relocation): Do not treat an ISA mode mismatch
961 in branch relocation calculation as an error if
962 `ignore_branch_isa' has been set.
963 (_bfd_mips_elf_insn32): Rename to...
964 (_bfd_mips_elf_linker_flags): ... this. Rename the `on'
965 parameter to `insn32' and add an `ignore_branch_isa' parameter.
966 Handle the new parameter.
968 2017-01-27 Hans-Peter Nilsson <hp@axis.com>
970 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
971 local variable dynobj.
974 * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro.
975 (elf_cris_adjust_dynamic_symbol): Place variables copied into the
976 executable from read-only sections into sdynrelro.
977 (elf_cris_finish_dynamic_symbol): Select sreldynrelro for
978 dynamic relocs in sdynrelro.
979 (elf_backend_want_dynrelro): Define.
981 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
983 * config.bfd (*-*-rtemsaout*): Mark as removed.
985 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
987 * config.bfd (powerpcle-*-rtems*): Do not mark as removed.
988 (arm-*-rtems*): Move to (arm*-*-eabi*).
989 (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*).
990 (m68-*-rtems*): Move to (m68*-*-elf*).
992 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
994 * config.bfd (*-*-rtemscoff*): Mark as removed.
996 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
999 * elflink.c (bfd_elf_record_link_assignment): Revert last
1000 change and don't ever clear `forced_local'. Set `mark'
1002 (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within
1004 (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'...
1005 (bfd_elf_size_dynamic_sections): ... here.
1006 * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local'
1007 and set `mark' instead in `__tls_get_addr_opt' processing.
1008 * elf64-ppc.c (ppc64_elf_tls_setup): Likewise.
1010 2017-01-24 Alan Modra <amodra@gmail.com>
1012 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases
1013 where dynamic relocs are preferable. Allow ifunc too.
1014 (ensure_undefweak_dynamic): New function.
1015 (allocate_dynrelocs): Use it here. Move plt handling last and
1016 don't make symbols dynamic, simplifying loop. Only make undef
1017 weak symbols with GOT entries dynamic. Correct condition
1018 for GOT relocs. Handle dynamic relocs on ifuncs. Correct
1019 comments. Remove goto.
1020 (ppc_elf_relocate_section): Correct test for using dynamic
1021 symbol on GOT relocs. Rearrange test for emitting GOT relocs
1022 to suit. Set up explicit tls_index entries and implicit GOT
1023 tls_index entries resolvable at link time for
1024 __tls_get_addr_opt. Simplify test to clear mem for prelink.
1025 * elf64-ppc.c (allocate_got): Correct condition for GOT relocs.
1026 (ensure_undefweak_dynamic): New function.
1027 (allocate_dynrelocs): Use it here. Only make undef weak symbols
1028 with GOT entries dynamic. Remove unnecessary test of
1029 WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling.
1030 (ppc64_elf_relocate_section): Correct test for using dynamic
1031 symbol on GOT relocs. Rearrange test for emitting GOT relocs
1032 to suit. Set up explicit tls_index entries and implicit GOT
1033 tls_index entries resolvable at link time for __tls_get_addr_opt.
1034 Simplify expression to clear mem for prelink.
1036 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
1038 * elfnn-aarch64.c: Fix relaxations for ILP32 mode.
1040 2017-01-20 Jiong Wang <jiong.wang@arm.com>
1042 * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function.
1043 (elf_backend_hash_symbol): Define.
1045 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
1048 * elflink.c (bfd_elf_record_link_assignment): Clear any
1049 `forced_local' marking for DSO symbols that are not being
1052 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1054 * elfnn-riscv.c (riscv_elf_object_p): New function.
1056 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
1059 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
1061 (elf_x86_64_check_relocs): Create .eh_frame section for the
1063 (elf_x86_64_size_dynamic_sections): Allocate and initialize
1064 .eh_frame section for the .plt.bnd section.
1065 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
1066 for the .plt.bnd section.
1068 2017-01-12 Nick Clifton <nickc@redhat.com>
1071 * opncls.c (find_separate_debug_file): Add include_dirs
1072 parameter. Only include the directory part of the bfd's filename
1073 in search paths if include_dirs is true. Add a couple of extra
1074 locations for looking for debug files.
1075 ( bfd_follow_gnu_debuglink): Update invocation of
1076 find_separate_debug_file.
1077 (bfd_follow_gnu_debugaltlink): Likewise.
1078 (get_build_id): New function: Finds the build-id of the given bfd.
1079 (get_build_id_name): New function: Computes the name of the
1080 separate debug info file for a bfd, based upon its build-id.
1081 (check_build_id_file): New function: Checks to see if a separate
1082 debug info file exists at the given location, and that its
1083 build-id matches that of the original bfd.
1084 (bfd_follow_build_id_debuglink): New function: Finds a separate
1085 debug info file for a given bfd by using the build-id method.
1086 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id
1087 method of locating a separate debug info file before using the
1089 * bfd-in2.h: Regenerate.
1091 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
1094 * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New.
1095 (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and
1096 elf_x86_64_eh_frame_plt_got.
1097 (elf_x86_64_size_dynamic_sections): Get unwind info from
1098 elf_x86_64_bnd_arch_bed for the BND PLT.
1100 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
1102 * config.bfd: Add entries for i686-redox and x86_64-redox.
1104 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1106 * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section
1108 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align
1109 .eh_frame section to 4 bytes for x32.
1110 (elf_x86_64_check_relocs): Likewise.
1112 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1115 * elf32-i386.c (elf_i386_eh_frame_plt_got): New.
1116 (PLT_GOT_FDE_LENGTH): Likewise.
1117 (elf_i386_plt_layout): Add eh_frame_plt_got and
1118 eh_frame_plt_got_size.
1119 (elf_i386_plt): Updated.
1120 (elf_i386_link_hash_table): Add plt_got_eh_frame.
1121 (elf_i386_check_relocs): Create .eh_frame section for .plt.got.
1122 (elf_i386_size_dynamic_sections): Allocate and initialize
1123 .eh_frame section for .plt.got.
1124 (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for
1126 (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and
1127 eh_frame_plt_got_size.
1128 * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New.
1129 (PLT_GOT_FDE_LENGTH): Likewise.
1130 (elf_x86_64_backend_data): Add eh_frame_plt_got and
1131 eh_frame_plt_got_size.
1132 (elf_x86_64_arch_bed): Updated.
1133 (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and
1134 eh_frame_plt_got_size.
1135 (elf_x86_64_nacl_arch_bed): Likewise.
1136 (elf_x86_64_link_hash_table): Add plt_got_eh_frame.
1137 (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got.
1138 (elf_x86_64_size_dynamic_sections): Allocate and initialize
1139 .eh_frame section for .plt.got.
1140 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
1143 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1145 * elf32-i386.c (elf_i386_size_dynamic_sections): Set
1146 plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt.
1148 2017-01-09 Nick Clifton <nickc@redhat.com>
1150 * dwarf2.c (lookup_address_in_function_table): Return early if
1151 there are no functions in the given comp unit, or if the high
1152 address of the last function in the comp unit is less than the
1155 2017-01-09 Nick Clifton <nickc@redhat.com>
1158 * coffgen.c (_bfd_coff_get_external_symbols): Generate an error
1159 message if there are too many symbols to load.
1161 2017-01-04 James Clarke <jrtc27@jrtc27.com>
1163 * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free
1164 if relocs are cached.
1166 2017-01-03 Rich Felker <bugdal@aerifal.cx>
1169 * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry
1170 for R_MICROBLAZE_GOTOFF_64.
1172 2017-01-03 Nick Clifton <nickc@redhat.com>
1174 * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time
1175 warning about using a possibly uninitialised variable.
1177 2017-01-02 Alan Modra <amodra@gmail.com>
1179 * elf32-hppa.c (ensure_undef_weak_dynamic): New function.
1180 (allocate_plt_static, allocate_dynrelocs): Use it.
1182 2017-01-02 Alan Modra <amodra@gmail.com>
1184 * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
1185 .PARISC.unwind section.
1187 2017-01-02 Alan Modra <amodra@gmail.com>
1190 * elfxx-sparc.c (gdop_relative_offset_ok): New function.
1191 (_bfd_sparc_elf_relocate_section): Use it to validate GOT
1192 indirect to GOT pointer relative code edit.
1194 2017-01-02 Alan Modra <amodra@gmail.com>
1196 Update year range in copyright notice of all files.
1198 For older changes see ChangeLog-2016
1200 Copyright (C) 2017 Free Software Foundation, Inc.
1202 Copying and distribution of this file, with or without modification,
1203 are permitted in any medium without royalty provided the copyright
1204 notice and this notice are preserved.
1210 version-control: never