1 2018-07-09 Alan Modra <amodra@gmail.com>
3 * elf32-m68hc1x.c (elf32_m68hc11_post_process_headers): Call
4 _bfd_elf_post_process_headers.
6 2018-07-06 Max Filippov <jcmvbkbc@gmail.com>
8 * elf32-xtensa.c (elf_xtensa_allocate_dynrelocs): Don't allocate
9 space for dynamic relocation for undefined weak symbol.
10 (elf_xtensa_relocate_section): Don't emit R_XTENSA_RELATIVE
11 relocation for undefined weak symbols.
12 (shrink_dynamic_reloc_sections): Don't shrink dynamic relocation
13 section for relocations against undefined weak symbols.
15 2018-07-06 Alan Hayward <alan.hayward@arm.com>
17 * elf.c (elfcore_grok_aarch_sve): New function.
18 (elfcore_grok_note): Check for Aarch64 SVE.
19 (elfcore_write_aarch_sve): New function.
20 (elfcore_write_register_note): Check for Aarch64 SVE.
21 * elf-bfd.h(elfcore_grok_aarch_sve): New declaration.
23 2018-07-06 Alan Modra <amodra@gmail.com>
25 * elf32-arm.c (elf32_arm_nabi_write_core_note): Don't use
26 DIAGNOTIC_PUSH and DIAGNOSTIC_POP unconditionally.
27 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
28 * elf32-s390.c (elf_s390_write_core_note): Likewise.
29 * elf64-ppc.c (ppc64_elf_write_core_note): Likewise.
30 * elf64-s390.c (elf_s390_write_core_note): Likewise.
31 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
33 2018-07-05 Jim Wilson <jimw@sifive.com>
35 * config.bfd (riscv32*-*-*): Renamed from riscv32-*-*.
36 (riscv64*-*-*): Likewise.
37 (riscv-*-*): Add as an alias for riscv32*-*-*.
39 2018-07-05 H.J. Lu <hongjiu.lu@intel.com>
42 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Remove x86
43 ISA properties with empty bits.
45 2018-07-05 Nick Clifton <nickc@redhat.com>
47 * po/ru.po: Updated Russian translation.
49 2018-07-05 Alan Modra <amodra@gmail.com>
51 * elf-bfd.h (_bfd_elf_ppc_merge_fp_attributes): Update prototype.
52 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Return error
53 on mismatch. Remove "warning: " from messages. Track last bfd
55 (ppc_elf_merge_obj_attributes): Likewise. Handle status from
56 _bfd_elf_ppc_merge_fp_attributes.
57 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data): Handle status
58 from _bfd_elf_ppc_merge_fp_attributes.
60 2018-07-04 H.J. Lu <hongjiu.lu@intel.com>
62 * Makefile.am (bfdinclude_HEADERS): Add $(INCDIR)/diagnostics.h.
63 * Makefile.in: Regenerated.
65 2018-07-03 Alan Modra <amodra@gmail.com>
67 * elflink.c (bfd_elf_final_link): Remove zero size .gnu.attributes
70 2018-07-03 Alan Modra <amodra@gmail.com>
72 * elf-bfd.h (ATTR_TYPE_FLAG_ERROR, ATTR_TYPE_HAS_ERROR): Define.
73 * elf-attrs.c (is_default_attr): Handle ATTR_TYPE_HAS_ERROR.
74 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Use
75 ATTR_TYPE_FLAG_INT_VAL. Set ATTR_TYPE_HAS_ERROR on finding
76 incompatible attribute.
77 (ppc_elf_merge_obj_attributes): Likewise. Return
78 _bfd_elf_merge_object_attributes result.
79 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data): Return
80 _bfd_elf_merge_object_attributes result.
82 2018-07-03 Alan Modra <amodra@gmail.com>
85 * elflink.c (_bfd_elf_fix_symbol_flags): Hide dynamic symbols
86 in discarded sections.
88 2018-07-02 Maciej W. Rozycki <macro@mips.com>
90 * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Set
91 `mark' for symbols created from `mips_elf_dynsym_rtproc_names'
94 2018-07-02 Maciej W. Rozycki <macro@mips.com>
96 * elf64-mips.c (micromips_elf64_howto_table_rel): Add
97 R_MICROMIPS_HI0_LO16, R_MICROMIPS_TLS_GD, R_MICROMIPS_TLS_LDM,
98 R_MICROMIPS_TLS_DTPREL_HI16, R_MICROMIPS_TLS_DTPREL_LO16,
99 R_MICROMIPS_TLS_GOTTPREL, R_MICROMIPS_TLS_TPREL_HI16,
100 R_MICROMIPS_TLS_TPREL_LO16, R_MICROMIPS_GPREL7_S2 and
101 R_MICROMIPS_PC23_S2 relocation entries.
102 (micromips_elf64_howto_table_rela): Likewise.
103 (micromips_reloc_map): Likewise.
104 * elfn32-mips.c (elf_micromips_howto_table_rel): Likewise.
105 (elf_micromips_howto_table_rela): Likewise.
106 (micromips_reloc_map): Likewise.
108 2018-07-02 H.J. Lu <hongjiu.lu@intel.com>
111 * elf64-x86-64.c (elf_x86_64_relocate_section): Clear the
112 R_X86_64_converted_reloc_bit bit.
114 2018-07-02 Jeff Muizelaar <jrmuizel@gmail.com>
115 Tom Tromey <tom@tromey.com>
119 * mach-o.c (bfd_mach_o_fat_close_and_cleanup): New function.
120 (bfd_mach_o_close_and_cleanup): Redefine.
121 * archive.c (_bfd_unlink_from_archive_parent): New function,
123 (_bfd_archive_close_and_cleanup): ..here.
124 (bfd_generic_archive_p): Do not clear archive's format.
125 * libbfd-in.h (_bfd_unlink_from_archive_parent): Declare.
126 * libbfd.h: Regenerate.
128 2018-07-02 Thomas Preud'homme <thomas.preudhomme@arm.com>
130 * archures.c (bfd_mach_arm_5TEJ, bfd_mach_arm_6, bfd_mach_arm_6KZ,
131 bfd_mach_arm_6T2, bfd_mach_arm_6K, bfd_mach_arm_7, bfd_mach_arm_6M,
132 bfd_mach_arm_6SM, bfd_mach_arm_7EM, bfd_mach_arm_8, bfd_mach_arm_8R,
133 bfd_mach_arm_8M_BASE, bfd_mach_arm_8M_MAIN): Define.
134 * bfd-in2.h: Regenerate.
135 * cpu-arm.c (arch_info_struct): Add entries for above new
137 * elf32-arm.c (bfd_arm_get_mach_from_attributes): Add Tag_CPU_arch to
138 bfd_mach_arm mapping logic for pre Armv4 and Armv5TEJ and later
139 architectures. Force assert failure for any new Tag_CPU_arch value.
141 2018-07-02 Thomas Preud'homme <thomas.preudhomme@arm.com>
143 * doc/bfdint.texi: Use command-line consistently when used in a
145 * doc/bfdsumm.texi: Likewise.
147 2018-06-29 Maciej W. Rozycki <macro@mips.com>
149 * elfxx-mips.c (allocate_dynrelocs): Remove extraneous symbol
150 visibility check made for undefined weak symbols.
152 2018-06-26 Nick Clifton <nickc@redhat.com>
154 * po/uk.po: Updated Ukranian translation.
156 2018-06-25 Nick Clifton <nickc@redhat.com>
158 * elfnn-aarch64.c (_bfd_aarch64_erratum_835769_stub_name): Check
159 for malloc returning NULL.
160 (_bfd_aarch64_erratum_843419_fixup): Check for
161 _bfd_aarch64_erratum_835769_stub_name returning NULL.
163 2018-06-24 Nick Clifton <nickc@redhat.com>
165 * po/bfd.pot: Regenerate.
167 2018-06-24 Nick Clifton <nickc@redhat.com>
169 * version.m4: Update version string to 2.31.51.
170 * configure: Regenerate.
172 2018-06-24 Nick Clifton <nickc@redhat.com>
176 2018-06-21 Maciej W. Rozycki <macro@mips.com>
178 * elfxx-mips.c (_bfd_mips_elf_compact_eh_encoding)
179 (_bfd_mips_elf_cant_unwind_opcode): Correct formatting.
181 2018-06-21 Maciej W. Rozycki <macro@mips.com>
183 * elfxx-mips.c (_bfd_mips_post_process_headers): Keep
184 EI_ABIVERSION setting together.
186 2018-06-21 Maciej W. Rozycki <macro@mips.com>
188 * elfxx-mips.c (MIPS_LIBC_ABI_DEFAULT, MIPS_LIBC_ABI_MIPS_PLT)
189 (MIPS_LIBC_ABI_UNIQUE, MIPS_LIBC_ABI_MIPS_O32_FP64)
190 (MIPS_LIBC_ABI_MAX): New enumeration constants.
191 (_bfd_mips_post_process_headers): Use them in place of magic
194 2018-06-21 Jim Wilson <jimw@sifive.com>
196 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Update comment.
197 Use SYMBOL_REFERENCES_LOCAL. Add asserts for h->got.offset.
199 2018-06-21 Alan Modra <amodra@gmail.com>
201 * doc/Makefile.am (AUTOMAKE_OPTIONS): Add "foreign".
202 * doc/Makefile.in: Regenerate.
204 2018-06-20 Renlin Li <renlin.li@arm.com>
206 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use PG_OFFSET
207 to resolve BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC,
208 BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC,
209 BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC,
210 BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC,
211 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
212 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
213 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
214 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
216 2018-06-20 Nick Clifton <nickc@redhat.com>
219 * opncls.c (get_build_id): Check for a negative or excessive data
220 size in the build-id note.
222 2018-06-20 Nick Clifton <nickc@redhat.com>
225 * mach-o.c (cputype): New function.
226 (cpusubtype): New function.
227 (bfd_mach_o_bfd_print_private_data): New function. Dispalys the
228 values in the MACH-O file header.
229 (bfd_mach_o_bfd_copy_private_header_data): Copy the cputype and
230 cpusubtype fields from the input bfd's mach-o header to the output
232 * mach-o-target.c (bfd_mach_o_bfd_print_private_bfd_data):
233 Redefine to bfd_mach_o_bfd_print_private_data.
234 * mach-o.h (bfd_mach_o_bfd_print_private_bfd_data): Prototype.
236 2018-06-19 Maciej W. Rozycki <macro@mips.com>
239 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Verify the
240 `.got.plt' entry referred is in range.
241 (mips_finish_exec_plt): Correct the range check for `.got.plt'
242 start. Replace the assertion used for that with a proper error
245 2018-06-19 Maciej W. Rozycki <macro@mips.com>
247 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Fix
250 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
252 * Makefile.am (AUTOMAKE_OPTIONS): Remove 1.11.
253 (INCLUDES): Rename to ...
254 (AM_CPPFLAGS): ... this.
255 * configure.ac: Remove AC_PREREQ.
256 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove 1.9, cygnus, add
257 info-in-builddir no-texinfo.tex.
258 (info_TEXINFOS): Rename bfd.texinfo to bfd.texi.
259 * doc/bfd.texinfo: Rename to ...
260 * doc/bfd.texi: ... this.
261 * Makefile.in: Re-generate.
262 * aclocal.m4: Re-generate.
263 * config.in: Re-generate.
264 * configure: Re-generate.
265 * doc/Makefile.in: Re-generate.
267 2018-06-18 Mephi <mephi42@gmail.com>
270 * mach-o-x86-64.c (x86_64_howto_table): Add entry for
271 BFD_RELOC_MACH_O_X86_64_RELOC_TLV.
272 (bfd_mach_o_x86_64_canonicalize_one_reloc): Handle the new reloc.
273 (bfd_mach_o_x86_64_swap_reloc_out): Likewise.
274 * reloc.c (BFD_RELOC_MACH_O_X86_64_TV): New entry.
275 * bfd-in2.h: Regenerate.
276 * libbfd.h: Regenerate.
278 2018-06-14 Faraz Shahbazker <Faraz.Shahbazker@mips.com>
280 * elfxx-mips.c (print_mips_ases): Add GINV extension.
282 2018-06-14 H.J. Lu <hongjiu.lu@intel.com>
285 * elf.c (_bfd_elf_get_symbol_version_string): Check if the first
286 symbol version is base version.
288 2018-06-14 Alan Modra <amodra@gmail.com>
290 * elf-bfd.h (struct elf_link_hash_table): Add "dynamic_relocs".
291 * elflink.c (_bfd_elf_init_2_index_sections): Comment fix.
292 (_bfd_elf_add_dynamic_entry): Set "dynamic_relocs".
293 (_bfd_elf_link_renumber_dynsyms): Exclude all section symbols when
294 "dynamic_relocs" is not set.
295 * elfxx-mips.c (count_section_dynsyms): Likewise.
297 2018-06-14 Alan Modra <amodra@gmail.com>
300 * bfdio.c (bfd_seek): Optimize away seeks to current position.
302 2018-06-13 Scott Egerton <scott.egerton@imgtec.com>
303 Faraz Shahbazker <Faraz.Shahbazker@mips.com>
305 * elfxx-mips.c (print_mips_ases): Add CRC.
307 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
310 * elfxx-x86.c (elf_x86_hide_linker_defined): New function.
311 (_bfd_x86_elf_link_check_relocs): Use it to hide hidden
312 __bss_start, _end and _edata in shared libraries.
314 2018-06-07 Alan Modra <amodra@gmail.com>
316 * elf32-tic6x.c (elf32_tic6x_check_relocs): Reference
317 __c6xabi_DSBT_BASE explicitly for R_C6000_SBR_* relocs.
319 2018-06-05 Alan Modra <amodra@gmail.com>
321 * bfd.c (struct bfd): Update comment on "where" usage.
322 * bfdio.c (bfd_bwrite, bfd_stat): Use and update "iovec",
323 "iostream", and "where" from containing archive file. Return
325 (bfd_bread): Similarly, and return error attempted out of
326 bounds archive element access.
327 (bfd_tell, bfd_flush): Use and update "iovec", "iostream", and
328 "where" from containing archive file.
329 (bfd_seek): Likewise. Return error on NULL iovec. Don't
330 attempt to optimize away seeks. Don't paper over errors by
332 (bfd_get_mtime): Call bfd_stat rather than iovec->bstat.
333 (bfd_get_size): Likewise.
334 (bfd_mmap): Operate on and use iovec of containing archive
335 file. Return error on NULL iovec.
336 * cache.c (bfd_cache_lookup_worker): Abort if working on
338 (cache_bread_1): Delete bfd parameter, add FILE* parameter.
339 Don't ignore zero byte reads.
340 (cache_bread): Look up FILE* in cache here. Error on NULL
342 (cache_bwrite): Rename "where" to "from".
343 (cache_bmmap): Don't handle archive elements.
344 * coffcode.h (coff_slurp_line_table): Exit early on zero
346 * bfd-in2.h: Regenerate.
348 2018-06-05 Alan Modra <amodra@gmail.com>
351 * plugin.c (bfd_plugin_open_input): Allow for possibility of
352 nested archives. Open file again for plugin.
353 (try_claim): Don't save and restore file position. Close file
355 * sysdep.h (O_BINARY): Define.
357 2018-06-04 Max Filippov <jcmvbkbc@gmail.com>
359 * elf32-xtensa.c (xtensa_read_table_entries): Make global.
360 (compute_fill_extra_space): Drop declaration. Rename function to
361 xtensa_compute_fill_extra_space.
362 (compute_ebb_actions, remove_dead_literal): Update references to
363 compute_fill_extra_space.
365 2018-06-04 Volodymyr Arbatov <arbatov@cadence.com>
367 * elf32-xtensa.c (elf32xtensa_separate_props): New global
369 (xtensa_add_names): New function.
370 (xtensa_property_section_name): Add new parameter
371 separate_sections, use it to choose property section name.
372 (xtensa_get_separate_property_section): New function.
373 (xtensa_get_property_section): Invoke
374 xtensa_get_separate_property_section to get individual property
375 section if it exists, common property section otherwise.
376 (xtensa_make_property_section): Pass elf32xtensa_separate_props
377 to xtensa_property_section_name.
379 2018-06-04 H.J. Lu <hongjiu.lu@intel.com>
382 * bfd-in.h: Include "diagnostics.h".
383 * bfd-in2.h: Regenerated.
384 * elf32-arm.c (elf32_arm_nabi_write_core_note): Use
385 DIAGNOSTIC_PUSH, DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION and
386 DIAGNOSTIC_POP to silence GCC 8.1 warnings with
387 -Wstringop-truncation.
388 * elf32-ppc.c (ppc_elf_write_core_note): Likewse.
389 * elf32-s390.c (elf_s390_write_core_note): Likewse.
390 * elf64-ppc.c (ppc64_elf_write_core_note): Likewse.
391 * elf64-s390.c (elf_s390_write_core_note): Likewse.
392 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewse.
394 2018-06-03 Jim Wilson <jimw@sifive.com>
397 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Check
398 for and handle an undefined weak with no PLT.
401 * elfnn-riscv.c (riscv_relax_delete_bytes): Add versioned_hidden check
402 to code that ignores duplicate symbols.
404 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
406 * version.m4: Bump version to 2.30.52
407 * configure: Regenerated.
409 2018-06-01 Alan Modra <amodra@gmail.com>
411 * bfd.c (_bfd_error_handler): Arrange for this function to be
412 declared in bfd-in2.h.
413 * libbfd-in.h (_bfd_error_handler): Don't declare.
414 * libbfd.h: Regenerate.
415 * bfd-in2.h: Regenerate.
417 2018-05-30 Amaan Cheval <amaan.cheval@gmail.com>
419 * config.bfd (x86_64-*-*): Add pei-x86-64 target to x86_64-*-rtems*
420 This is needed to generate UEFI application image files from ELFs.
422 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
424 * elf32-i386.c (elf_i386_lazy_plt): Add plt_tlsdesc_entry,
425 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
426 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
427 plt_tlsdesc_got2_insn_end for TLSDESC entry.
428 (elf_i386_lazy_ibt_plt): Likewise.
429 (elf_i386_nacl_plt): Likewise.
430 * elf64-x86-64.c (tlsdesc_plt_entry): Moved and renamed to ...
431 (elf_x86_64_tlsdesc_plt_entry): This.
432 (elf_x86_64_lazy_plt): Add plt_tlsdesc_entry,
433 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
434 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
435 plt_tlsdesc_got2_insn_end for TLSDESC entry.
436 (elf_x86_64_lazy_bnd_plt): Likewise.
437 (elf_x86_64_lazy_ibt_plt): Likewise.
438 (elf_x32_lazy_ibt_plt): Likewise.
439 (elf_x86_64_nacl_plt): Likewise.
440 (elf_x86_64_finish_dynamic_sections): Use plt_tlsdesc_entry,
441 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
442 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
443 plt_tlsdesc_got2_insn_end to update TLSDESC entry.
444 * elfxx-x86.h (elf_x86_lazy_plt_layout): Update comments.
445 Add plt_tlsdesc_entry, plt_tlsdesc_entry_size,
446 plt_tlsdesc_got1_offset, plt_tlsdesc_got2_offset,
447 plt_tlsdesc_got1_insn_end and plt_tlsdesc_got2_insn_end.
448 (elf_x86_non_lazy_plt_layout): Update comments.
449 (elf_x86_plt_layout): Likewise.
451 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
454 * elf-s390-common.c (elf_s390_add_symbol_hook): Removed.
455 * elf32-arc.c (elf_arc_add_symbol_hook): Likewise.
456 (elf_backend_add_symbol_hook): Likewise.
457 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
458 (elf_backend_add_symbol_hook): Likewise.
459 * elf32-s390.c (elf_backend_add_symbol_hook): Likewise.
460 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
461 (elf_backend_add_symbol_hook): Likewise.
462 * elf64-s390.c (elf_backend_add_symbol_hook): Likewise.
463 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
464 * elfxx-aarch64.h (_bfd_aarch64_elf_add_symbol_hook): Likewise.
465 (elf_backend_add_symbol_hook): Likewise.
466 * elf32-arm.c (elf32_arm_add_symbol_hook): Remove STT_GNU_IFUNC
468 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
469 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
470 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
471 * elflink.c (elf_link_add_object_symbols): Set
472 elf_gnu_symbol_ifunc for STT_GNU_IFUNC symbols.
474 2018-05-26 H.J. Lu <hongjiu.lu@intel.com>
477 * elf-bfd.h (_bfd_elf_link_hide_sym_by_version): New.
478 * elflink.c (_bfd_elf_link_hide_versioned_symbol): New function.
479 Extracted from _bfd_elf_link_assign_sym_version.
480 (_bfd_elf_link_hide_sym_by_version): New function.
481 (_bfd_elf_link_assign_sym_version): Use
482 _bfd_elf_link_hide_versioned_symbol.
483 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Call
484 _bfd_elf_link_hide_sym_by_version instead of
485 bfd_hide_sym_by_version. Don't check unversioned symbol.
487 2018-05-25 Alan Modra <amodra@gmail.com>
489 * Makefile.in: Regenerate.
490 * po/SRC-POTFILES.in: Regenerate.
492 2018-05-25 Alan Modra <amodra@gmail.com>
494 * configure.ac (bfd_cv_hidden): Run test with -Werror in CFLAGS.
495 * configure: Regenerate.
497 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
499 * elf64-ppc.c (ppc64_elf_write_core_note): Add ATTRIBUTE_NONSTRING
502 2018-05-22 Alan Modra <amodra@gmail.com>
505 * elf32-hppa.c (hppa_get_stub_entry): Return NULL when link_sec
507 (elf32_hppa_size_stubs): Only create stubs for load, alloc, code
509 (final_link_relocate): Revert last change.
511 2018-05-22 Alan Modra <amodra@gmail.com>
514 * elf32-hppa.c (final_link_relocate): Don't look for plt call
515 stubs in non-alloc sections.
517 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
520 * aout-target.h (MY_bfd_link_hide_symbol): New.
521 * aout-tic30.c (MY_bfd_link_hide_symbol): Likewise.
522 * binary.c (binary_bfd_link_hide_symbol): Likewise.
523 * coff-alpha.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
524 * coff-mips.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
525 * coff-rs6000.c (_bfd_xcoff_bfd_link_hide_symbol): Likewise.
526 * coffcode.h (coff_bfd_link_hide_symbol): Likewise.
527 * elf-bfd.h (_bfd_elf_link_hide_symbol): Likewise.
528 * elfxx-target.h (bfd_elfNN_bfd_link_hide_symbol): Likewise.
529 * i386msdos.c (msdos_bfd_link_hide_symbol): Likewise.
530 * ihex.c (ihex_bfd_link_hide_symbol): Likewise.
531 * libbfd-in.h (_bfd_nolink_bfd_link_hide_symbol): Likewise.
532 * linker.c (_bfd_generic_link_hide_symbol): Likewise.
533 (bfd_link_hide_symbol): Likewise.
534 * mach-o-target.c (bfd_mach_o_bfd_link_hide_symbol): Likewise.
535 * mmo.c (mmo_bfd_link_hide_symbol): Likewise.
536 * pef.c (bfd_pef_bfd_link_hide_symbol): Likewise.
537 * plugin.c (bfd_plugin_bfd_link_hide_symbol): Likewise.
538 * ppcboot.c (ppcboot_bfd_link_hide_symbol): Likewise.
539 * som.c (som_bfd_link_hide_symbol): Likewise.
540 * srec.c (srec_bfd_link_hide_symbol): Likewise.
541 * tekhex.c (tekhex_bfd_link_hide_symbol): Likewise.
542 * vms-alpha.c (vms_bfd_link_hide_symbol): Likewise.
543 (alpha_vms_bfd_link_hide_symbol): Likewise.
544 * xsym.c (bfd_sym_bfd_link_hide_symbol): Likewise.
545 * coff64-rs6000.c (rs6000_xcoff64_vec): Add
546 _bfd_generic_link_hide_symbol.
547 (rs6000_xcoff64_aix_vec): Likewise.
548 * elflink.c (bfd_elf_record_link_assignment): Don't make forced
549 local symbol dynamic.
550 (_bfd_elf_link_hide_symbol): New function.
551 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
552 check root.ldscript_def.
553 * targets.c (bfd_target): Add _bfd_link_hide_symbol.
554 (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_link_hide_symbol.
555 * bfd-in2.h: Regenerated.
556 * libbfd.h: Likewise.
558 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
561 * elf.c (setup_group): Mark section in a section group with
564 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
567 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
568 set eh->local_ref to 1 if a symbol is versioned and there is a
571 2018-05-18 Kito Cheng <kito.cheng@gmail.com>
573 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Handle
576 2018-05-18 Jim Wilson <jimw@sifive.com>
578 * elfnn-riscv.c (allocate_dynrelocs): Discard dynamic relocations if
579 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
580 (riscv_elf_relocate_section): Don't generate dynamic relocation if
581 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
582 (riscv_elf_finish_dynamic_symbol): Likewise.
584 2018-05-18 John Darrington <john@darrington.wattle.id.au>
586 * Makefile.am: Add s12z files.
587 * Makefile.in: Regenerate.
588 * archures.c: Add bfd_s12z_arch.
589 * bfd-in.h: Add exports of bfd_putb24 and bfd_putl24.
590 * bfd-in2.h: Regenerate.
591 * config.bfd: Add s12z target.
592 * configure.ac: Add s12z target.
593 * configure: Regenerate.
594 * cpu-s12z.c: New file.
595 * elf32-s12z.c: New file.
596 * libbfd.c (bfd_putb24): New function.
597 (bfd_putl24): New function.
598 * libbfd.h: Regenerate.
599 * reloc.c: Add s12z relocations.
600 (bfd_get_reloc_size): Handle size 5 relocs.
601 * targets.c: Add s12z_elf32_vec.
603 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
606 * elf32-i386.c (elf_i386_relocate_section): Handle R_386_GOT32X
608 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
609 set eh->local_ref to 1 for linker defined symbols.
611 2018-05-18 Alan Modra <amodra@gmail.com>
614 * elf.c (setup_group): Formatting. Check that SHT_GROUP entries
615 don't point at other SHT_GROUP sections. Set shdr corresponding
616 to invalid entry, to NULL rather than section 0. Identify
617 SHT_GROUP section index when reporting an error. Cope with NULL
620 2018-05-18 Alan Modra <amodra@gmail.com>
622 * libbfd-in.h (ATTRIBUTE_HIDDEN): Define and use throughout.
623 * configure.ac (HAVE_HIDDEN): Check compiler support for hidden
625 * libbfd.h: Regenerate.
626 * configure: Regenerate.
627 * config.in: Regenerate.
629 2018-05-18 Alan Modra <amodra@gmail.com>
631 * libbfd-in.h: Add include guard.
632 * libcoff-in.h: Likewise.
633 * doc/Makefile.am (libbfd.h, libcoff.h): Append another #endif.
634 * doc/Makefile.in: Regenerate.
635 * libbfd.h: Regenerate.
636 * libcoff.h: Regenerate.
638 2018-05-16 Maciej W. Rozycki <macro@mips.com>
640 * elf32-nds32.c (nds32_convert_32_to_16): Preset `insn_type'.
642 2018-05-16 Alan Modra <amodra@gmail.com>
645 * format.c (struct bfd_preserve): Add section_id.
646 (bfd_preserve_save, bfd_preserve_restore): Save and restore
648 (bfd_reinit): Set _bfd_section_id.
649 (bfd_check_format_matches): Put all matches of any priority into
650 matching_vector. Save initial section id and start each attempted
651 match at that section id.
652 * libbfd-in.h (_bfd_section_id): Declare.
653 * section.c (_bfd_section_id): Rename from section_id and make
655 (bfd_get_next_section_id): Delete.
656 * elf64-ppc.c (ppc64_elf_setup_section_lists): Replace use of
657 bfd_get_section_id with _bfd_section_id.
658 * libbfd.h: Regenerate.
659 * bfd-in2.h: Regenerate.
661 2018-05-15 Christophe Guillon <christophe.guillon@st.com>
663 * coffcode.h (coff_bigobj_swap_aux_in): Make sure that all fields
664 of the aux structure are initialised.
666 2018-05-15 Francois H. Theron <francois.theron@netronome.com>
668 * targets.c: Wrap nfp_elf64_vec in BFD64 ifdef.
670 2018-05-15 Nick Clifton <nickc@redhat.com>
672 * po/pt.po: New Portuguese translation.
673 * configure.ac (ALL_LINGUAS): Add pt.
674 * configure: Regenerate.
676 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
679 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Don't issue
680 an error on IFUNC pointer defined in PDE.
681 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Call
682 _bfd_x86_elf_link_fixup_ifunc_symbol.
683 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
684 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): New
686 * elfxx-x86.h (_bfd_x86_elf_link_fixup_ifunc_symbol): New.
688 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
691 * elfxx-x86.c (elf_x86_linker_defined): New function.
692 (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start,
693 _end and _edata locally defined within executables.
695 2018-05-12 Alan Modra <amodra@gmail.com>
698 * elf.c (rewrite_elf_program_header): Use segment_mark only for
699 PT_LOAD headers. Delete first_matching_lma and first_suggested_lma.
700 Instead make matching_lma and suggested_lma pointers to the
701 sections. Align section vma and lma calculated from segment.
702 Don't clear includes_phdrs or includes_filehdr based on p_paddr
703 test. Try to handle alignment padding before first section by
704 adjusting new segment lma down. Adjust PT_PHDR map p_paddr.
706 2018-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
708 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Make LDI32 relocation
709 conformant to TI ABI.
710 (pru_elf32_relax_section): Likewise.
711 (pru_elf_relax_delete_bytes): Fix offsets for new LDI32 code.
712 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Ignore addend.
713 (pru_elf32_pmem_relocate): Trap - should not get here.
714 (pru_elf32_relocate_section): Add support for REL relocations.
715 (elf_info_to_howto_rel): Enable REL.
716 (elf_backend_may_use_rel_p): Likewise.
717 (elf_backend_may_use_rela_p): Likewise.
718 (elf_backend_default_use_rela_p): Likewise.
720 2018-05-09 Alan Modra <amodra@gmail.com>
723 * peXXigen.c (pe_print_edata): Correct minimum size.
725 2018-05-09 Alan Modra <amodra@gmail.com>
728 * peXXigen.c (pe_print_idata): Bound check hint_addr.
730 2018-05-08 Nick Clifton <nickc@redhat.com>
733 * elf.c (bfd_elf_get_str_section): Check for an excessively large
735 * elf-attrs.c (_bfd_elf_parse_attributes): Issue an error if the
736 attribute section is larger than the size of the file.
738 2018-05-07 Alan Modra <amodra@gmail.com>
740 * cofflink.c (_bfd_coff_link_input_bfd): Use memcmp rather than
741 strncmp when checking for ".bf" special symbol.
742 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Make pe_required_section_flags
743 section name a char array, remove sentinal known_sections entry,
744 and adjust loop over known_sections to suit. Use memcmp rather
747 2018-05-04 Alan Modra <amodra@gmail.com>
749 * elf-linux-core.h (struct elf_external_linux_prpsinfo32_ugid32),
750 (struct elf_external_linux_prpsinfo32_ugid16),
751 (struct elf_external_linux_prpsinfo64_ugid32),
752 (struct elf_external_linux_prpsinfo64_ugid16): Add ATTRIBUTE_NONSTRING
753 to pr_fname and pr_psargs fields. Remove GCC diagnostic pragmas.
755 * elf.c (elfcore_write_prpsinfo): ..here. Indent nested preprocessor
757 * elf32-arm.c (elf32_arm_nabi_write_core_note): Add ATTRIBUTE_NONSTRING
759 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
760 * elf32-s390.c (elf_s390_write_core_note): Likewise.
761 * elf64-s390.c (elf_s390_write_core_note): Likewise.
762 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
763 * elf64-x86-64.c (elf_x86_64_write_core_note): Add GCC diagnostic
765 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Use strnlen to avoid
766 false positive gcc-8 warning.
767 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
769 2018-05-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
771 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Fix the order
772 of arguments when warning about different long double types.
774 2018-05-03 Simon Atanasyan <simon@atanasyan.com>
776 * elf32-mips.c: (elf32_mips_fixup_symbol): New function.
777 (elf_backend_fixup_symbol): New macro.
778 * elfxx-mips.c: (mips_elf_output_extsym): Discard _gp_disp
780 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
782 2018-04-30 Francois H. Theron <francois.theron@netronome.com>
784 * Makefile.am: Added NFP files to build.
785 * archures.c: Added bfd_arch_nfp
786 * config.bfd: Added NFP support.
787 * configure.ac: Added NFP support.
788 * cpu-nfp.c: New, for NFP support.
789 * elf-bfd.h: Added elf_section_info()
790 * elf64-nfp.c: New, for NFP support.
791 * po/SRC-POTFILES.in: Added NFP source files.
792 * targets.c: Added nfp_elf64_vec
793 * bfd-in2.h: Regenerate.
794 * Makefile.in: Regenerate.
795 * configure: Regenerate.
797 2018-04-27 Alan Modra <amodra@gmail.com>
799 * bfd-in2.h: Regenerate.
800 * libbfd.h: Regenerate.
802 2018-04-27 Alan Modra <amodra@gmail.com>
806 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't drop plt
808 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Comment fixes.
810 2018-04-26 Pedro Alves <palves@redhat.com>
812 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't consider
813 ifunc and non-ifunc symbols duplicates.
815 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
816 Mickaël Guêné <mickael.guene@st.com>
818 * elf32-arm.c (elf32_arm_fdpic_thumb_plt_entry): New.
819 (elf32_arm_plt_needs_thumb_stub_p): Handle thumb-only case.
820 (elf32_arm_populate_plt_entry): Likewise.
821 (elf32_arm_output_plt_map_1): Likewise.
822 (elf32_arm_output_arch_local_syms): Likewise.
824 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
825 Mickaël Guêné <mickael.guene@st.com>
827 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Handle
828 _GLOBAL_OFFSET_TABLE_ in FDPIC mode.
830 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
831 Mickaël Guêné <mickael.guene@st.com>
833 * elf32-arm.c (bfd_elf32_arm_set_target_params): Handle FDPIC case
836 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
837 Mickaël Guêné <mickael.guene@st.com>
839 * elf32-arm.c (DEFAULT_STACK_SIZE): New.
840 (elf32_arm_always_size_sections): Create stack segment.
842 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
843 Mickaël Guêné <mickael.guene@st.com>
845 * bfd-in2.h (BFD_RELOC_ARM_TLS_GD32_FDPIC)
846 (BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC): New
848 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_TLS_GD32_FDPIC,
849 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC relocations.
850 (elf32_arm_reloc_map): Add R_ARM_TLS_GD32_FDPIC,
851 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC.
852 (struct elf32_arm_link_hash_table): Update comment.
853 (elf32_arm_final_link_relocate): Handle TLS FDPIC relocations.
854 (IS_ARM_TLS_RELOC): Likewise.
855 (elf32_arm_check_relocs): Likewise.
856 (allocate_dynrelocs_for_symbol): Likewise.
857 (elf32_arm_size_dynamic_sections): Update comment.
858 * reloc.c: Add BFD_RELOC_ARM_TLS_GD32_FDPIC,
859 BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC.
861 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
862 Mickaël Guêné <mickael.guene@st.com>
864 * elf32-arm.c (elf32_arm_fdpic_plt_entry): New.
865 (elf32_arm_create_dynamic_sections): Handle FDPIC.
866 (elf32_arm_allocate_plt_entry): Likewise.
867 (elf32_arm_populate_plt_entry): Likewise.
868 (elf32_arm_output_plt_map_1): Likewise.
870 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
871 Mickaël Guêné <mickael.guene@st.com>
873 * elf32-arm.c (struct fdpic_local): New.
874 (elf_arm_obj_tdata): Add local_fdpic_cnts field.
875 (elf32_arm_local_fdpic_cnts): New.
876 (struct fdpic_global): New.
877 (elf32_arm_link_hash_entry): Add fdpic_cnts field.
878 (elf32_arm_link_hash_table): Add srofixup field.
879 (arm_elf_add_rofixup): New.
880 (arm_elf_fill_funcdesc): New.
881 (elf32_arm_link_hash_newfunc): Handle fdpic_cnts.
882 (elf32_arm_allocate_local_sym_info): Likewise.
883 (create_got_section): Create .rofixup section.
884 (elf32_arm_copy_indirect_symbol): Handle fdpic_cnts.
885 (bfd_elf32_arm_set_target_params): Handle FDPIC.
886 (elf32_arm_final_link_relocate): Likewise.
887 (elf32_arm_check_relocs): Likewise.
888 (allocate_dynrelocs_for_symbol): Likewise.
889 (elf32_arm_size_dynamic_sections): Likewise.
890 (elf32_arm_finish_dynamic_sections): Likewise.
891 (elf32_arm_output_arch_local_syms): Likewise.
892 (elf32_arm_fdpic_omit_section_dynsym): New.
894 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
895 Mickaël Guêné <mickael.guene@st.com>
897 * bfd-in2.c (BFD_RELOC_ARM_GOTFUNCDESC)
898 (BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC)
899 (BFD_RELOC_ARM_FUNCDESC_VALUE): New.
900 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_GOTFUNCDESC,
901 R_ARM_GOTOFFFUNCDESC, R_ARM_FUNCDESC, R_ARM_FUNCDESC_VALUE.
902 (elf32_arm_howto_from_type): Take new members of
903 elf32_arm_howto_table_2 into account.
904 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_GOTFUNCDESC,
905 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
906 BFD_RELOC_ARM_FUNCDESC_VALUE.
907 * reloc.c: Add BFD_RELOC_ARM_GOTFUNCDESC,
908 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
909 BFD_RELOC_ARM_FUNCDESC_VALUE.
911 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
912 Mickaël Guêné <mickael.guene@st.com>
914 * elf32-arm.c (elf32_arm_print_private_bfd_data): Support
915 EF_ARM_PIC and ELFOSABI_ARM_FDPIC.
916 (elf32_arm_post_process_headers): Support ELFOSABI_ARM_FDPIC.
917 (ELF_OSABI): Define to ELFOSABI_ARM_FDPIC.
919 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
920 Mickaël Guêné <mickael.guene@st.com>
922 * config.bfd (arm*-*-linux-*): Add arm_elf32_fdpic_be_vec and
923 arm_elf32_fdpic_le_vec to targ_selvecs. Accept
924 arm*-*-uclinuxfdpiceabi.
925 * configure.ac: Add support for arm_elf32_fdpic_be_vec and
926 arm_elf32_fdpic_le_vec.
927 * configure: Regenerate.
928 * elf32-arm.c (struct elf32_arm_link_hash_table): Add fdpic_p.
929 (elf32_arm_link_hash_table_create): Initialize fdpic_p.
930 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM)
931 (TARGET_BIG_NAME, elf_match_priority): Define for FDPIC targets.
932 (elf32_arm_fdpic_link_hash_table_create): New.
933 * targets.c (_bfd_target_vector): Add arm_elf32_fdpic_be_vec and
934 arm_elf32_fdpic_le_vec.
936 2018-04-25 Alan Modra <amodra@gmail.com>
938 * elf-linux-core.h: Disable gcc-8 string truncation warning.
939 * elf.c (elfcore_write_prpsinfo): Likewise.
941 2018-04-25 Alan Modra <amodra@gmail.com>
943 * Makefile.am: Remove arm-aout and arm-coff support.
944 * config.bfd: Likewise.
945 * configure.ac: Likewise.
946 * targets.c: Likewise.
947 * aout-arm.c: Delete.
948 * armnetbsd.c: Delete.
950 * Makefile.in: Regenerate.
951 * configure: Regenerate.
952 * po/SRC-POTFILES.in: Regenerate.
954 2018-04-24 Nick Clifton <nickc@redhat.com>
957 * elf.c (ignore_section_sym): Check for the output_section pointer
958 being NULL before dereferencing it.
961 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check for
962 a negative PE_DEBUG_DATA size before iterating over the debug data.
964 2018-04-23 Alan Modra <amodra@gmail.com>
966 * elf-linux-core.h: Revert last change.
969 2018-04-23 Nick Clifton <nickc@redhat.com>
972 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
973 the end of the string table, and zero it.
975 2018-04-23 Alan Modra <amodra@gmail.com>
977 * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable
978 gcc-8 string truncation warning.
979 (swap_linux_prpsinfo32_ugid16_out): Likewise.
980 (swap_linux_prpsinfo64_ugid32_out): Likewise.
981 (swap_linux_prpsinfo64_ugid16_out): Likewise.
982 * elf.c (elfcore_write_prpsinfo): Likewise.
984 2018-04-23 Nick Clifton <nickc@redhat.com>
987 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
988 the end of the string table, and zero it.
990 2018-04-20 Alan Modra <amodra@gmail.com>
993 * elf32-hppa.c (got_relocs_needed): Add extra param to special
994 case both dtprel and tprel relocs.
995 (allocate_dynrelocs): Adjust conditions for got relocs.
996 (elf32_hppa_relocate_section): Likewise for local sym got relocs.
997 Emit dynamic relocs on TLS GOT entries for shared libraries,
998 not when pic. Omit dynamic reloc on dtprel entry when local,
999 and on tprel entry when local and executable.
1001 2018-04-19 Alan Modra <amodra@gmail.com>
1004 * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1.
1005 (hppa_type_of_stub): Don't return a long branch stub for
1006 symbols other than those defined statically.
1008 2018-04-19 Alan Modra <amodra@gmail.com>
1010 * Makefile.am: Revert 2018-04-18 coff-mips changes.
1011 * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec
1012 to selvecs for mips targets change 2018-04-18.
1013 * configure.ac: Reinstate mips_ecoff_le_vec, mips_ecoff_be_vec
1014 and mips_ecoff_bele_vec.
1015 * targets.c: Likewise.
1016 * coff-mips.c: Resurrect.
1017 * Makefile.in: Regenerate.
1018 * configure: Regenerate.
1019 * po/SRC-POTFILES.in: Regenerate.
1021 2018-04-18 Alan Modra <amodra@gmail.com>
1023 * Makefile.am: Remove mips aout and coff support.
1024 * config.bfd: Likewise.
1025 * configure.ac: Likewise.
1026 * targets.c: Likewise.
1027 * coff-mips.c: Delete
1030 * pei-mips.c: Delete
1031 * Makefile.in: Regenerate.
1032 * configure: Regenerate.
1033 * po/SRC-POTFILES.in: Regenerate.
1035 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
1037 * elf32-i386.c (elf32_bed): Define before including
1039 * elf64-x86-64.c (elf64_bed): Define before including
1041 (elf32_bed): Define before including "elf32-target.h".
1043 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
1046 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a
1047 normal input file with compatible relocation.
1049 2018-04-18 Alan Modra <amodra@gmail.com>
1051 * Makefile.am: Remove support for assorted i386 aout and coff targets.
1052 * config.bfd: Likewise.
1053 * configure.ac: Likewise.
1054 * doc/bfdint.texi: Likewise.
1055 * targets.c: Likewise.
1056 * freebsd.h: Delete.
1057 * i386dynix.c: Delete.
1058 * i386freebsd.c: Delete.
1059 * i386linux.c: Delete.
1060 * i386mach3.c: Delete.
1061 * i386netbsd.c: Delete.
1062 * i386os9k.c: Delete.
1063 * Makefile.in: Regenerate.
1064 * configure: Regenerate.
1065 * po/SRC-POTFILES.in: Regenerate.
1067 2018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com>
1069 Microblaze Target: PIC data text relative
1071 * bfd/reloc.c (2 new BFD relocations):
1072 BFD_RELOC_MICROBLAZE_64_TEXTPCREL &
1073 BFD_RELOC_MICROBLAZE_64_TEXTPCREL
1074 * bfd/bfd-in2.h: Regenerate
1075 * bfd/libbfd.h: Regenerate
1076 * bfd/elf32-microblaze.c (Handle new relocs): define 'HOWTO' of 3
1077 new relocs and handle them in both relocate and relax functions.
1078 (microblaze_elf_reloc_type_lookup): add mapping between for new
1080 (microblaze_elf_relocate_section): Handle new relocs in case of
1082 (microblaze_elf_relax_section): Handle new relocs for elf relaxation.
1084 2018-04-17 Nick Clifton <nickc@redhat.com>
1087 * aoutx.h (find_nearest_line): Check that the symbol name exists
1088 and is long enough, before attempting to see if it is for a .o
1090 * hash.c (bfd_hash_hash): Add an assertion that the string is not
1092 * linker.c (bfd_link_hash_lookup): Fail if the table or string are
1094 (_bfd_generic_link_add_archive_symbols): Fail if an archive entry
1098 * dwarf2.c (concat_filename): Check for a NULL table pointer.
1100 2018-04-16 Nick Clifton <nickc@redhat.com>
1103 * coffgen.c (coff_pointerize_aux): Check for an out of range
1106 2018-04-16 Alan Modra <amodra@gmail.com>
1108 * Makefile.am: Remove arm-epoc-pe support.
1109 * coff-arm.c: Likewise.
1110 * config.bfd: Likewise.
1111 * configure.ac: Likewise.
1112 * targets.c: Likewise.
1113 * epoc-pe-arm.c: Delete.
1114 * epoc-pei-arm.c: Delete.
1115 * Makefile.in: Regenerate.
1116 * configure: Regenerate.
1117 * po/SRC-POTFILES.in: Regenerate.
1119 2018-04-16 Alan Modra <amodra@gmail.com>
1121 * Makefile.am: Remove sparc-aout and sparc-coff support.
1122 * config.bfd: Likewise.
1123 * configure.ac: Likewise.
1124 * targets.c: Likewise.
1125 * aout-sparcle.c: Delete.
1127 * cf-sparclynx.c: Delete.
1128 * coff-sparc.c: Delete.
1130 * sparclinux.c: Delete.
1131 * sparclynx.c: Delete.
1132 * sparcnetbsd.c: Delete.
1134 * Makefile.in: Regenerate.
1135 * configure: Regenerate.
1136 * po/SRC-POTFILES.in: Regenerate.
1138 2018-04-16 Alan Modra <amodra@gmail.com>
1140 * Makefile.am: Remove m68k-aout and m68k-coff support.
1141 * aoutf1.h: Likewise.
1142 * aoutx.h: Likewise.
1143 * archive.c: Likewise.
1144 * bfd-in.h: Likewise.
1146 * coffcode.h: Likewise.
1147 * coffswap.h: Likewise.
1148 * config.bfd: Likewise.
1149 * configure.ac: Likewise.
1150 * configure.host: Likewise.
1151 * doc/bfd.texinfo: Likewise.
1152 * doc/bfdint.texi: Likewise.
1153 * freebsd.h: Likewise.
1154 * gen-aout.c: Likewise.
1155 * hpux-core.c: Likewise.
1156 * libaout.h: Likewise.
1157 * libbfd-in.h: Likewise.
1158 * pdp11.c: Likewise.
1159 * peicode.h: Likewise.
1160 * riscix.c: Likewise.
1161 * targets.c: Likewise.
1163 * coff-apollo.c: Delete.
1164 * coff-aux.c: Delete.
1165 * coff-m68k.c: Delete.
1166 * coff-svm68k.c: Delete.
1167 * coff-u68k.c: Delete.
1168 * hosts/delta68.h: Delete.
1169 * hosts/hp300bsd.h: Delete.
1170 * hosts/m68kaux.h: Delete.
1171 * hosts/news.h: Delete.
1172 * hp300bsd.c: Delete.
1173 * hp300hpux.c: Delete.
1174 * liboasys.h: Delete.
1175 * m68k4knetbsd.c: Delete.
1176 * m68klinux.c: Delete.
1177 * m68knetbsd.c: Delete.
1179 * versados.c: Delete.
1180 * Makefile.in: Regenerate.
1181 * bfd-in2.h: Regenerate.
1182 * configure: Regenerate.
1183 * libbfd.h: Regenerate.
1184 * po/SRC-POTFILES.in: Regenerate.
1186 2018-04-16 Alan Modra <amodra@gmail.com>
1188 * Makefile.am: Remove sh5 and sh64 support.
1189 * archures.c: Likewise.
1190 * config.bfd: Likewise.
1191 * configure.ac: Likewise.
1192 * cpu-sh.c: Likewise.
1193 * elf32-sh-relocs.h: Likewise.
1194 * elf32-sh.c: Likewise.
1195 * targets.c: Likewise.
1196 * elf32-sh64-com.c: Delete.
1197 * elf32-sh64.c: Delete.
1198 * elf32-sh64.h: Delete.
1199 * elf64-sh64.c: Delete.
1200 * Makefile.in: Regenerate.
1201 * bfd-in2.h: Regenerate.
1202 * configure: Regenerate.
1203 * po/SRC-POTFILES.in: Regenerate.
1205 2018-04-16 Alan Modra <amodra@gmail.com>
1207 * Makefile.am: Remove sh-symbianelf support.
1208 * config.bfd: Likewise.
1209 * configure.ac: Likewise.
1210 * targets.c: Likewise.
1211 * elf32-sh-symbian.c: Delete.
1212 * Makefile.in: Regenerate.
1213 * configure: Regenerate.
1214 * po/SRC-POTFILES.in: Regenerate.
1216 2018-04-16 Alan Modra <amodra@gmail.com>
1218 * Makefile.am: Remove vax-bsd and vax-ultrix support.
1219 * config.bfd: Likewise.
1220 * configure.ac: Likewise.
1221 * targets.c: Likewise.
1223 * Makefile.in: Regenerate.
1224 * configure: Regenerate.
1225 * po/SRC-POTFILES.in: Regenerate.
1227 2018-04-16 Alan Modra <amodra@gmail.com>
1229 * Makefile.am: Remove w65 support.
1230 * archures.c: Likewise.
1231 * coffcode.h: Likewise.
1232 * config.bfd: Likewise.
1233 * configure.ac: Likewise.
1234 * targets.c: Likewise.
1235 * coff-w65.c: Delete.
1236 * cpu-w65.c: Delete.
1237 * Makefile.in: Regenerate.
1238 * bfd-in2.h: Regenerate.
1239 * configure: Regenerate.
1240 * po/SRC-POTFILES.in: Regenerate.
1242 2018-04-16 Alan Modra <amodra@gmail.com>
1244 * Makefile.am: Remove we32k support.
1245 * archures.c: Likewise.
1246 * coffcode.h: Likewise.
1247 * config.bfd: Likewise.
1248 * configure.ac: Likewise.
1249 * targets.c: Likewise.
1250 * coff-we32k.c: Delete.
1251 * cpu-we32k.c: Delete.
1252 * Makefile.in: Regenerate.
1253 * bfd-in2.h: Regenerate.
1254 * configure: Regenerate.
1255 * po/SRC-POTFILES.in: Regenerate.
1257 2018-04-16 Alan Modra <amodra@gmail.com>
1259 * Makefile.am: Remove m88k support.
1260 * aoutx.h: Likewise.
1261 * archures.c: Likewise.
1262 * coffcode.h: Likewise.
1263 * coffswap.h: Likewise.
1264 * config.bfd: Likewise.
1265 * configure.ac: Likewise.
1266 * cpu-ns32k.c: Likewise.
1267 * elf32-nds32.c: Likewise.
1268 * mach-o.c: Likewise.
1269 * netbsd-core.c: Likewise.
1270 * reloc.c: Likewise.
1271 * targets.c: Likewise.
1272 * coff-m88k.c: Delete.
1273 * cpu-m88k.c: Delete.
1274 * elf32-m88k.c: Delete.
1275 * hosts/m88kmach3.h: Delete.
1276 * m88kmach3.c: Delete.
1277 * m88kopenbsd.c: Delete.
1278 * Makefile.in: Regenerate.
1279 * bfd-in2.h: Regenerate.
1280 * configure: Regenerate.
1281 * po/SRC-POTFILES.in: Regenerate.
1283 2018-04-16 Alan Modra <amodra@gmail.com>
1285 * Makefile.am: Remove i370 support.
1286 * archures.c: Likewise.
1287 * config.bfd: Likewise.
1288 * configure.ac: Likewise.
1289 * targets.c: Likewise.
1290 * cpu-i370.c: Delete.
1291 * elf32-i370.c: Delete.
1292 * Makefile.in: Regenerate.
1293 * bfd-in2.h: Regenerate.
1294 * configure: Regenerate.
1295 * po/SRC-POTFILES.in: Regenerate.
1297 2018-04-16 Alan Modra <amodra@gmail.com>
1299 * Makefile.am: Remove h8500 support.
1300 * archures.c: Likewise.
1301 * coffcode.h: Likewise.
1302 * config.bfd: Likewise.
1303 * configure.ac: Likewise.
1304 * targets.c: Likewise.
1305 * coff-h8500.c: Delete.
1306 * cpu-h8500.c: Delete.
1307 * Makefile.in: Regenerate.
1308 * bfd-in2.h: Regenerate.
1309 * configure: Regenerate.
1310 * po/SRC-POTFILES.in: Regenerate.
1312 2018-04-16 Alan Modra <amodra@gmail.com>
1314 * Makefile.am: Remove h8300-coff support.
1315 * coffcode.h: Likewise.
1316 * config.bfd: Likewise.
1317 * configure.ac: Likewise.
1318 * reloc16.c: Likewise.
1319 * targets.c: Likewise.
1320 * coff-h8300.c: Delete.
1321 * Makefile.in: Regenerate.
1322 * configure: Regenerate.
1323 * po/SRC-POTFILES.in: Regenerate.
1325 2018-04-16 Alan Modra <amodra@gmail.com>
1327 * Makefile.am: Remove IEEE 695 support.
1328 * archures.c: Likewise.
1330 * config.bfd: Likewise.
1331 * configure.ac: Likewise.
1332 * doc/bfd.texinfo: Likewise.
1333 * doc/bfdint.texi: Likewise.
1334 * doc/bfdsumm.texi: Likewise.
1335 * section.c: Likewise.
1336 * targets.c: Likewise.
1338 * libieee.h: Delete.
1339 * Makefile.in: Regenerate.
1340 * bfd-in2.h: Regenerate.
1341 * configure: Regenerate.
1342 * po/SRC-POTFILES.in: Regenerate.
1344 2018-04-16 Alan Modra <amodra@gmail.com>
1346 * config.bfd: Remove tandem support.
1348 2018-04-16 Alan Modra <amodra@gmail.com>
1350 * Makefile.am: Remove newsos3 support.
1351 * aoutx.h: Likewise.
1352 * config.bfd: Likewise.
1353 * configure.ac: Likewise.
1354 * targets.c: Likewise.
1355 * newsos3.c: Delete.
1356 * Makefile.in: Regenerate.
1357 * configure: Regenerate.
1358 * po/SRC-POTFILES.in: Regenerate.
1360 2018-04-16 Alan Modra <amodra@gmail.com>
1362 * Makefile.am: Remove netware support.
1363 * bfd-in.h: Likewise.
1365 * config.bfd: Likewise.
1366 * configure.ac: Likewise.
1367 * doc/bfdint.texi: Likewise.
1368 * ecoff.c: Likewise.
1369 * targets.c: Likewise.
1371 * nlm-target.h: Delete.
1373 * nlm32-alpha.c: Delete.
1374 * nlm32-i386.c: Delete.
1375 * nlm32-ppc.c: Delete.
1376 * nlm32-sparc.c: Delete.
1379 * nlmcode.h: Delete.
1380 * nlmswap.h: Delete.
1381 * Makefile.in: Regenerate.
1382 * bfd-in2.h: Regenerate.
1383 * configure: Regenerate.
1384 * po/SRC-POTFILES.in: Regenerate.
1386 2018-04-16 Alan Modra <amodra@gmail.com>
1388 * archures.c: Remove tahoe support.
1389 * config.bfd: Likewise.
1390 * configure.ac: Likewise.
1391 * hosts/tahoe.h: Delete.
1392 * bfd-in2.h: Regenerate.
1393 * configure: Regenerate.
1395 2018-04-14 Alan Modra <amodra@gmail.com>
1397 * elf-bfd.h (struct elf_backend_data): Add relropagesize.
1398 * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and
1400 (elfNN_bed): Init relropagesize.
1401 * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to
1402 select relropagesize.
1403 * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1404 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1405 (ELF_MINPAGESIZE): Don't define.
1406 * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1407 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1408 * bfd-in2.h: Regenerate.
1410 2018-04-14 Alan Modra <amodra@gmail.com>
1412 * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend
1413 on __QNXTARGET__ define.
1415 2018-04-14 Alan Modra <amodra@gmail.com>
1417 * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
1420 2018-04-11 Alan Modra <amodra@gmail.com>
1422 * aout-adobe.c: Delete.
1424 * coff-i860.c: Delete.
1425 * coff-i960.c: Delete.
1426 * cpu-i860.c: Delete.
1427 * cpu-i960.c: Delete.
1428 * elf32-i860.c: Delete.
1429 * elf32-i960.c: Delete.
1430 * hosts/i860mach3.h: Delete.
1431 * Makefile.am: Remove i860, i960, bout, and adobe support.
1432 * archures.c: Remove i860 and i960 support.
1433 * coffcode.h: Likewise.
1434 * reloc.c: Likewise.
1435 * aoutx.h: Comment updates.
1436 * archive.c: Remove BOUT and i960 support.
1437 * bfd.c: Remove BOUT support.
1438 * coffswap.h: Remove i960 support.
1439 * config.bfd: Remove i860, i960 and adobe targets.
1440 * configure.ac: Remove adode, bout, i860, i960, icoff targets.
1441 * targets.c: Likewise.
1442 * ieee.c: Remove i960 support.
1443 * mach-o.c: Remove i860 support.
1444 * Makefile.in: Regenerate.
1445 * bfd-in2.h: Regenerate.
1446 * configure: Regenerate.
1447 * libbfd.h: Regenerate.
1448 * po/SRC-POTFILES.in: Regenerate.
1450 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1452 * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer
1453 in the BFD symbol referred by the relocation.
1454 (mips_elf64_write_rela): Likewise.
1456 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1458 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an
1459 error for out-of-range `r_sym' values.
1461 2018-04-09 Alan Modra <amodra@gmail.com>
1463 * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field.
1464 (struct ppc_link_hash_table): Add can_convert_all_inline_plt.
1465 (ppc64_elf_check_relocs): Set has_pltcall.
1466 (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries.
1467 (ppc64_elf_inline_plt): New function.
1468 (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals.
1469 * elf64-ppc.h (ppc64_elf_inline_plt): Declare.
1470 * elf32-ppc.c (has_pltcall): Define.
1471 (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt.
1472 (ppc_elf_check_relocs): Set has_pltcall.
1473 (ppc_elf_inline_plt): New function.
1474 (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries.
1475 (ppc_elf_size_dynamic_sections): Likewise.
1476 * elf32-ppc.h (ppc_elf_inline_plt): Declare.
1478 2018-04-09 Alan Modra <amodra@gmail.com>
1480 * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos.
1481 (is_plt_seq_reloc): New function.
1482 (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs.
1483 (ppc_elf_tls_optimize): Handle inline plt call sequence.
1484 (ppc_elf_relax_section): Handle PLTCALL reloc.
1485 (ppc_elf_relocate_section): Nop out inline plt call sequence when
1487 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and
1488 R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE.
1489 (has_tls_get_addr_call): Correct comment.
1490 (is_branch_reloc): Add PLTCALL.
1491 (is_plt_seq_reloc): New function.
1492 (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set
1493 has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt
1494 entry for R_PPC64_PLTCALL.
1495 (ppc64_elf_tls_optimize): Handle inline plt call sequence.
1496 (ppc_type_of_stub): Handle PLTCALL reloc.
1497 (toc_adjusting_stub_needed): Likewise.
1498 (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL
1499 reloc insn. Nop out inline plt call sequence when resolving
1500 locally. Handle __tls_get_addr inline plt call optimization.
1502 2018-04-09 Alan Modra <amodra@gmail.com>
1504 * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define.
1505 (struct ppc_stub_hash_entry): Add symtype field.
1507 (struct ppc_link_hash_table): Add pltlocal and relpltlocal.
1508 (create_linkage_sections): Create pltlocal and relpltlocal.
1509 (ppc64_elf_check_relocs): Allow PLT relocs on local symbols.
1511 (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1512 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1513 (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1514 Keep PLT entries for inline calls against locals.
1515 (ppc_build_one_stub): Use pltlocal as appropriate.
1516 (ppc_size_one_stub): Likewise.
1517 (ppc64_elf_size_stubs): Set symtype.
1518 (build_global_entry_stubs_and_plt): Init pltlocal and write
1519 relpltlocal for globals.
1520 (write_plt_relocs_for_local_syms): Likewise for local syms.
1521 (ppc64_elf_relocate_section): Support PLT for local syms.
1522 * elf32-ppc.c (PLT_KEEP): Define.
1523 (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal.
1524 (ppc_elf_create_glink): Create pltlocal and relpltlocal.
1525 (ppc_elf_check_relocs): Allow PLT relocs on local symbols.
1526 Set PLT_KEEP. Adjust update_local_sym_info call.
1527 (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1528 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1529 (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1530 (ppc_elf_relocate_section): Support PLT16 relocs for local syms.
1531 (write_global_sym_plt): Init pltlocal and write relpltlocal.
1532 (ppc_finish_symbols): Likewise for locals.
1534 2018-04-09 Alan Modra <amodra@gmail.com>
1536 * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs
1537 for local symbols to..
1538 (write_plt_relocs_for_local_syms): ..here. New function.
1539 (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for
1541 (build_global_entry_stubs_and_plt): ..here. Rename from
1542 build_global_entry_stubs.
1543 (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt.
1544 Call write_plt_relocs_for_local_syms.
1545 * elf32-ppc.c (get_sym_h): New function.
1546 (ppc_elf_relax_section): Use get_sym_h.
1547 (ppc_elf_relocate_section): Move output of PLT relocs and glink
1548 stubs for local symbols to..
1549 (ppc_finish_symbols): ..here. New function.
1550 (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for
1552 (write_global_sym_plt): ..here. New function.
1553 * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute.
1554 (ppc_finish_symbols): Declare.
1556 2018-04-09 Alan Modra <amodra@gmail.com>
1558 * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs.
1559 (ppc_elf_relocate_section): Likewise.
1560 * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS.
1561 (ppc64_elf_relocate_section): Likewise. Correct PLT16
1562 resolution to plt entry relative to toc pointer.
1564 2018-04-09 Alan Modra <amodra@gmail.com>
1566 * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1567 TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout
1568 file when other TLS flags are tested in a mask.
1569 (TLS_MARK, NON_GOT): Define.
1570 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1571 (update_local_sym_info): Don't create got entry when NON_GOT.
1572 (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1574 (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK.
1575 (ppc64_elf_relocate_section): Likewise.
1576 (ppc64_elf_tls_optimize): Don't attempt to optimize indirect
1577 __tls_get_addr calls lacking a marker reloc.
1578 * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1579 TLS_TPRELGD): Renumber. Update comment.
1580 (TLS_MARK, NON_GOT): Define.
1581 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1582 (update_local_sym_info): Don't create got entry when NON_GOT.
1583 (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1585 (ppc_elf_tls_optimize): Don't attempt to optimize indirect
1586 __tls_get_addr calls lacking a marker reloc.
1588 2018-04-06 H.J. Lu <hongjiu.lu@intel.com>
1590 * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out
1591 R_X86_64_converted_reloc_bit.
1593 2018-04-05 H.J. Lu <hongjiu.lu@intel.com>
1596 * configure: Regenerated.
1598 2018-04-05 Alan Modra <amodra@gmail.com>
1600 * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
1601 (elf_hppa_info_to_howto_rel): Likewise.
1603 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1605 * elf-hppa.h (elf_hppa_info_to_howto): Also return
1606 unsuccessfully for unimplemented relocations.
1607 (elf_hppa_info_to_howto_rel): Likewise.
1609 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1611 * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the
1612 `bfd_error_bad_value' error and call `_bfd_error_handler' on a
1613 howto lookup failure.
1614 (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call
1616 (elf32_i860_info_to_howto_rela): Likewise.
1617 (elf32_i860_relocate_splitn): Likewise.
1618 (elf32_i860_relocate_pc16): Likewise.
1619 (elf32_i860_relocate_pc26): Likewise.
1620 (elf32_i860_relocate_section): Likewise.
1622 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1624 * elf32-visium.c (visium_info_to_howto_rela): Correct the range
1625 check for `visium_elf_howto_table' table access.
1627 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1629 * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range
1630 check for `iq2000_elf_howto_table' table access.
1632 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1634 * elf32-frv.c (frv_info_to_howto_rela): Correct the range check
1635 for `elf32_frv_howto_table' table access.
1637 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1639 * elf32-mips.c (mips_elf32_rtype_to_howto): Also return
1640 unsuccessfully for placeholder howtos.
1641 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
1642 * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise.
1644 2018-03-29 Maciej W. Rozycki <macro@mips.com>
1646 * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to
1647 `_bfd_error_handler' and to set the `bfd_error_bad_value' error.
1649 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1651 * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
1652 ATTRIBUTE_UNUSED from `abfd'.
1654 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1656 * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct
1657 `_bfd_error_handler' call formatting.
1659 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1661 * elf32-mips.c (mips_info_to_howto_rel): Call
1662 `mips_elf32_rtype_to_howto' directly rather than via
1663 `->elf_backend_mips_rtype_to_howto'.
1665 2018-03-28 Renlin Li <renlin.li@arm.com>
1668 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for
1669 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1670 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1671 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1672 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1673 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1674 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1675 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1676 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1677 (elfNN_aarch64_final_link_relocate): Support new relocations.
1678 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new
1680 (_bfd_aarch64_elf_resolve_relocation): Support new relocations.
1682 2018-03-28 Renlin Li <renlin.li@arm.com>
1685 * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12
1686 BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC,
1687 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1688 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1689 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1690 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1691 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1692 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1693 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1694 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1695 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for
1696 TLSLE_LDST16_TPREL_LO12,
1697 TLSLE_LDST16_TPREL_LO12_NC,
1698 TLSLE_LDST32_TPREL_LO12,
1699 TLSLE_LDST32_TPREL_LO12_NC,
1700 TLSLE_LDST64_TPREL_LO12,
1701 TLSLE_LDST64_TPREL_LO12_NC,
1702 TLSLE_LDST8_TPREL_LO12,
1703 TLSLE_LDST8_TPREL_LO12_NC.
1704 * bfd-in2.h: Regenerated.
1705 * libbfd.h: Regenerated.
1707 2018-03-28 Eric Botcazou <ebotcazou@adacore.com>
1710 * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
1711 has_old_style_got_reloc.
1712 (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
1713 relocations. Fix a couple of long lines.
1714 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
1715 a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style
1718 2018-03-25 H.J. Lu <hongjiu.lu@intel.com>
1721 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
1722 ENDBR64 to the TLSDESC PLT entry.
1724 2018-03-21 Alan Modra <amodra@gmail.com>
1726 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting
1727 symbols. Use size_t counts. Delete redundant opd test.
1729 2018-03-21 Alan Modra <amodra@gmail.com>
1731 * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms.
1733 2018-03-21 Alan Modra <amodra@gmail.com>
1735 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask
1737 (update_local_sym_info): Likewise for local_got_tls_masks.
1738 (ppc_elf_tls_optimize): Likewise for lgot_masks.
1740 2018-03-21 Alan Modra <amodra@gmail.com>
1742 * elf64-ppc.c (ppc_size_one_stub): Fix comment typo.
1743 (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we
1744 do in size_dynamic_sections.
1746 2018-03-21 Alan Modra <amodra@gmail.com>
1748 * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1]
1749 without first checking array bounds.
1750 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1752 2018-03-20 H.J. Lu <hongjiu.lu@intel.com>
1755 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
1756 non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.
1758 2018-03-19 Nick Clifton <nickc@redhat.com>
1760 * po/es.po: Updated Spanish translation.
1762 2018-03-15 Max Filippov <jcmvbkbc@gmail.com>
1764 * elf32-xtensa.c (xlate_map_entry): Change types of address
1765 fields from 'unsigned' to 'bfd_vma'.
1766 (xlate_offset_with_removed_text): Use struct xlate_map_entry as
1767 the key argument to bsearch. Allow offsets past the end of a
1768 section, use the last map entry for translation of such offsets.
1770 2018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1772 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed.
1773 Not support the target feature.
1774 (nds32_elf_ex9_itb_base): Likewise.
1775 (nds32_elf_ex9_import_table): Likewise.
1776 (nds32_elf_ex9_finish): Likewise.
1777 (nds32_elf_ex9_reloc_jmp): Likewise.
1778 (nds32_elf_get_insn_with_reg): Likewise.
1779 (nds32_get_local_syms): Likewise.
1780 (nds32_elf_ex9_replace_instruction): Likewise.
1781 (nds32_elf_ifc_calc): Likewise.
1782 (nds32_elf_ifc_finish): Likewise.
1783 (nds32_elf_ifc_replace): Likewise.
1784 (nds32_elf_ifc_reloc): Likewise.
1786 2018-03-14 Alan Modra <amodra@gmail.com>
1788 * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
1789 sfpr size added before defining alias symbols.
1790 (ppc64_elf_build_stubs): Add stub section padding before
1791 copying sfpr contents and defining save/restore alias symbols.
1793 2018-03-14 H.J. Lu <hongjiu.lu@intel.com>
1796 * elflink.c (elf_gc_mark_debug_section): Also check the local
1797 debug definition section.
1799 2018-03-13 Nick Clifton <nickc@redhat.com>
1802 * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean
1803 function. Add an end address parameter. Check access of the data
1804 pointer to make sure that they do not extend beyond the end
1805 address. Return FALSE if any check fails. Add the end address
1806 pointer to the ui structure.
1807 (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind
1808 codes to make sure that they do not extend beyond the end address
1809 pointer. Print an error message and return immediately if any
1812 2018-03-09 Nick Clifton <nickc@redhat.com>
1814 * elf64-s390.c (elf_s390_relocate_section): Move check for
1815 relocations against non-allocated sections to before the code that
1816 handles ifunc relocations.
1817 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1818 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat
1819 relocs against IFUNC symbols in non-allocated sections as relocs
1820 against FUNC symbols.
1821 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1823 2018-03-08 H.J. Lu <hongjiu.lu@intel.com>
1826 * elf32-i386.c (elf_i386_relocate_section): Treat relocation
1827 against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as
1828 relocation against FUNC symbol.
1829 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1831 2018-03-07 Renlin Li <renlin.li@arm.com>
1834 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute
1835 symbol, and don't emit relocation in specific case.
1837 2018-03-07 Alan Modra <amodra@gmail.com>
1839 * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error.
1840 (mips_elf64_slurp_one_reloc_table): Pass on error.
1842 2018-03-03 James Cowgill <james.cowgill@mips.com>
1843 Maciej W. Rozycki <macro@mips.com>
1846 * elfxx-mips.c (mips_elf_calculate_relocation): Only return
1847 after calling `undefined_symbol' hook if this is an error
1848 condition. Assume the value of 0 for the symbol requested
1851 2018-03-02 Jim Wilson <jimw@sifive.com>
1854 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch
1855 and nop instead of 4.
1856 (elfNN_arch64_build_stubs): Add nop after branch. Increase size by
1859 2018-03-01 Jim Wilson <jimw@sifive.com>
1862 * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use
1863 else if instead of if.
1865 2018-03-01 Alan Modra <amodra@gmail.com>
1867 * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
1869 2018-02-28 Alan Modra <amodra@gmail.com>
1872 * aoutx.h (swap_std_reloc_in): Correct r_index bound check.
1874 2018-02-28 Nick Clifton <nickc@redhat.com>
1878 * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block
1879 pointer. Drop unused abfd parameter. Check the size of the block
1880 before initialising the data field. Return the end pointer if the
1882 (read_attribute_value): Adjust invocations of read_n_bytes.
1885 * dwarf1.c (parse_die): Check the length of form blocks before
1886 advancing the data pointer.
1888 2018-02-28 Alan Modra <amodra@gmail.com>
1891 * aoutx.h (translate_symbol_table): Print an error message and set
1892 bfd_error on finding an invalid name string offset.
1894 2018-02-27 H.J. Lu <hongjiu.lu@intel.com>
1896 * config.in: Regenerated.
1897 * configure: Likewise.
1898 * configure.ac: Add --enable-separate-code.
1899 (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default
1900 to 1 for Linux/x86 targets,
1901 * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if
1902 DEFAULT_LD_Z_SEPARATE_CODE is 1.
1904 2018-02-27 Nick Clifton <nickc@redhat.com>
1906 * aout-cris.c (swap_ext_reloc_out): Standadize error/warning
1908 * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise.
1909 * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise.
1910 * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise.
1911 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise.
1912 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1913 * elf64-sh64.c (sh_elf64_info_to_howto): Likewise.
1914 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1915 * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise.
1916 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
1919 * elf-bfd.h (struct elf_backend_data): Change the return type of
1920 the elf_info_to_howto and elf_info_to_howto_rel function pointers
1922 * elfcode.h (elf_slurp_reloc_table_from_section): Check the return
1923 value from the info_to_howto function and fail if that function
1925 * elf32-h8300.c (elf32_h8_relocate_section): Check return value
1926 from the info_to_howto function.
1927 (elf32_h8_relax_section): Likewise.
1928 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1929 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1930 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1931 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1932 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1933 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
1934 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise.
1935 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
1936 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1937 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
1938 (riscv_elf_relocate_section): Likewise.
1939 * elf-hppa.h (elf_hppa_info_to_howto): Change return type to
1940 bfd_boolean. Issue an error message, set an error value and
1941 return FALSE if the reloc is not recognized.
1942 (elf_hppa_info_to_howto_rel): Likewise.
1943 * elf-m10200.c (mn10200_info_to_howto): Likewise.
1944 * elf-m10300.c (mn10300_info_to_howto): Likewise.
1945 * elf.c (_bfd_elf_no_info_to_howto): Likewise.
1946 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
1947 * elf32-arm.c (elf32_arm_info_to_howto): Likewise.
1948 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
1949 * elf32-bfin.c (bfin_info_to_howto): Likewise.
1950 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
1951 * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise.
1952 * elf32-cris.c (elf_cr16c_info_to_howto_rel)
1953 (cris_info_to_howto_rela): Likewise.
1954 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
1955 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
1956 * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela):
1958 * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto)
1959 (elf32_dlx_info_to_howto_rel): Likewise.
1960 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
1961 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
1962 * elf32-frv.c (frv_info_to_howto_rela)
1963 (frvfdpic_info_to_howto_rel): Likewise.
1964 * elf32-ft32.c (ft32_info_to_howto_rela): Likewise.
1965 * elf32-gen.c (elf_generic_info_to_howto)
1966 (elf_generic_info_to_howto_rel): Likewise.
1967 * elf32-h8300.c (elf32_h8_info_to_howto)
1968 (elf32_h8_info_to_howto_rel): Likewise.
1969 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
1970 * elf32-i386.c (elf_i386_reloc_type_lookup)
1971 (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise.
1972 * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela):
1974 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
1975 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
1976 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
1977 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
1978 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
1979 * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto):
1981 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
1982 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
1983 * elf32-m68k.c (rtype_to_howto): Likewise.
1984 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
1985 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
1986 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
1987 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
1988 * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1990 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
1991 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
1992 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
1993 * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto):
1995 * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise.
1996 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
1997 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
1998 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
1999 * elf32-pru.c (pru_elf32_info_to_howto): Likewise.
2000 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
2001 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
2002 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
2003 * elf32-score.c (s3_bfd_score_info_to_howto)
2004 (_bfd_score_info_to_howto): Likewise.
2005 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
2006 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
2007 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
2008 * elf32-tic6x.c (elf32_tic6x_info_to_howto)
2009 (elf32_tic6x_info_to_howto_rel): Likewise.
2010 * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise.
2011 * elf32-v850.c (v850_elf_info_to_howto_rel)
2012 (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise.
2013 * elf32-vax.c (rtype_to_howto): Likewise.
2014 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
2015 * elf32-wasm32.c (elf32_wasm32_rtype_to_howto)
2016 (elf32_wasm32_info_to_howto_rela): Likewise.
2017 * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise.
2018 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
2019 * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise.
2020 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
2021 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
2022 * elf64-gen.c (elf_generic_info_to_howto)
2023 (elf_generic_info_to_howto_rel): Likewise.
2024 * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise.
2025 * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise.
2026 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
2027 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
2028 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
2029 * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto):
2031 * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise.
2032 * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
2034 * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise.
2035 * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise.
2036 * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise.
2037 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
2038 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise.
2039 * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise.
2040 * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype.
2041 * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype.
2042 * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype.
2043 * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel):
2046 2018-02-26 Jim Wilson <jimw@sifive.com>
2047 Stephan Schreiber <info@fs-driver.org>
2050 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
2051 call, set changed_contents and changed_relocs. Likewise after
2052 successful ia64_elf_relax_br call.
2054 2018-02-26 Alan Modra <amodra@gmail.com>
2056 * elf.c (assign_file_positions_except_relocs): Don't segfault
2057 when actual number of phdrs is less than allocated. Delete
2058 outdated comment. Formatting.
2060 2018-02-26 Alan Modra <amodra@gmail.com>
2062 * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
2063 * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
2064 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
2065 * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
2066 * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
2067 * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
2068 * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
2069 * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
2070 * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
2071 * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
2072 error/warning messages.
2074 2018-02-26 Alan Modra <amodra@gmail.com>
2076 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
2077 * syms.c: Standardize error/warning messages.
2079 2018-02-26 Alan Modra <amodra@gmail.com>
2081 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c,
2082 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c,
2083 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c,
2084 * peXXigen.c, * peicode.h: Standardize error/warning messages.
2086 2018-02-26 Alan Modra <amodra@gmail.com>
2088 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
2090 2018-02-26 Alan Modra <amodra@gmail.com>
2092 * elfxx-mips.c: Standardize error/warning messages.
2094 2018-02-26 Alan Modra <amodra@gmail.com>
2096 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c,
2097 * elflink.c: Standardize error/warning messages. Replace use of
2098 linker callback einfo with _bfd_error_handler when possible.
2100 2018-02-26 Alan Modra <amodra@gmail.com>
2102 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c,
2103 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
2104 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c,
2105 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c,
2106 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
2107 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
2108 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c,
2109 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
2110 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
2111 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
2112 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
2113 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c,
2114 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c,
2115 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
2116 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
2117 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c,
2118 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
2119 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
2120 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
2121 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h,
2122 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize
2123 unrecognized/unsupported reloc message.
2125 2018-02-26 Alan Modra <amodra@gmail.com>
2127 * elf32-ppc.c: Standardize error/warning messages. Use
2128 _bfd_error_handler rather than einfo when einfo features not used.
2129 * elf64-ppc.c: Likewise.
2131 2018-02-23 Alan Modra <amodra@gmail.com>
2134 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO
2135 segment if no matching LOAD segment.
2137 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
2139 * elf32-nds32.h: Define mask for ict_model.
2141 2018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
2143 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
2145 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2148 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
2150 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
2151 .reginfo section has wrong size.
2153 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2155 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
2156 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and
2157 `.MIPS.abiflags' sections.
2158 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo'
2161 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2163 * section.c (SEC_FIXED_SIZE): New macro.
2164 * bfd-in2.h: Regenerate.
2166 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2168 * section.c (SEC_HAS_GOT_REF): Remove macro.
2169 * bfd-in2.h: Regenerate.
2171 2018-02-19 Alan Modra <amodra@gmail.com>
2173 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
2175 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
2176 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
2177 (_bfd_riscv_relax_pc): Likewise and fix typos.
2178 * libbfd-in.h (_bfd_error_handler): Add attribute printf.
2179 * libbfd.h: Regenerate.
2181 2018-02-19 Alan Modra <amodra@gmail.com>
2183 * dwarf2.c (read_section): Don't use 'll' format modifier.
2184 (find_abstract_instance): Likewise.
2185 * elfcore.h (elf_core_file_p): Likewise.
2187 2018-02-19 Alan Modra <amodra@gmail.com>
2189 * bfd-in.h: Include inttypes.h or if not available define
2190 PRId64, PRIu64 and PRIx64.
2191 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
2192 modifier to print bfd_vma.
2193 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
2194 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
2195 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
2196 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
2197 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
2198 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
2199 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
2200 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
2201 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
2202 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
2203 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
2204 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
2205 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
2206 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
2207 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
2208 and cast input to uint64_t, and similarly for Ld and Lu.
2209 * bfd-in2.h: Regenerate.
2211 2018-02-19 Alan Modra <amodra@gmail.com>
2213 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c,
2214 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c,
2215 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c,
2216 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c,
2217 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c,
2218 * reloc.c: Replace use of %R and %T in format strings passed to
2219 einfo and friends by %pR and %pT.
2221 2018-02-19 Alan Modra <amodra@gmail.com>
2223 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place
2225 * aout-adobe.c: Update all messages using %A and %B.
2226 * aout-cris.c: Likewise.
2227 * aoutx.h: Likewise.
2228 * archive.c: Likewise.
2229 * binary.c: Likewise.
2230 * cache.c: Likewise.
2231 * coff-alpha.c: Likewise.
2232 * coff-arm.c: Likewise.
2233 * coff-i860.c: Likewise.
2234 * coff-mcore.c: Likewise.
2235 * coff-ppc.c: Likewise.
2236 * coff-rs6000.c: Likewise.
2237 * coff-sh.c: Likewise.
2238 * coff-tic4x.c: Likewise.
2239 * coff-tic54x.c: Likewise.
2240 * coff-tic80.c: Likewise.
2241 * coff64-rs6000.c: Likewise.
2242 * coffcode.h: Likewise.
2243 * coffgen.c: Likewise.
2244 * cofflink.c: Likewise.
2245 * coffswap.h: Likewise.
2246 * compress.c: Likewise.
2247 * cpu-arm.c: Likewise.
2248 * ecoff.c: Likewise.
2249 * elf-attrs.c: Likewise.
2250 * elf-eh-frame.c: Likewise.
2251 * elf-ifunc.c: Likewise.
2252 * elf-m10300.c: Likewise.
2253 * elf-properties.c: Likewise.
2254 * elf-s390-common.c: Likewise.
2256 * elf32-arc.c: Likewise.
2257 * elf32-arm.c: Likewise.
2258 * elf32-avr.c: Likewise.
2259 * elf32-bfin.c: Likewise.
2260 * elf32-cr16.c: Likewise.
2261 * elf32-cr16c.c: Likewise.
2262 * elf32-cris.c: Likewise.
2263 * elf32-crx.c: Likewise.
2264 * elf32-d10v.c: Likewise.
2265 * elf32-d30v.c: Likewise.
2266 * elf32-epiphany.c: Likewise.
2267 * elf32-fr30.c: Likewise.
2268 * elf32-frv.c: Likewise.
2269 * elf32-gen.c: Likewise.
2270 * elf32-hppa.c: Likewise.
2271 * elf32-i370.c: Likewise.
2272 * elf32-i386.c: Likewise.
2273 * elf32-i960.c: Likewise.
2274 * elf32-ip2k.c: Likewise.
2275 * elf32-iq2000.c: Likewise.
2276 * elf32-lm32.c: Likewise.
2277 * elf32-m32c.c: Likewise.
2278 * elf32-m32r.c: Likewise.
2279 * elf32-m68hc11.c: Likewise.
2280 * elf32-m68hc12.c: Likewise.
2281 * elf32-m68hc1x.c: Likewise.
2282 * elf32-m68k.c: Likewise.
2283 * elf32-mcore.c: Likewise.
2284 * elf32-mep.c: Likewise.
2285 * elf32-metag.c: Likewise.
2286 * elf32-microblaze.c: Likewise.
2287 * elf32-moxie.c: Likewise.
2288 * elf32-msp430.c: Likewise.
2289 * elf32-mt.c: Likewise.
2290 * elf32-nds32.c: Likewise.
2291 * elf32-nios2.c: Likewise.
2292 * elf32-or1k.c: Likewise.
2293 * elf32-pj.c: Likewise.
2294 * elf32-ppc.c: Likewise.
2295 * elf32-rl78.c: Likewise.
2296 * elf32-rx.c: Likewise.
2297 * elf32-s390.c: Likewise.
2298 * elf32-score.c: Likewise.
2299 * elf32-score7.c: Likewise.
2300 * elf32-sh-symbian.c: Likewise.
2301 * elf32-sh.c: Likewise.
2302 * elf32-sh64.c: Likewise.
2303 * elf32-sparc.c: Likewise.
2304 * elf32-spu.c: Likewise.
2305 * elf32-tic6x.c: Likewise.
2306 * elf32-tilepro.c: Likewise.
2307 * elf32-v850.c: Likewise.
2308 * elf32-vax.c: Likewise.
2309 * elf32-visium.c: Likewise.
2310 * elf32-wasm32.c: Likewise.
2311 * elf32-xgate.c: Likewise.
2312 * elf32-xtensa.c: Likewise.
2313 * elf64-alpha.c: Likewise.
2314 * elf64-gen.c: Likewise.
2315 * elf64-hppa.c: Likewise.
2316 * elf64-ia64-vms.c: Likewise.
2317 * elf64-mmix.c: Likewise.
2318 * elf64-ppc.c: Likewise.
2319 * elf64-s390.c: Likewise.
2320 * elf64-sh64.c: Likewise.
2321 * elf64-sparc.c: Likewise.
2322 * elf64-x86-64.c: Likewise.
2323 * elfcode.h: Likewise.
2324 * elfcore.h: Likewise.
2325 * elflink.c: Likewise.
2326 * elfnn-aarch64.c: Likewise.
2327 * elfnn-ia64.c: Likewise.
2328 * elfnn-riscv.c: Likewise.
2329 * elfxx-mips.c: Likewise.
2330 * elfxx-sparc.c: Likewise.
2331 * elfxx-tilegx.c: Likewise.
2332 * elfxx-x86.c: Likewise.
2333 * hpux-core.c: Likewise.
2336 * libbfd.c: Likewise.
2337 * linker.c: Likewise.
2338 * mach-o.c: Likewise.
2339 * merge.c: Likewise.
2341 * oasys.c: Likewise.
2342 * pdp11.c: Likewise.
2343 * pe-mips.c: Likewise.
2344 * peXXigen.c: Likewise.
2345 * peicode.h: Likewise.
2346 * reloc.c: Likewise.
2347 * rs6000-core.c: Likewise.
2349 * stabs.c: Likewise.
2350 * vms-alpha.c: Likewise.
2351 * xcofflink.c: Likewise.
2353 2018-02-19 Alan Modra <amodra@gmail.com>
2356 * elf.c (IS_TBSS): Define.
2357 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
2358 (assign_file_positions_for_non_load_sections): Revert last change.
2359 Properly calculate load segment limits to compare against relro limits.
2361 2018-02-17 Alan Modra <amodra@gmail.com>
2364 * elf.c (assign_file_positions_for_non_load_sections): Ignore
2365 degenerate zero size PT_LOAD segments when finding one overlapping
2366 the PT_GNU_RELRO segment.
2368 2018-02-16 Alan Modra <amodra@gmail.com>
2370 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
2371 (_bfd_bool_bfd_true): Rename from bfd_true.
2372 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
2373 (_bfd_int_bfd_0): Rename from bfd_0.
2374 (_bfd_uint_bfd_0): Rename from bfd_0u.
2375 (_bfd_long_bfd_0): Rename from bfd_0l.
2376 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
2377 (_bfd_void_bfd): Rename from bfd_void.
2378 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
2379 (_bfd_bool_bfd_link_false_error),
2380 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
2381 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
2382 (_bfd_bool_bfd_asection_bfd_asection_true),
2383 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
2384 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
2385 * archive.c (_bfd_noarchive_get_elt_at_index),
2386 (_bfd_noarchive_openr_next_archived_file),
2387 (_bfd_noarchive_construct_extended_name_table),
2388 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
2389 (_bfd_noarchive_write_armap): New functions.
2390 * archures.c (_bfd_nowrite_set_arch_mach): New function.
2391 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
2392 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
2393 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
2394 (alpha_ecoff_swap_coff_lineno_out),
2395 (alpha_ecoff_swap_coff_reloc_out): New functions.
2396 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
2397 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
2398 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
2399 (mips_ecoff_swap_coff_lineno_out),
2400 (mips_ecoff_swap_coff_reloc_out): New functions.
2401 * coffcode.h (coff_set_alignment_hook): Replace define with
2403 (symname_in_debug_hook): Likewise.
2404 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
2405 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
2406 * elf.c (assign_file_positions_except_relocs): Test
2407 elf_backend_allow_non_load_phdr for NULL.
2408 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
2409 _bfd_elf_link_omit_section_dynsym. Update uses.
2410 (_bfd_elf_omit_section_dynsym_all): New function.
2411 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
2412 (_bfd_elf_omit_section_dynsym_default): Declare.
2413 (_bfd_elf_omit_section_dynsym_all): Declare.
2414 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
2415 (_bfd_nolink_bfd_get_relocated_section_contents),
2416 (_bfd_nolink_bfd_lookup_section_flags),
2417 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
2418 (_bfd_nolink_bfd_link_hash_table_create),
2419 (_bfd_nolink_bfd_link_just_syms),
2420 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
2421 (_bfd_nolink_bfd_link_split_section),
2422 (_bfd_nolink_section_already_linked),
2423 (_bfd_nolink_bfd_define_common_symbol),
2424 (_bfd_nolink_bfd_define_start_stop): New functions.
2425 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
2426 (_bfd_norelocs_bfd_reloc_name_lookup),
2427 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
2428 * section.c (_bfd_nowrite_set_section_contents): New function.
2429 * syms.c (_bfd_nosymbols_canonicalize_symtab),
2430 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
2431 (_bfd_nosymbols_get_symbol_version_string),
2432 (_bfd_nosymbols_bfd_is_local_label_name),
2433 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
2434 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
2435 (_bfd_nosymbols_bfd_make_debug_symbol),
2436 ( _bfd_nosymbols_read_minisymbols),
2437 ( _bfd_nosymbols_minisymbol_to_symbol),
2438 (_bfd_nodynamic_get_synthetic_symtab): New functions.
2439 * libbfd-in.h: Declare new functions. Update existing defines,
2441 * aix386-core.c: Update to use new hooks. Formatting.
2442 * aout-adobe.c: Likewise.
2443 * aout-arm.c: Likewise.
2444 * aout-target.h: Likewise.
2445 * aout-tic30.c: Likewise.
2446 * aoutf1.h: Likewise.
2447 * binary.c: Likewise.
2449 * cisco-core.c: Likewise.
2450 * coff-alpha.c: Likewise.
2451 * coff-i386.c: Likewise.
2452 * coff-i860.c: Likewise.
2453 * coff-i960.c: Likewise.
2454 * coff-ia64.c: Likewise.
2455 * coff-mips.c: Likewise.
2456 * coff-ppc.c: Likewise.
2457 * coff-rs6000.c: Likewise.
2458 * coff-sh.c: Likewise.
2459 * coff-tic30.c: Likewise.
2460 * coff-tic54x.c: Likewise.
2461 * coff-x86_64.c: Likewise.
2462 * coff64-rs6000.c: Likewise.
2463 * coffcode.h: Likewise.
2464 * elf-m10300.c: Likewise.
2465 * elf32-cr16.c: Likewise.
2466 * elf32-lm32.c: Likewise.
2467 * elf32-m32r.c: Likewise.
2468 * elf32-metag.c: Likewise.
2469 * elf32-score.c: Likewise.
2470 * elf32-score7.c: Likewise.
2471 * elf32-tilepro.c: Likewise.
2472 * elf32-xstormy16.c: Likewise.
2473 * elf32-xtensa.c: Likewise.
2474 * elf64-alpha.c: Likewise.
2475 * elf64-hppa.c: Likewise.
2476 * elf64-ia64-vms.c: Likewise.
2477 * elf64-mmix.c: Likewise.
2478 * elf64-sh64.c: Likewise.
2479 * elfnn-ia64.c: Likewise.
2480 * elfxx-sparc.c: Likewise.
2481 * elfxx-target.h: Likewise.
2482 * elfxx-tilegx.c: Likewise.
2483 * elfxx-x86.h: Likewise.
2484 * hp300hpux.c: Likewise.
2485 * hppabsd-core.c: Likewise.
2486 * hpux-core.c: Likewise.
2487 * i386msdos.c: Likewise.
2488 * i386os9k.c: Likewise.
2491 * irix-core.c: Likewise.
2492 * libaout.h: Likewise.
2493 * libecoff.h: Likewise.
2494 * mach-o-target.c: Likewise.
2495 * mach-o.c: Likewise.
2496 * mipsbsd.c: Likewise.
2498 * netbsd-core.c: Likewise.
2499 * nlm-target.h: Likewise.
2500 * oasys.c: Likewise.
2501 * osf-core.c: Likewise.
2502 * pdp11.c: Likewise.
2503 * pe-mips.c: Likewise.
2504 * pe-x86_64.c: Likewise.
2506 * plugin.c: Likewise.
2507 * ppcboot.c: Likewise.
2508 * ptrace-core.c: Likewise.
2509 * sco5-core.c: Likewise.
2511 * sparclynx.c: Likewise.
2513 * tekhex.c: Likewise.
2514 * trad-core.c: Likewise.
2515 * verilog.c: Likewise.
2516 * versados.c: Likewise.
2517 * vms-alpha.c: Likewise.
2518 * vms-lib.c: Likewise.
2519 * wasm-module.c: Likewise.
2521 * libbfd.h: Regenerate.
2523 2018-02-15 Jim Wilson <jimw@sifive.com>
2525 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
2526 symbols whose section address is zero.
2528 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
2529 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
2530 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
2531 Add %X%P to error messages.
2533 2018-02-15 Eric Botcazou <ebotcazou@adacore.com>
2536 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2537 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
2538 and assert that the result of the call is not NULL.
2540 2018-02-14 Nick Clifton <nickc@redhat.com>
2543 Revert previous delta. Add extra casts to avoid compile time
2545 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
2546 cast to avoid warning from gcc v8 compiler.
2547 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2548 (_bfd_generic_bfd_set_private_flags): Likewise.
2549 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2550 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2551 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2552 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2553 (_bfd_noarchive_construct_extended_name_table): Likewise.
2554 (_bfd_noarchive_truncate_arname): Likewise.
2555 (_bfd_noarchive_write_ar_hdr): Likewise.
2556 (_bfd_noarchive_get_elt_at_index): Likewise.
2557 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2558 (_bfd_nosymbols_print_symbol): Likewise.
2559 (_bfd_nosymbols_get_symbol_info): Likewise.
2560 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2561 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2562 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2563 (_bfd_nosymbols_get_lineno): Likewise.
2564 (_bfd_nosymbols_find_nearest_line): Likewise.
2565 (_bfd_nosymbols_find_line): Likewise.
2566 (_bfd_nosymbols_find_inliner_info): Likewise.
2567 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2568 (_bfd_nosymbols_read_minisymbols): Likewise.
2569 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2570 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2571 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2572 (_bfd_nowrite_set_arch_mach): Likewise.
2573 (_bfd_nowrite_set_section_contents): Likewise.
2574 (_bfd_nolink_sizeof_headers): Likewise.
2575 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2576 (_bfd_nolink_bfd_relax_section): Likewise.
2577 (_bfd_nolink_bfd_gc_sections): Likewise.
2578 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2579 (_bfd_nolink_bfd_merge_sections): Likewise.
2580 (_bfd_nolink_bfd_is_group_section): Likewise.
2581 (_bfd_nolink_bfd_discard_group): Likewise.
2582 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2583 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2584 (_bfd_nolink_bfd_link_just_syms): Likewise.
2585 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2586 (_bfd_nolink_bfd_final_link): Likewise.
2587 (_bfd_nolink_bfd_link_split_section): Likewise.
2588 (_bfd_nolink_section_already_linked): Likewise.
2589 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2590 (_bfd_nolink_bfd_define_start_stop): Likewise.
2591 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2592 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2593 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2594 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2595 * libbfd.c (bfd_false_any): Delete.
2596 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
2597 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
2598 * libbfd.h (extern): Regenerate
2599 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
2600 cast to avoid warning from gcc v8 compiler.
2601 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2602 * binary.c (binary_get_symbol_info): Likewise.
2603 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2604 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2605 * coffcode.h (coff_set_alignment_hook): Likewise.
2606 (symname_in_debug_hook): Likewise.
2607 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2608 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2609 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2610 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2611 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2612 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2613 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2614 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2615 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2616 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2617 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2618 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2619 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2620 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2621 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2622 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2623 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2624 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2625 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2626 (bfd_elfNN_bfd_set_private_flags): Likewise.
2627 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2628 (elf_backend_init_index_section): Likewise.
2629 (elf_backend_allow_non_load_phdr): Likewise.
2630 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2631 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2632 * ieee.c (ieee_construct_extended_name_table): Likewise.
2633 (ieee_write_armap): Likewise.
2634 (ieee_write_ar_hdr): Likewise.
2635 (ieee_bfd_is_target_special_symbol): Likewise.
2636 * ihex.c (ihex_canonicalize_symtab): Likewise.
2637 (ihex_bfd_is_target_special_symbol): Likewise.
2638 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2639 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2640 (_bfd_ecoff_set_alignment_hook): Likewise.
2641 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2642 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2643 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2644 * oasys.c (oasys_construct_extended_name_table): Likewise.
2645 (oasys_write_armap): Likewise.
2646 (oasys_write_ar_hdr): Likewise.
2647 (oasys_bfd_is_target_special_symbol): Likewise.
2648 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2649 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2650 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2651 * som.c (som_bfd_is_target_special_symbol): Likewise.
2652 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2653 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2654 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2655 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2656 (versados_bfd_reloc_name_lookup): Likewise.
2657 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2658 (vms_bfd_define_start_stop): Likewise.
2659 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2660 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2661 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2663 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
2666 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
2667 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2668 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
2669 R_X86_64_PC32 reloc against dynamic function in data section.
2670 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2671 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
2672 against dynamic function in data section.
2673 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
2674 function address only if pcrel_plt is true.
2675 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
2676 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
2677 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
2678 PC-relative relocation against a function definition in data
2679 secton in PIE. Remove the obsolete comments.
2680 (elf_x86_link_hash_table): Add pcrel_plt.
2682 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2684 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
2685 instead of bfd_link_pic, for building shared library.
2687 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2690 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
2691 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
2692 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
2693 against protected function in shared object.
2695 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
2698 * po/ru.po: Fix typo in Russian translation.
2700 2018-02-13 Maciej W. Rozycki <macro@mips.com>
2702 * wasm-module.c (wasm_scan_name_function_section): Rename
2703 `index' local variable to `idx'.
2705 2018-02-13 Nick Clifton <nickc@redhat.com>
2708 Fix compile time warnings generated by gcc version 8.
2709 * libbfd-in.h: Remove extraneous text from prototypes.
2710 Add prototypes for bfd_false_any, bfd_true_any,
2711 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
2712 bfd_n1_any, bfd_void_any.
2713 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
2715 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2716 (_bfd_generic_bfd_set_private_flags): Likewise.
2717 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2718 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2719 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2720 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2721 (_bfd_noarchive_construct_extended_name_table): Likewise.
2722 (_bfd_noarchive_truncate_arname): Likewise.
2723 (_bfd_noarchive_write_ar_hdr): Likewise.
2724 (_bfd_noarchive_get_elt_at_index): Likewise.
2725 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2726 (_bfd_nosymbols_print_symbol): Likewise.
2727 (_bfd_nosymbols_get_symbol_info): Likewise.
2728 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2729 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2730 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2731 (_bfd_nosymbols_get_lineno): Likewise.
2732 (_bfd_nosymbols_find_nearest_line): Likewise.
2733 (_bfd_nosymbols_find_line): Likewise.
2734 (_bfd_nosymbols_find_inliner_info): Likewise.
2735 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2736 (_bfd_nosymbols_read_minisymbols): Likewise.
2737 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2738 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2739 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2740 (_bfd_nowrite_set_arch_mach): Likewise.
2741 (_bfd_nowrite_set_section_contents): Likewise.
2742 (_bfd_nolink_sizeof_headers): Likewise.
2743 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2744 (_bfd_nolink_bfd_relax_section): Likewise.
2745 (_bfd_nolink_bfd_gc_sections): Likewise.
2746 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2747 (_bfd_nolink_bfd_merge_sections): Likewise.
2748 (_bfd_nolink_bfd_is_group_section): Likewise.
2749 (_bfd_nolink_bfd_discard_group): Likewise.
2750 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2751 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2752 (_bfd_nolink_bfd_link_just_syms): Likewise.
2753 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2754 (_bfd_nolink_bfd_final_link): Likewise.
2755 (_bfd_nolink_bfd_link_split_section): Likewise.
2756 (_bfd_nolink_section_already_linked): Likewise.
2757 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2758 (_bfd_nolink_bfd_define_start_stop): Likewise.
2759 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2760 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2761 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2762 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2763 * libbfd.c (bfd_false_any): New function. Like bfd_false but
2764 accepts one or more arguments.
2765 (bfd_true_any): Likewise.
2766 (bfd_nullvoidptr_any): Likewise.
2767 (bfd_0_any): Likewise.
2768 (bfd_0u_any): Likewise.
2769 (bfd_0l_any): Likewise.
2770 (_bfd_n1_any): Likewise.
2771 (bfd_void_any): Likewise.
2772 * libbfd.h (extern): Regenerate
2773 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
2774 based dummy function.
2775 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2776 * binary.c (binary_get_symbol_info): Likewise.
2777 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2778 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2779 * coffcode.h (coff_set_alignment_hook): Likewise.
2780 (symname_in_debug_hook): Likewise.
2781 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2782 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2783 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2784 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2785 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2786 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2787 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2788 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2789 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2790 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2791 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2792 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2793 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2794 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2795 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2796 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2797 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2798 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2799 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2800 (bfd_elfNN_bfd_set_private_flags): Likewise.
2801 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2802 (elf_backend_init_index_section): Likewise.
2803 (elf_backend_allow_non_load_phdr): Likewise.
2804 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2805 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2806 * ieee.c (ieee_construct_extended_name_table): Likewise.
2807 (ieee_write_armap): Likewise.
2808 (ieee_write_ar_hdr): Likewise.
2809 (ieee_bfd_is_target_special_symbol): Likewise.
2810 * ihex.c (ihex_canonicalize_symtab): Likewise.
2811 (ihex_bfd_is_target_special_symbol): Likewise.
2812 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2813 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2814 (_bfd_ecoff_set_alignment_hook): Likewise.
2815 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2816 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2817 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2818 * oasys.c (oasys_construct_extended_name_table): Likewise.
2819 (oasys_write_armap): Likewise.
2820 (oasys_write_ar_hdr): Likewise.
2821 (oasys_bfd_is_target_special_symbol): Likewise.
2822 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2823 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2824 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2825 * som.c (som_bfd_is_target_special_symbol): Likewise.
2826 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2827 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2828 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2829 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2830 (versados_bfd_reloc_name_lookup): Likewise.
2831 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2832 (vms_bfd_define_start_stop): Likewise.
2833 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2834 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2835 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2836 * elf32-arc.c (get_replace_function): Assign replacement function
2838 * elf32-i370.c (i370_noop): Update prototype.
2840 2018-02-13 Alan Modra <amodra@gmail.com>
2843 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
2844 relocation sections. If size reduces to just the flag word,
2845 remove that too and mark with SEC_EXCLUDE.
2846 * elflink.c (bfd_elf_final_link): Strip empty group sections.
2848 2018-02-13 Alan Modra <amodra@gmail.com>
2851 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
2854 2018-02-12 Zebediah Figura <z.figura12@gmail.com>
2856 * i386msdos.c (msdos_mkobject); New function.
2857 (msdos_object_p): New function.
2858 (i386_msdos_vec): Use msdos_object_p as the check_format
2860 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
2861 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
2863 * peXXigen.c: Likewise.
2864 * coff-ia64.c: Likewise.
2866 2018-02-12 Nick Clifton <nickc@redhat.com>
2868 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
2870 * elf32-arc.c (elf_arc_relocate_section): Likewise.
2872 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
2874 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
2875 (sparc_elf_append_rela): Assert that there is enough room in section.
2876 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
2877 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
2878 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
2879 For a symbol subject to a GOT relocation, reserve a slot in the
2880 relocation section if the symbol isn't dynamic and we are in PIC mode.
2881 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
2882 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
2883 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
2884 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
2885 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
2886 resolved_to_zero. Do not generate a dynamic GOT relocation for an
2887 undefined weak symbol with non-default visibility. Remove superfluous
2888 'else' and fix formatting.
2890 2018-02-09 H.J. Lu <hongjiu.lu@intel.com>
2892 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
2894 (i386_elf32_sol2_vec): Don't declare.
2895 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
2896 Don't set need_global_offset_table.
2897 (elf_i386_solaris_arch_bed): New.
2898 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
2900 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
2901 target_os != is_nacl instead of target_os == is_normal.
2902 (x86_64_elf64_sol2_vec): Don't declare.
2903 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
2904 is_nacl instead of target_os == is_normal. Don't set
2905 need_global_offset_table.
2906 (elf_x86_64_solaris_arch_bed): New.
2907 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
2909 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
2910 _GLOBAL_OFFSET_TABLE_ for Solaris.
2911 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
2912 need_global_offset_table.
2913 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
2914 (elf_x86_link_hash_table): Remove need_global_offset_table.
2915 (elf_x86_init_table): Likewise.
2917 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2919 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2921 (i386_elf32_sol2_vec): Declared.
2922 (elf_i386_link_setup_gnu_properties): Set
2923 need_global_offset_table with info->output_bfd->xvec.
2924 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2926 (x86_64_elf64_sol2_vec): Declared.
2927 (elf_x86_64_link_setup_gnu_properties): Set
2928 need_global_offset_table with info->output_bfd->xvec.
2930 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2932 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2934 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
2936 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2938 (elf_x86_64_link_setup_gnu_properties): Set
2939 need_global_offset_table for Solaris.
2940 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
2941 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
2942 (_bfd_x86_elf_link_setup_gnu_properties): Copy
2943 need_global_offset_table.
2944 * elfxx-x86.h (elf_x86_link_hash_table): Add
2945 need_global_offset_table.
2946 (elf_x86_init_table): Likewise.
2948 2018-02-08 Jim Wilson <jimw@sifive.com>
2950 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
2953 2018-02-08 Nick Clifton <nickc@redhat.com>
2956 * elf.c (elf_parse_notes): Reject notes with excessuively large
2959 2018-02-07 Alan Modra <amodra@gmail.com>
2961 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
2962 * elf32-ppc.c: Remove speculation barrier support.
2963 * elf32-ppc.h: Likewise.
2964 * elf64-ppc.c: Likewise.
2965 * elf64-ppc.h: Likewise.
2967 2018-02-06 Jim Wilson <jimw@sifive.com>
2969 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
2970 callback to report an error.
2972 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
2975 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
2976 into call to !bfd_link_executable and tidy up.
2977 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
2978 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
2979 !bfd_link_executable.
2980 <R_SPARC_TLS_IE_HI22>: Likewise.
2981 <GOT relocations>: Remove useless code, tidy and merge related blocks.
2982 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
2983 !bfd_link_executable.
2984 <R_SPARC_WPLT30>: Tidy up.
2985 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
2986 !bfd_link_executable.
2987 (allocate_dynrelocs): Likewise.
2988 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
2989 <R_SPARC_TLS_GD_HI22>: Merge into...
2990 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
2991 sparc_elf_tls_transition and remove redundant code.
2992 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
2993 !bfd_link_executable.
2994 <R_SPARC_TLS_LDO_HIX22>: Likewise.
2995 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
2996 <R_SPARC_TLS_LDM_CALL>: Likewise.
2997 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
2998 <R_SPARC_TLS_GD_ADD>: Likewise.
2999 <R_SPARC_TLS_LDM_ADD>: Likewise.
3000 <R_SPARC_TLS_LDO_ADD>: Likewise.
3001 <R_SPARC_TLS_IE_LD>: Likewise.
3003 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
3006 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
3007 functions failed to find the function name, try the generic elf
3008 find function instead.
3010 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
3012 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
3013 'memcpy' instead of 'strncpy' when writing the magic number.
3015 2018-02-06 Nick Clifton <nickc@redhat.com>
3018 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
3019 section before attempting to read it in.
3020 (bfd_get_alt_debug_link_info): Likewise.
3022 2018-02-06 Paul Carroll <pcarroll@codesourcery.com>
3024 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
3025 line information in addition to name, if they can be found.
3027 2018-02-05 Renlin Li <renlin.li@arm.com>
3030 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
3031 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
3032 check for writeable section as well.
3034 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
3037 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
3038 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
3039 undefined weak symbol to 0.
3040 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
3041 if _GLOBAL_OFFSET_TABLE_ is referenced.
3042 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
3043 got_referenced instead of ref_regular_nonweak. Remove the
3044 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
3045 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
3047 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3049 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
3050 initialize `hi_reloc'.
3052 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3054 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
3055 SHT_MIPS_REGINFO sections don't assert the correct size and
3056 report an error instead.
3058 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3060 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
3061 status from `->elf_backend_section_processing'.
3063 2018-02-02 Jim Wilson <jimw@sifive.com>
3066 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
3067 If link_info->wrap_hash, check for a duplicate symbol and ignore.
3068 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
3069 Pass new argument to riscv_relax_delete_bytes.
3070 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
3071 ATTRIBUTE_UNUSED from link_info parameter.
3073 2018-02-02 Alan Modra <amodra@gmail.com>
3075 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
3076 emitted for toc sequence optimization. Set and use "howto" later.
3078 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
3080 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
3081 arithmetic on NULL pointer.
3082 * elflink.c (_bfd_elf_archive_symbol_lookup,
3083 elf_link_add_archive_symbols): Likewise.
3085 2018-01-31 Michael Matz <matz@suse.de>
3087 * elflink.c (bfd_elf_define_start_stop): Fix check of
3090 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
3093 * elflink.c (bfd_elf_define_start_stop): Check if __start and
3094 __stop symbols are referenced by shared objects.
3096 2018-01-30 Alan Modra <amodra@gmail.com>
3099 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
3100 segment when demand paged with lma on the same page. Test this
3101 before load/non-load, executable/non-executable,
3102 writable/non-writable tests and simplify. Delete bogus relro
3103 condition in writable/non-writable test. Delete outdated
3104 comment. Formatting.
3106 2018-01-30 Alan Modra <amodra@gmail.com>
3108 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
3111 2018-01-29 Alan Modra <amodra@gmail.com>
3114 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
3115 range before converting to a symbol table pointer.
3117 2018-01-27 Nick Clifton <nickc@redhat.com>
3119 * po/ru.po: Updated Russian translation.
3121 2018-01-26 Alan Modra <amodra@gmail.com>
3123 * elflink.c (bfd_elf_define_start_stop): Override symbols when
3124 they are defined dynamically.
3126 2018-01-26 Alan Modra <amodra@gmail.com>
3128 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
3129 .branch_lt changes size.
3131 2018-01-25 Alan Modra <amodra@gmail.com>
3134 * elfcode.h (elf_object_p): Avoid integer overflow.
3136 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
3139 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
3140 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
3143 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
3146 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
3147 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
3148 bfd_link_executable for TLS check.
3149 (_bfd_sparc_elf_check_relocs): Likewise.
3150 (allocate_dynrelocs): Likewise.
3151 (_bfd_sparc_elf_relocate_section): Likewise.
3153 2018-01-24 Renlin Li <renlin.li@arm.com>
3155 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
3156 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
3157 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
3158 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
3159 BFD_RELOC_AARCH64_MOVW_PREL_G3.
3160 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
3161 (_bfd_aarch64_elf_resolve_relocation): Likewise.
3163 2018-01-24 Renlin Li <renlin.li@arm.com>
3165 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
3166 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
3167 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
3168 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
3169 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
3170 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
3171 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
3172 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
3173 BFD_RELOC_AARCH64_MOVW_PREL_G3.
3174 * bfd-in2.h: Regenerate.
3175 * libbfd.h: Regenerate.
3177 2018-01-23 Maciej W. Rozycki <macro@mips.com>
3179 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
3180 `mips_elf32_section_processing' comment reference.
3182 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
3185 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
3186 versioned __tls_get_addr symbol.
3188 2018-01-19 Nick Clifton <nickc@redhat.com>
3190 * po/fr.po: Updated French translation.
3192 2018-01-18 Alan Modra <amodra@gmail.com>
3194 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
3195 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
3196 (ppc64_elf_build_stubs): Likewise.
3198 2018-01-17 Nick Clifton <nickc@redhat.com>
3200 * po/ru.po: Updated Russian translation.
3201 * po/uk/po: Updated Ukranian translation.
3203 2018-01-17 Alan Modra <amodra@gmail.com>
3205 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
3207 2018-01-17 Alan Modra <amodra@gmail.com>
3209 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
3210 (CRSETEQ, BEQCTRM): Define.
3211 (is_nonpic_glink_stub): Don't check bctr.
3212 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
3213 (ppc_elf_relax_section): Size speculation barrier.
3214 (output_bctr): New function.
3215 (write_glink_stub): Use output_bctr.
3216 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
3217 (ppc_elf_finish_dynamic_symbol): Likewise.
3218 (ppc_elf_finish_dynamic_sections): Use output_bctr.
3219 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
3220 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
3221 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
3222 (size_global_entry_stubs): Handle speculation barrier sizing.
3223 (plt_stub_size): Likewise.
3224 (output_bctr): New function.
3225 (build_plt_stub, build_tls_get_addr_stub): Output speculation
3227 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
3228 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
3229 (build_global_entry_stubs): Output speculation barrier.
3230 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
3231 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
3233 2018-01-17 Alan Modra <amodra@gmail.com>
3235 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
3236 __tls_get_addr_opt, and alignment sizing.
3237 (TLS_GET_ADDR_GLINK_SIZE): Delete.
3238 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
3239 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
3241 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
3242 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
3243 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
3245 (write_glink_stub): Handle __tls_get_addr_opt stub.
3246 Pad out to size given by GLINK_ENTRY_SIZE.
3247 (ppc_elf_relocate_section): Adjust write_glink_stub call.
3248 (ppc_elf_finish_dynamic_symbol): Likewise.
3249 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
3250 insn array since so many need rewriting.
3251 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
3252 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
3253 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
3254 nops. Adjust all uses.
3255 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
3256 in glink_vma calculation.
3257 (struct ppc_link_hash_table): Add global_entry section pointer.
3258 (create_linkage_sections): Create separate section for global
3260 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
3261 (size_global_entry_stubs): Handle sizing for aligned stubs.
3262 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
3263 and don't stash end of glink branch table in rawsize.
3264 (ppc_build_one_stub): Rewrite stub size calculations.
3265 (build_global_entry_stubs): Use new section.
3266 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
3267 Build lazy link stubs out to end of section. Build global entry
3268 stubs in new section.
3270 2018-01-15 Nick Clifton <nickc@redhat.com>
3272 * po/uk.po: Updated Ukranian translation.
3274 2018-01-13 Nick Clifton <nickc@redhat.com>
3276 * po/bfd.pot: Regenerated.
3278 2018-01-13 Nick Clifton <nickc@redhat.com>
3280 * version.m4: Bump version to 2.30.51
3281 * configure: Regenerate.
3283 2018-01-13 Nick Clifton <nickc@redhat.com>
3285 2.30 branch created.
3287 2018-01-12 Jens Widell <jl@opera.com>
3289 * elf.c (setup_group): Optimize search for group by remembering
3290 last found group and restarting search at that index.
3291 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
3293 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
3295 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
3296 bfd_link_common_skip_none in switch.
3298 2018-01-12 Alan Modra <amodra@gmail.com>
3301 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
3302 references on forced local symbols.
3304 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
3306 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
3307 .reginfo section has wrong size.
3309 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3312 * elf.c (_bfd_elf_map_sections_to_segments): When generating
3313 separate code and read-only data LOAD segments, create a new
3314 LOAD segment if the previous section contains text and the
3315 current section doesn't or vice versa. Don't put a writable
3316 section in a read-only segment if there is a RELRO segment.
3318 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3321 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
3322 references on forced local symbols.
3324 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3327 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
3328 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
3330 2018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com>
3333 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
3335 2018-01-03 John Baldwin <jhb@FreeBSD.org>
3337 * elf.c (elfcore_grok_freebsd_note): Handle
3338 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
3339 NT_FREEBSD_PROCSTAT_VMMAP.
3341 2018-01-03 Alan Modra <amodra@gmail.com>
3343 Update year range in copyright notice of all files.
3345 For older changes see ChangeLog-2017
3347 Copyright (C) 2018 Free Software Foundation, Inc.
3349 Copying and distribution of this file, with or without modification,
3350 are permitted in any medium without royalty provided the copyright
3351 notice and this notice are preserved.
3357 version-control: never