1 2018-07-05 Nick Clifton <nickc@redhat.com>
3 * po/ru.po: Updated Russian translation.
5 2018-07-05 Alan Modra <amodra@gmail.com>
7 * elf-bfd.h (_bfd_elf_ppc_merge_fp_attributes): Update prototype.
8 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Return error
9 on mismatch. Remove "warning: " from messages. Track last bfd
11 (ppc_elf_merge_obj_attributes): Likewise. Handle status from
12 _bfd_elf_ppc_merge_fp_attributes.
13 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data): Handle status
14 from _bfd_elf_ppc_merge_fp_attributes.
16 2018-07-04 H.J. Lu <hongjiu.lu@intel.com>
18 * Makefile.am (bfdinclude_HEADERS): Add $(INCDIR)/diagnostics.h.
19 * Makefile.in: Regenerated.
21 2018-07-03 Alan Modra <amodra@gmail.com>
23 * elflink.c (bfd_elf_final_link): Remove zero size .gnu.attributes
26 2018-07-03 Alan Modra <amodra@gmail.com>
28 * elf-bfd.h (ATTR_TYPE_FLAG_ERROR, ATTR_TYPE_HAS_ERROR): Define.
29 * elf-attrs.c (is_default_attr): Handle ATTR_TYPE_HAS_ERROR.
30 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Use
31 ATTR_TYPE_FLAG_INT_VAL. Set ATTR_TYPE_HAS_ERROR on finding
32 incompatible attribute.
33 (ppc_elf_merge_obj_attributes): Likewise. Return
34 _bfd_elf_merge_object_attributes result.
35 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data): Return
36 _bfd_elf_merge_object_attributes result.
38 2018-07-03 Alan Modra <amodra@gmail.com>
41 * elflink.c (_bfd_elf_fix_symbol_flags): Hide dynamic symbols
42 in discarded sections.
44 2018-07-02 Maciej W. Rozycki <macro@mips.com>
46 * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Set
47 `mark' for symbols created from `mips_elf_dynsym_rtproc_names'
50 2018-07-02 Maciej W. Rozycki <macro@mips.com>
52 * elf64-mips.c (micromips_elf64_howto_table_rel): Add
53 R_MICROMIPS_HI0_LO16, R_MICROMIPS_TLS_GD, R_MICROMIPS_TLS_LDM,
54 R_MICROMIPS_TLS_DTPREL_HI16, R_MICROMIPS_TLS_DTPREL_LO16,
55 R_MICROMIPS_TLS_GOTTPREL, R_MICROMIPS_TLS_TPREL_HI16,
56 R_MICROMIPS_TLS_TPREL_LO16, R_MICROMIPS_GPREL7_S2 and
57 R_MICROMIPS_PC23_S2 relocation entries.
58 (micromips_elf64_howto_table_rela): Likewise.
59 (micromips_reloc_map): Likewise.
60 * elfn32-mips.c (elf_micromips_howto_table_rel): Likewise.
61 (elf_micromips_howto_table_rela): Likewise.
62 (micromips_reloc_map): Likewise.
64 2018-07-02 H.J. Lu <hongjiu.lu@intel.com>
67 * elf64-x86-64.c (elf_x86_64_relocate_section): Clear the
68 R_X86_64_converted_reloc_bit bit.
70 2018-07-02 Jeff Muizelaar <jrmuizel@gmail.com>
71 Tom Tromey <tom@tromey.com>
75 * mach-o.c (bfd_mach_o_fat_close_and_cleanup): New function.
76 (bfd_mach_o_close_and_cleanup): Redefine.
77 * archive.c (_bfd_unlink_from_archive_parent): New function,
79 (_bfd_archive_close_and_cleanup): ..here.
80 (bfd_generic_archive_p): Do not clear archive's format.
81 * libbfd-in.h (_bfd_unlink_from_archive_parent): Declare.
82 * libbfd.h: Regenerate.
84 2018-07-02 Thomas Preud'homme <thomas.preudhomme@arm.com>
86 * archures.c (bfd_mach_arm_5TEJ, bfd_mach_arm_6, bfd_mach_arm_6KZ,
87 bfd_mach_arm_6T2, bfd_mach_arm_6K, bfd_mach_arm_7, bfd_mach_arm_6M,
88 bfd_mach_arm_6SM, bfd_mach_arm_7EM, bfd_mach_arm_8, bfd_mach_arm_8R,
89 bfd_mach_arm_8M_BASE, bfd_mach_arm_8M_MAIN): Define.
90 * bfd-in2.h: Regenerate.
91 * cpu-arm.c (arch_info_struct): Add entries for above new
93 * elf32-arm.c (bfd_arm_get_mach_from_attributes): Add Tag_CPU_arch to
94 bfd_mach_arm mapping logic for pre Armv4 and Armv5TEJ and later
95 architectures. Force assert failure for any new Tag_CPU_arch value.
97 2018-07-02 Thomas Preud'homme <thomas.preudhomme@arm.com>
99 * doc/bfdint.texi: Use command-line consistently when used in a
101 * doc/bfdsumm.texi: Likewise.
103 2018-06-29 Maciej W. Rozycki <macro@mips.com>
105 * elfxx-mips.c (allocate_dynrelocs): Remove extraneous symbol
106 visibility check made for undefined weak symbols.
108 2018-06-26 Nick Clifton <nickc@redhat.com>
110 * po/uk.po: Updated Ukranian translation.
112 2018-06-25 Nick Clifton <nickc@redhat.com>
114 * elfnn-aarch64.c (_bfd_aarch64_erratum_835769_stub_name): Check
115 for malloc returning NULL.
116 (_bfd_aarch64_erratum_843419_fixup): Check for
117 _bfd_aarch64_erratum_835769_stub_name returning NULL.
119 2018-06-24 Nick Clifton <nickc@redhat.com>
121 * po/bfd.pot: Regenerate.
123 2018-06-24 Nick Clifton <nickc@redhat.com>
125 * version.m4: Update version string to 2.31.51.
126 * configure: Regenerate.
128 2018-06-24 Nick Clifton <nickc@redhat.com>
132 2018-06-21 Maciej W. Rozycki <macro@mips.com>
134 * elfxx-mips.c (_bfd_mips_elf_compact_eh_encoding)
135 (_bfd_mips_elf_cant_unwind_opcode): Correct formatting.
137 2018-06-21 Maciej W. Rozycki <macro@mips.com>
139 * elfxx-mips.c (_bfd_mips_post_process_headers): Keep
140 EI_ABIVERSION setting together.
142 2018-06-21 Maciej W. Rozycki <macro@mips.com>
144 * elfxx-mips.c (MIPS_LIBC_ABI_DEFAULT, MIPS_LIBC_ABI_MIPS_PLT)
145 (MIPS_LIBC_ABI_UNIQUE, MIPS_LIBC_ABI_MIPS_O32_FP64)
146 (MIPS_LIBC_ABI_MAX): New enumeration constants.
147 (_bfd_mips_post_process_headers): Use them in place of magic
150 2018-06-21 Jim Wilson <jimw@sifive.com>
152 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Update comment.
153 Use SYMBOL_REFERENCES_LOCAL. Add asserts for h->got.offset.
155 2018-06-21 Alan Modra <amodra@gmail.com>
157 * doc/Makefile.am (AUTOMAKE_OPTIONS): Add "foreign".
158 * doc/Makefile.in: Regenerate.
160 2018-06-20 Renlin Li <renlin.li@arm.com>
162 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use PG_OFFSET
163 to resolve BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC,
164 BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC,
165 BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC,
166 BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC,
167 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
168 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
169 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
170 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
172 2018-06-20 Nick Clifton <nickc@redhat.com>
175 * opncls.c (get_build_id): Check for a negative or excessive data
176 size in the build-id note.
178 2018-06-20 Nick Clifton <nickc@redhat.com>
181 * mach-o.c (cputype): New function.
182 (cpusubtype): New function.
183 (bfd_mach_o_bfd_print_private_data): New function. Dispalys the
184 values in the MACH-O file header.
185 (bfd_mach_o_bfd_copy_private_header_data): Copy the cputype and
186 cpusubtype fields from the input bfd's mach-o header to the output
188 * mach-o-target.c (bfd_mach_o_bfd_print_private_bfd_data):
189 Redefine to bfd_mach_o_bfd_print_private_data.
190 * mach-o.h (bfd_mach_o_bfd_print_private_bfd_data): Prototype.
192 2018-06-19 Maciej W. Rozycki <macro@mips.com>
195 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Verify the
196 `.got.plt' entry referred is in range.
197 (mips_finish_exec_plt): Correct the range check for `.got.plt'
198 start. Replace the assertion used for that with a proper error
201 2018-06-19 Maciej W. Rozycki <macro@mips.com>
203 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Fix
206 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
208 * Makefile.am (AUTOMAKE_OPTIONS): Remove 1.11.
209 (INCLUDES): Rename to ...
210 (AM_CPPFLAGS): ... this.
211 * configure.ac: Remove AC_PREREQ.
212 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove 1.9, cygnus, add
213 info-in-builddir no-texinfo.tex.
214 (info_TEXINFOS): Rename bfd.texinfo to bfd.texi.
215 * doc/bfd.texinfo: Rename to ...
216 * doc/bfd.texi: ... this.
217 * Makefile.in: Re-generate.
218 * aclocal.m4: Re-generate.
219 * config.in: Re-generate.
220 * configure: Re-generate.
221 * doc/Makefile.in: Re-generate.
223 2018-06-18 Mephi <mephi42@gmail.com>
226 * mach-o-x86-64.c (x86_64_howto_table): Add entry for
227 BFD_RELOC_MACH_O_X86_64_RELOC_TLV.
228 (bfd_mach_o_x86_64_canonicalize_one_reloc): Handle the new reloc.
229 (bfd_mach_o_x86_64_swap_reloc_out): Likewise.
230 * reloc.c (BFD_RELOC_MACH_O_X86_64_TV): New entry.
231 * bfd-in2.h: Regenerate.
232 * libbfd.h: Regenerate.
234 2018-06-14 Faraz Shahbazker <Faraz.Shahbazker@mips.com>
236 * elfxx-mips.c (print_mips_ases): Add GINV extension.
238 2018-06-14 H.J. Lu <hongjiu.lu@intel.com>
241 * elf.c (_bfd_elf_get_symbol_version_string): Check if the first
242 symbol version is base version.
244 2018-06-14 Alan Modra <amodra@gmail.com>
246 * elf-bfd.h (struct elf_link_hash_table): Add "dynamic_relocs".
247 * elflink.c (_bfd_elf_init_2_index_sections): Comment fix.
248 (_bfd_elf_add_dynamic_entry): Set "dynamic_relocs".
249 (_bfd_elf_link_renumber_dynsyms): Exclude all section symbols when
250 "dynamic_relocs" is not set.
251 * elfxx-mips.c (count_section_dynsyms): Likewise.
253 2018-06-14 Alan Modra <amodra@gmail.com>
256 * bfdio.c (bfd_seek): Optimize away seeks to current position.
258 2018-06-13 Scott Egerton <scott.egerton@imgtec.com>
259 Faraz Shahbazker <Faraz.Shahbazker@mips.com>
261 * elfxx-mips.c (print_mips_ases): Add CRC.
263 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
266 * elfxx-x86.c (elf_x86_hide_linker_defined): New function.
267 (_bfd_x86_elf_link_check_relocs): Use it to hide hidden
268 __bss_start, _end and _edata in shared libraries.
270 2018-06-07 Alan Modra <amodra@gmail.com>
272 * elf32-tic6x.c (elf32_tic6x_check_relocs): Reference
273 __c6xabi_DSBT_BASE explicitly for R_C6000_SBR_* relocs.
275 2018-06-05 Alan Modra <amodra@gmail.com>
277 * bfd.c (struct bfd): Update comment on "where" usage.
278 * bfdio.c (bfd_bwrite, bfd_stat): Use and update "iovec",
279 "iostream", and "where" from containing archive file. Return
281 (bfd_bread): Similarly, and return error attempted out of
282 bounds archive element access.
283 (bfd_tell, bfd_flush): Use and update "iovec", "iostream", and
284 "where" from containing archive file.
285 (bfd_seek): Likewise. Return error on NULL iovec. Don't
286 attempt to optimize away seeks. Don't paper over errors by
288 (bfd_get_mtime): Call bfd_stat rather than iovec->bstat.
289 (bfd_get_size): Likewise.
290 (bfd_mmap): Operate on and use iovec of containing archive
291 file. Return error on NULL iovec.
292 * cache.c (bfd_cache_lookup_worker): Abort if working on
294 (cache_bread_1): Delete bfd parameter, add FILE* parameter.
295 Don't ignore zero byte reads.
296 (cache_bread): Look up FILE* in cache here. Error on NULL
298 (cache_bwrite): Rename "where" to "from".
299 (cache_bmmap): Don't handle archive elements.
300 * coffcode.h (coff_slurp_line_table): Exit early on zero
302 * bfd-in2.h: Regenerate.
304 2018-06-05 Alan Modra <amodra@gmail.com>
307 * plugin.c (bfd_plugin_open_input): Allow for possibility of
308 nested archives. Open file again for plugin.
309 (try_claim): Don't save and restore file position. Close file
311 * sysdep.h (O_BINARY): Define.
313 2018-06-04 Max Filippov <jcmvbkbc@gmail.com>
315 * elf32-xtensa.c (xtensa_read_table_entries): Make global.
316 (compute_fill_extra_space): Drop declaration. Rename function to
317 xtensa_compute_fill_extra_space.
318 (compute_ebb_actions, remove_dead_literal): Update references to
319 compute_fill_extra_space.
321 2018-06-04 Volodymyr Arbatov <arbatov@cadence.com>
323 * elf32-xtensa.c (elf32xtensa_separate_props): New global
325 (xtensa_add_names): New function.
326 (xtensa_property_section_name): Add new parameter
327 separate_sections, use it to choose property section name.
328 (xtensa_get_separate_property_section): New function.
329 (xtensa_get_property_section): Invoke
330 xtensa_get_separate_property_section to get individual property
331 section if it exists, common property section otherwise.
332 (xtensa_make_property_section): Pass elf32xtensa_separate_props
333 to xtensa_property_section_name.
335 2018-06-04 H.J. Lu <hongjiu.lu@intel.com>
338 * bfd-in.h: Include "diagnostics.h".
339 * bfd-in2.h: Regenerated.
340 * elf32-arm.c (elf32_arm_nabi_write_core_note): Use
341 DIAGNOSTIC_PUSH, DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION and
342 DIAGNOSTIC_POP to silence GCC 8.1 warnings with
343 -Wstringop-truncation.
344 * elf32-ppc.c (ppc_elf_write_core_note): Likewse.
345 * elf32-s390.c (elf_s390_write_core_note): Likewse.
346 * elf64-ppc.c (ppc64_elf_write_core_note): Likewse.
347 * elf64-s390.c (elf_s390_write_core_note): Likewse.
348 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewse.
350 2018-06-03 Jim Wilson <jimw@sifive.com>
353 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Check
354 for and handle an undefined weak with no PLT.
357 * elfnn-riscv.c (riscv_relax_delete_bytes): Add versioned_hidden check
358 to code that ignores duplicate symbols.
360 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
362 * version.m4: Bump version to 2.30.52
363 * configure: Regenerated.
365 2018-06-01 Alan Modra <amodra@gmail.com>
367 * bfd.c (_bfd_error_handler): Arrange for this function to be
368 declared in bfd-in2.h.
369 * libbfd-in.h (_bfd_error_handler): Don't declare.
370 * libbfd.h: Regenerate.
371 * bfd-in2.h: Regenerate.
373 2018-05-30 Amaan Cheval <amaan.cheval@gmail.com>
375 * config.bfd (x86_64-*-*): Add pei-x86-64 target to x86_64-*-rtems*
376 This is needed to generate UEFI application image files from ELFs.
378 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
380 * elf32-i386.c (elf_i386_lazy_plt): Add plt_tlsdesc_entry,
381 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
382 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
383 plt_tlsdesc_got2_insn_end for TLSDESC entry.
384 (elf_i386_lazy_ibt_plt): Likewise.
385 (elf_i386_nacl_plt): Likewise.
386 * elf64-x86-64.c (tlsdesc_plt_entry): Moved and renamed to ...
387 (elf_x86_64_tlsdesc_plt_entry): This.
388 (elf_x86_64_lazy_plt): Add plt_tlsdesc_entry,
389 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
390 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
391 plt_tlsdesc_got2_insn_end for TLSDESC entry.
392 (elf_x86_64_lazy_bnd_plt): Likewise.
393 (elf_x86_64_lazy_ibt_plt): Likewise.
394 (elf_x32_lazy_ibt_plt): Likewise.
395 (elf_x86_64_nacl_plt): Likewise.
396 (elf_x86_64_finish_dynamic_sections): Use plt_tlsdesc_entry,
397 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
398 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
399 plt_tlsdesc_got2_insn_end to update TLSDESC entry.
400 * elfxx-x86.h (elf_x86_lazy_plt_layout): Update comments.
401 Add plt_tlsdesc_entry, plt_tlsdesc_entry_size,
402 plt_tlsdesc_got1_offset, plt_tlsdesc_got2_offset,
403 plt_tlsdesc_got1_insn_end and plt_tlsdesc_got2_insn_end.
404 (elf_x86_non_lazy_plt_layout): Update comments.
405 (elf_x86_plt_layout): Likewise.
407 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
410 * elf-s390-common.c (elf_s390_add_symbol_hook): Removed.
411 * elf32-arc.c (elf_arc_add_symbol_hook): Likewise.
412 (elf_backend_add_symbol_hook): Likewise.
413 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
414 (elf_backend_add_symbol_hook): Likewise.
415 * elf32-s390.c (elf_backend_add_symbol_hook): Likewise.
416 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
417 (elf_backend_add_symbol_hook): Likewise.
418 * elf64-s390.c (elf_backend_add_symbol_hook): Likewise.
419 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
420 * elfxx-aarch64.h (_bfd_aarch64_elf_add_symbol_hook): Likewise.
421 (elf_backend_add_symbol_hook): Likewise.
422 * elf32-arm.c (elf32_arm_add_symbol_hook): Remove STT_GNU_IFUNC
424 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
425 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
426 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
427 * elflink.c (elf_link_add_object_symbols): Set
428 elf_gnu_symbol_ifunc for STT_GNU_IFUNC symbols.
430 2018-05-26 H.J. Lu <hongjiu.lu@intel.com>
433 * elf-bfd.h (_bfd_elf_link_hide_sym_by_version): New.
434 * elflink.c (_bfd_elf_link_hide_versioned_symbol): New function.
435 Extracted from _bfd_elf_link_assign_sym_version.
436 (_bfd_elf_link_hide_sym_by_version): New function.
437 (_bfd_elf_link_assign_sym_version): Use
438 _bfd_elf_link_hide_versioned_symbol.
439 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Call
440 _bfd_elf_link_hide_sym_by_version instead of
441 bfd_hide_sym_by_version. Don't check unversioned symbol.
443 2018-05-25 Alan Modra <amodra@gmail.com>
445 * Makefile.in: Regenerate.
446 * po/SRC-POTFILES.in: Regenerate.
448 2018-05-25 Alan Modra <amodra@gmail.com>
450 * configure.ac (bfd_cv_hidden): Run test with -Werror in CFLAGS.
451 * configure: Regenerate.
453 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
455 * elf64-ppc.c (ppc64_elf_write_core_note): Add ATTRIBUTE_NONSTRING
458 2018-05-22 Alan Modra <amodra@gmail.com>
461 * elf32-hppa.c (hppa_get_stub_entry): Return NULL when link_sec
463 (elf32_hppa_size_stubs): Only create stubs for load, alloc, code
465 (final_link_relocate): Revert last change.
467 2018-05-22 Alan Modra <amodra@gmail.com>
470 * elf32-hppa.c (final_link_relocate): Don't look for plt call
471 stubs in non-alloc sections.
473 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
476 * aout-target.h (MY_bfd_link_hide_symbol): New.
477 * aout-tic30.c (MY_bfd_link_hide_symbol): Likewise.
478 * binary.c (binary_bfd_link_hide_symbol): Likewise.
479 * coff-alpha.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
480 * coff-mips.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
481 * coff-rs6000.c (_bfd_xcoff_bfd_link_hide_symbol): Likewise.
482 * coffcode.h (coff_bfd_link_hide_symbol): Likewise.
483 * elf-bfd.h (_bfd_elf_link_hide_symbol): Likewise.
484 * elfxx-target.h (bfd_elfNN_bfd_link_hide_symbol): Likewise.
485 * i386msdos.c (msdos_bfd_link_hide_symbol): Likewise.
486 * ihex.c (ihex_bfd_link_hide_symbol): Likewise.
487 * libbfd-in.h (_bfd_nolink_bfd_link_hide_symbol): Likewise.
488 * linker.c (_bfd_generic_link_hide_symbol): Likewise.
489 (bfd_link_hide_symbol): Likewise.
490 * mach-o-target.c (bfd_mach_o_bfd_link_hide_symbol): Likewise.
491 * mmo.c (mmo_bfd_link_hide_symbol): Likewise.
492 * pef.c (bfd_pef_bfd_link_hide_symbol): Likewise.
493 * plugin.c (bfd_plugin_bfd_link_hide_symbol): Likewise.
494 * ppcboot.c (ppcboot_bfd_link_hide_symbol): Likewise.
495 * som.c (som_bfd_link_hide_symbol): Likewise.
496 * srec.c (srec_bfd_link_hide_symbol): Likewise.
497 * tekhex.c (tekhex_bfd_link_hide_symbol): Likewise.
498 * vms-alpha.c (vms_bfd_link_hide_symbol): Likewise.
499 (alpha_vms_bfd_link_hide_symbol): Likewise.
500 * xsym.c (bfd_sym_bfd_link_hide_symbol): Likewise.
501 * coff64-rs6000.c (rs6000_xcoff64_vec): Add
502 _bfd_generic_link_hide_symbol.
503 (rs6000_xcoff64_aix_vec): Likewise.
504 * elflink.c (bfd_elf_record_link_assignment): Don't make forced
505 local symbol dynamic.
506 (_bfd_elf_link_hide_symbol): New function.
507 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
508 check root.ldscript_def.
509 * targets.c (bfd_target): Add _bfd_link_hide_symbol.
510 (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_link_hide_symbol.
511 * bfd-in2.h: Regenerated.
512 * libbfd.h: Likewise.
514 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
517 * elf.c (setup_group): Mark section in a section group with
520 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
523 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
524 set eh->local_ref to 1 if a symbol is versioned and there is a
527 2018-05-18 Kito Cheng <kito.cheng@gmail.com>
529 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Handle
532 2018-05-18 Jim Wilson <jimw@sifive.com>
534 * elfnn-riscv.c (allocate_dynrelocs): Discard dynamic relocations if
535 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
536 (riscv_elf_relocate_section): Don't generate dynamic relocation if
537 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
538 (riscv_elf_finish_dynamic_symbol): Likewise.
540 2018-05-18 John Darrington <john@darrington.wattle.id.au>
542 * Makefile.am: Add s12z files.
543 * Makefile.in: Regenerate.
544 * archures.c: Add bfd_s12z_arch.
545 * bfd-in.h: Add exports of bfd_putb24 and bfd_putl24.
546 * bfd-in2.h: Regenerate.
547 * config.bfd: Add s12z target.
548 * configure.ac: Add s12z target.
549 * configure: Regenerate.
550 * cpu-s12z.c: New file.
551 * elf32-s12z.c: New file.
552 * libbfd.c (bfd_putb24): New function.
553 (bfd_putl24): New function.
554 * libbfd.h: Regenerate.
555 * reloc.c: Add s12z relocations.
556 (bfd_get_reloc_size): Handle size 5 relocs.
557 * targets.c: Add s12z_elf32_vec.
559 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
562 * elf32-i386.c (elf_i386_relocate_section): Handle R_386_GOT32X
564 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
565 set eh->local_ref to 1 for linker defined symbols.
567 2018-05-18 Alan Modra <amodra@gmail.com>
570 * elf.c (setup_group): Formatting. Check that SHT_GROUP entries
571 don't point at other SHT_GROUP sections. Set shdr corresponding
572 to invalid entry, to NULL rather than section 0. Identify
573 SHT_GROUP section index when reporting an error. Cope with NULL
576 2018-05-18 Alan Modra <amodra@gmail.com>
578 * libbfd-in.h (ATTRIBUTE_HIDDEN): Define and use throughout.
579 * configure.ac (HAVE_HIDDEN): Check compiler support for hidden
581 * libbfd.h: Regenerate.
582 * configure: Regenerate.
583 * config.in: Regenerate.
585 2018-05-18 Alan Modra <amodra@gmail.com>
587 * libbfd-in.h: Add include guard.
588 * libcoff-in.h: Likewise.
589 * doc/Makefile.am (libbfd.h, libcoff.h): Append another #endif.
590 * doc/Makefile.in: Regenerate.
591 * libbfd.h: Regenerate.
592 * libcoff.h: Regenerate.
594 2018-05-16 Maciej W. Rozycki <macro@mips.com>
596 * elf32-nds32.c (nds32_convert_32_to_16): Preset `insn_type'.
598 2018-05-16 Alan Modra <amodra@gmail.com>
601 * format.c (struct bfd_preserve): Add section_id.
602 (bfd_preserve_save, bfd_preserve_restore): Save and restore
604 (bfd_reinit): Set _bfd_section_id.
605 (bfd_check_format_matches): Put all matches of any priority into
606 matching_vector. Save initial section id and start each attempted
607 match at that section id.
608 * libbfd-in.h (_bfd_section_id): Declare.
609 * section.c (_bfd_section_id): Rename from section_id and make
611 (bfd_get_next_section_id): Delete.
612 * elf64-ppc.c (ppc64_elf_setup_section_lists): Replace use of
613 bfd_get_section_id with _bfd_section_id.
614 * libbfd.h: Regenerate.
615 * bfd-in2.h: Regenerate.
617 2018-05-15 Christophe Guillon <christophe.guillon@st.com>
619 * coffcode.h (coff_bigobj_swap_aux_in): Make sure that all fields
620 of the aux structure are initialised.
622 2018-05-15 Francois H. Theron <francois.theron@netronome.com>
624 * targets.c: Wrap nfp_elf64_vec in BFD64 ifdef.
626 2018-05-15 Nick Clifton <nickc@redhat.com>
628 * po/pt.po: New Portuguese translation.
629 * configure.ac (ALL_LINGUAS): Add pt.
630 * configure: Regenerate.
632 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
635 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Don't issue
636 an error on IFUNC pointer defined in PDE.
637 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Call
638 _bfd_x86_elf_link_fixup_ifunc_symbol.
639 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
640 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): New
642 * elfxx-x86.h (_bfd_x86_elf_link_fixup_ifunc_symbol): New.
644 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
647 * elfxx-x86.c (elf_x86_linker_defined): New function.
648 (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start,
649 _end and _edata locally defined within executables.
651 2018-05-12 Alan Modra <amodra@gmail.com>
654 * elf.c (rewrite_elf_program_header): Use segment_mark only for
655 PT_LOAD headers. Delete first_matching_lma and first_suggested_lma.
656 Instead make matching_lma and suggested_lma pointers to the
657 sections. Align section vma and lma calculated from segment.
658 Don't clear includes_phdrs or includes_filehdr based on p_paddr
659 test. Try to handle alignment padding before first section by
660 adjusting new segment lma down. Adjust PT_PHDR map p_paddr.
662 2018-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
664 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Make LDI32 relocation
665 conformant to TI ABI.
666 (pru_elf32_relax_section): Likewise.
667 (pru_elf_relax_delete_bytes): Fix offsets for new LDI32 code.
668 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Ignore addend.
669 (pru_elf32_pmem_relocate): Trap - should not get here.
670 (pru_elf32_relocate_section): Add support for REL relocations.
671 (elf_info_to_howto_rel): Enable REL.
672 (elf_backend_may_use_rel_p): Likewise.
673 (elf_backend_may_use_rela_p): Likewise.
674 (elf_backend_default_use_rela_p): Likewise.
676 2018-05-09 Alan Modra <amodra@gmail.com>
679 * peXXigen.c (pe_print_edata): Correct minimum size.
681 2018-05-09 Alan Modra <amodra@gmail.com>
684 * peXXigen.c (pe_print_idata): Bound check hint_addr.
686 2018-05-08 Nick Clifton <nickc@redhat.com>
689 * elf.c (bfd_elf_get_str_section): Check for an excessively large
691 * elf-attrs.c (_bfd_elf_parse_attributes): Issue an error if the
692 attribute section is larger than the size of the file.
694 2018-05-07 Alan Modra <amodra@gmail.com>
696 * cofflink.c (_bfd_coff_link_input_bfd): Use memcmp rather than
697 strncmp when checking for ".bf" special symbol.
698 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Make pe_required_section_flags
699 section name a char array, remove sentinal known_sections entry,
700 and adjust loop over known_sections to suit. Use memcmp rather
703 2018-05-04 Alan Modra <amodra@gmail.com>
705 * elf-linux-core.h (struct elf_external_linux_prpsinfo32_ugid32),
706 (struct elf_external_linux_prpsinfo32_ugid16),
707 (struct elf_external_linux_prpsinfo64_ugid32),
708 (struct elf_external_linux_prpsinfo64_ugid16): Add ATTRIBUTE_NONSTRING
709 to pr_fname and pr_psargs fields. Remove GCC diagnostic pragmas.
711 * elf.c (elfcore_write_prpsinfo): ..here. Indent nested preprocessor
713 * elf32-arm.c (elf32_arm_nabi_write_core_note): Add ATTRIBUTE_NONSTRING
715 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
716 * elf32-s390.c (elf_s390_write_core_note): Likewise.
717 * elf64-s390.c (elf_s390_write_core_note): Likewise.
718 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
719 * elf64-x86-64.c (elf_x86_64_write_core_note): Add GCC diagnostic
721 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Use strnlen to avoid
722 false positive gcc-8 warning.
723 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
725 2018-05-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
727 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Fix the order
728 of arguments when warning about different long double types.
730 2018-05-03 Simon Atanasyan <simon@atanasyan.com>
732 * elf32-mips.c: (elf32_mips_fixup_symbol): New function.
733 (elf_backend_fixup_symbol): New macro.
734 * elfxx-mips.c: (mips_elf_output_extsym): Discard _gp_disp
736 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
738 2018-04-30 Francois H. Theron <francois.theron@netronome.com>
740 * Makefile.am: Added NFP files to build.
741 * archures.c: Added bfd_arch_nfp
742 * config.bfd: Added NFP support.
743 * configure.ac: Added NFP support.
744 * cpu-nfp.c: New, for NFP support.
745 * elf-bfd.h: Added elf_section_info()
746 * elf64-nfp.c: New, for NFP support.
747 * po/SRC-POTFILES.in: Added NFP source files.
748 * targets.c: Added nfp_elf64_vec
749 * bfd-in2.h: Regenerate.
750 * Makefile.in: Regenerate.
751 * configure: Regenerate.
753 2018-04-27 Alan Modra <amodra@gmail.com>
755 * bfd-in2.h: Regenerate.
756 * libbfd.h: Regenerate.
758 2018-04-27 Alan Modra <amodra@gmail.com>
762 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't drop plt
764 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Comment fixes.
766 2018-04-26 Pedro Alves <palves@redhat.com>
768 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't consider
769 ifunc and non-ifunc symbols duplicates.
771 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
772 Mickaël Guêné <mickael.guene@st.com>
774 * elf32-arm.c (elf32_arm_fdpic_thumb_plt_entry): New.
775 (elf32_arm_plt_needs_thumb_stub_p): Handle thumb-only case.
776 (elf32_arm_populate_plt_entry): Likewise.
777 (elf32_arm_output_plt_map_1): Likewise.
778 (elf32_arm_output_arch_local_syms): Likewise.
780 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
781 Mickaël Guêné <mickael.guene@st.com>
783 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Handle
784 _GLOBAL_OFFSET_TABLE_ in FDPIC mode.
786 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
787 Mickaël Guêné <mickael.guene@st.com>
789 * elf32-arm.c (bfd_elf32_arm_set_target_params): Handle FDPIC case
792 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
793 Mickaël Guêné <mickael.guene@st.com>
795 * elf32-arm.c (DEFAULT_STACK_SIZE): New.
796 (elf32_arm_always_size_sections): Create stack segment.
798 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
799 Mickaël Guêné <mickael.guene@st.com>
801 * bfd-in2.h (BFD_RELOC_ARM_TLS_GD32_FDPIC)
802 (BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC): New
804 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_TLS_GD32_FDPIC,
805 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC relocations.
806 (elf32_arm_reloc_map): Add R_ARM_TLS_GD32_FDPIC,
807 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC.
808 (struct elf32_arm_link_hash_table): Update comment.
809 (elf32_arm_final_link_relocate): Handle TLS FDPIC relocations.
810 (IS_ARM_TLS_RELOC): Likewise.
811 (elf32_arm_check_relocs): Likewise.
812 (allocate_dynrelocs_for_symbol): Likewise.
813 (elf32_arm_size_dynamic_sections): Update comment.
814 * reloc.c: Add BFD_RELOC_ARM_TLS_GD32_FDPIC,
815 BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC.
817 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
818 Mickaël Guêné <mickael.guene@st.com>
820 * elf32-arm.c (elf32_arm_fdpic_plt_entry): New.
821 (elf32_arm_create_dynamic_sections): Handle FDPIC.
822 (elf32_arm_allocate_plt_entry): Likewise.
823 (elf32_arm_populate_plt_entry): Likewise.
824 (elf32_arm_output_plt_map_1): Likewise.
826 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
827 Mickaël Guêné <mickael.guene@st.com>
829 * elf32-arm.c (struct fdpic_local): New.
830 (elf_arm_obj_tdata): Add local_fdpic_cnts field.
831 (elf32_arm_local_fdpic_cnts): New.
832 (struct fdpic_global): New.
833 (elf32_arm_link_hash_entry): Add fdpic_cnts field.
834 (elf32_arm_link_hash_table): Add srofixup field.
835 (arm_elf_add_rofixup): New.
836 (arm_elf_fill_funcdesc): New.
837 (elf32_arm_link_hash_newfunc): Handle fdpic_cnts.
838 (elf32_arm_allocate_local_sym_info): Likewise.
839 (create_got_section): Create .rofixup section.
840 (elf32_arm_copy_indirect_symbol): Handle fdpic_cnts.
841 (bfd_elf32_arm_set_target_params): Handle FDPIC.
842 (elf32_arm_final_link_relocate): Likewise.
843 (elf32_arm_check_relocs): Likewise.
844 (allocate_dynrelocs_for_symbol): Likewise.
845 (elf32_arm_size_dynamic_sections): Likewise.
846 (elf32_arm_finish_dynamic_sections): Likewise.
847 (elf32_arm_output_arch_local_syms): Likewise.
848 (elf32_arm_fdpic_omit_section_dynsym): New.
850 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
851 Mickaël Guêné <mickael.guene@st.com>
853 * bfd-in2.c (BFD_RELOC_ARM_GOTFUNCDESC)
854 (BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC)
855 (BFD_RELOC_ARM_FUNCDESC_VALUE): New.
856 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_GOTFUNCDESC,
857 R_ARM_GOTOFFFUNCDESC, R_ARM_FUNCDESC, R_ARM_FUNCDESC_VALUE.
858 (elf32_arm_howto_from_type): Take new members of
859 elf32_arm_howto_table_2 into account.
860 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_GOTFUNCDESC,
861 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
862 BFD_RELOC_ARM_FUNCDESC_VALUE.
863 * reloc.c: Add BFD_RELOC_ARM_GOTFUNCDESC,
864 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
865 BFD_RELOC_ARM_FUNCDESC_VALUE.
867 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
868 Mickaël Guêné <mickael.guene@st.com>
870 * elf32-arm.c (elf32_arm_print_private_bfd_data): Support
871 EF_ARM_PIC and ELFOSABI_ARM_FDPIC.
872 (elf32_arm_post_process_headers): Support ELFOSABI_ARM_FDPIC.
873 (ELF_OSABI): Define to ELFOSABI_ARM_FDPIC.
875 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
876 Mickaël Guêné <mickael.guene@st.com>
878 * config.bfd (arm*-*-linux-*): Add arm_elf32_fdpic_be_vec and
879 arm_elf32_fdpic_le_vec to targ_selvecs. Accept
880 arm*-*-uclinuxfdpiceabi.
881 * configure.ac: Add support for arm_elf32_fdpic_be_vec and
882 arm_elf32_fdpic_le_vec.
883 * configure: Regenerate.
884 * elf32-arm.c (struct elf32_arm_link_hash_table): Add fdpic_p.
885 (elf32_arm_link_hash_table_create): Initialize fdpic_p.
886 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM)
887 (TARGET_BIG_NAME, elf_match_priority): Define for FDPIC targets.
888 (elf32_arm_fdpic_link_hash_table_create): New.
889 * targets.c (_bfd_target_vector): Add arm_elf32_fdpic_be_vec and
890 arm_elf32_fdpic_le_vec.
892 2018-04-25 Alan Modra <amodra@gmail.com>
894 * elf-linux-core.h: Disable gcc-8 string truncation warning.
895 * elf.c (elfcore_write_prpsinfo): Likewise.
897 2018-04-25 Alan Modra <amodra@gmail.com>
899 * Makefile.am: Remove arm-aout and arm-coff support.
900 * config.bfd: Likewise.
901 * configure.ac: Likewise.
902 * targets.c: Likewise.
903 * aout-arm.c: Delete.
904 * armnetbsd.c: Delete.
906 * Makefile.in: Regenerate.
907 * configure: Regenerate.
908 * po/SRC-POTFILES.in: Regenerate.
910 2018-04-24 Nick Clifton <nickc@redhat.com>
913 * elf.c (ignore_section_sym): Check for the output_section pointer
914 being NULL before dereferencing it.
917 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check for
918 a negative PE_DEBUG_DATA size before iterating over the debug data.
920 2018-04-23 Alan Modra <amodra@gmail.com>
922 * elf-linux-core.h: Revert last change.
925 2018-04-23 Nick Clifton <nickc@redhat.com>
928 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
929 the end of the string table, and zero it.
931 2018-04-23 Alan Modra <amodra@gmail.com>
933 * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable
934 gcc-8 string truncation warning.
935 (swap_linux_prpsinfo32_ugid16_out): Likewise.
936 (swap_linux_prpsinfo64_ugid32_out): Likewise.
937 (swap_linux_prpsinfo64_ugid16_out): Likewise.
938 * elf.c (elfcore_write_prpsinfo): Likewise.
940 2018-04-23 Nick Clifton <nickc@redhat.com>
943 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
944 the end of the string table, and zero it.
946 2018-04-20 Alan Modra <amodra@gmail.com>
949 * elf32-hppa.c (got_relocs_needed): Add extra param to special
950 case both dtprel and tprel relocs.
951 (allocate_dynrelocs): Adjust conditions for got relocs.
952 (elf32_hppa_relocate_section): Likewise for local sym got relocs.
953 Emit dynamic relocs on TLS GOT entries for shared libraries,
954 not when pic. Omit dynamic reloc on dtprel entry when local,
955 and on tprel entry when local and executable.
957 2018-04-19 Alan Modra <amodra@gmail.com>
960 * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1.
961 (hppa_type_of_stub): Don't return a long branch stub for
962 symbols other than those defined statically.
964 2018-04-19 Alan Modra <amodra@gmail.com>
966 * Makefile.am: Revert 2018-04-18 coff-mips changes.
967 * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec
968 to selvecs for mips targets change 2018-04-18.
969 * configure.ac: Reinstate mips_ecoff_le_vec, mips_ecoff_be_vec
970 and mips_ecoff_bele_vec.
971 * targets.c: Likewise.
972 * coff-mips.c: Resurrect.
973 * Makefile.in: Regenerate.
974 * configure: Regenerate.
975 * po/SRC-POTFILES.in: Regenerate.
977 2018-04-18 Alan Modra <amodra@gmail.com>
979 * Makefile.am: Remove mips aout and coff support.
980 * config.bfd: Likewise.
981 * configure.ac: Likewise.
982 * targets.c: Likewise.
983 * coff-mips.c: Delete
987 * Makefile.in: Regenerate.
988 * configure: Regenerate.
989 * po/SRC-POTFILES.in: Regenerate.
991 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
993 * elf32-i386.c (elf32_bed): Define before including
995 * elf64-x86-64.c (elf64_bed): Define before including
997 (elf32_bed): Define before including "elf32-target.h".
999 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
1002 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a
1003 normal input file with compatible relocation.
1005 2018-04-18 Alan Modra <amodra@gmail.com>
1007 * Makefile.am: Remove support for assorted i386 aout and coff targets.
1008 * config.bfd: Likewise.
1009 * configure.ac: Likewise.
1010 * doc/bfdint.texi: Likewise.
1011 * targets.c: Likewise.
1012 * freebsd.h: Delete.
1013 * i386dynix.c: Delete.
1014 * i386freebsd.c: Delete.
1015 * i386linux.c: Delete.
1016 * i386mach3.c: Delete.
1017 * i386netbsd.c: Delete.
1018 * i386os9k.c: Delete.
1019 * Makefile.in: Regenerate.
1020 * configure: Regenerate.
1021 * po/SRC-POTFILES.in: Regenerate.
1023 2018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com>
1025 Microblaze Target: PIC data text relative
1027 * bfd/reloc.c (2 new BFD relocations):
1028 BFD_RELOC_MICROBLAZE_64_TEXTPCREL &
1029 BFD_RELOC_MICROBLAZE_64_TEXTPCREL
1030 * bfd/bfd-in2.h: Regenerate
1031 * bfd/libbfd.h: Regenerate
1032 * bfd/elf32-microblaze.c (Handle new relocs): define 'HOWTO' of 3
1033 new relocs and handle them in both relocate and relax functions.
1034 (microblaze_elf_reloc_type_lookup): add mapping between for new
1036 (microblaze_elf_relocate_section): Handle new relocs in case of
1038 (microblaze_elf_relax_section): Handle new relocs for elf relaxation.
1040 2018-04-17 Nick Clifton <nickc@redhat.com>
1043 * aoutx.h (find_nearest_line): Check that the symbol name exists
1044 and is long enough, before attempting to see if it is for a .o
1046 * hash.c (bfd_hash_hash): Add an assertion that the string is not
1048 * linker.c (bfd_link_hash_lookup): Fail if the table or string are
1050 (_bfd_generic_link_add_archive_symbols): Fail if an archive entry
1054 * dwarf2.c (concat_filename): Check for a NULL table pointer.
1056 2018-04-16 Nick Clifton <nickc@redhat.com>
1059 * coffgen.c (coff_pointerize_aux): Check for an out of range
1062 2018-04-16 Alan Modra <amodra@gmail.com>
1064 * Makefile.am: Remove arm-epoc-pe support.
1065 * coff-arm.c: Likewise.
1066 * config.bfd: Likewise.
1067 * configure.ac: Likewise.
1068 * targets.c: Likewise.
1069 * epoc-pe-arm.c: Delete.
1070 * epoc-pei-arm.c: Delete.
1071 * Makefile.in: Regenerate.
1072 * configure: Regenerate.
1073 * po/SRC-POTFILES.in: Regenerate.
1075 2018-04-16 Alan Modra <amodra@gmail.com>
1077 * Makefile.am: Remove sparc-aout and sparc-coff support.
1078 * config.bfd: Likewise.
1079 * configure.ac: Likewise.
1080 * targets.c: Likewise.
1081 * aout-sparcle.c: Delete.
1083 * cf-sparclynx.c: Delete.
1084 * coff-sparc.c: Delete.
1086 * sparclinux.c: Delete.
1087 * sparclynx.c: Delete.
1088 * sparcnetbsd.c: Delete.
1090 * Makefile.in: Regenerate.
1091 * configure: Regenerate.
1092 * po/SRC-POTFILES.in: Regenerate.
1094 2018-04-16 Alan Modra <amodra@gmail.com>
1096 * Makefile.am: Remove m68k-aout and m68k-coff support.
1097 * aoutf1.h: Likewise.
1098 * aoutx.h: Likewise.
1099 * archive.c: Likewise.
1100 * bfd-in.h: Likewise.
1102 * coffcode.h: Likewise.
1103 * coffswap.h: Likewise.
1104 * config.bfd: Likewise.
1105 * configure.ac: Likewise.
1106 * configure.host: Likewise.
1107 * doc/bfd.texinfo: Likewise.
1108 * doc/bfdint.texi: Likewise.
1109 * freebsd.h: Likewise.
1110 * gen-aout.c: Likewise.
1111 * hpux-core.c: Likewise.
1112 * libaout.h: Likewise.
1113 * libbfd-in.h: Likewise.
1114 * pdp11.c: Likewise.
1115 * peicode.h: Likewise.
1116 * riscix.c: Likewise.
1117 * targets.c: Likewise.
1119 * coff-apollo.c: Delete.
1120 * coff-aux.c: Delete.
1121 * coff-m68k.c: Delete.
1122 * coff-svm68k.c: Delete.
1123 * coff-u68k.c: Delete.
1124 * hosts/delta68.h: Delete.
1125 * hosts/hp300bsd.h: Delete.
1126 * hosts/m68kaux.h: Delete.
1127 * hosts/news.h: Delete.
1128 * hp300bsd.c: Delete.
1129 * hp300hpux.c: Delete.
1130 * liboasys.h: Delete.
1131 * m68k4knetbsd.c: Delete.
1132 * m68klinux.c: Delete.
1133 * m68knetbsd.c: Delete.
1135 * versados.c: Delete.
1136 * Makefile.in: Regenerate.
1137 * bfd-in2.h: Regenerate.
1138 * configure: Regenerate.
1139 * libbfd.h: Regenerate.
1140 * po/SRC-POTFILES.in: Regenerate.
1142 2018-04-16 Alan Modra <amodra@gmail.com>
1144 * Makefile.am: Remove sh5 and sh64 support.
1145 * archures.c: Likewise.
1146 * config.bfd: Likewise.
1147 * configure.ac: Likewise.
1148 * cpu-sh.c: Likewise.
1149 * elf32-sh-relocs.h: Likewise.
1150 * elf32-sh.c: Likewise.
1151 * targets.c: Likewise.
1152 * elf32-sh64-com.c: Delete.
1153 * elf32-sh64.c: Delete.
1154 * elf32-sh64.h: Delete.
1155 * elf64-sh64.c: Delete.
1156 * Makefile.in: Regenerate.
1157 * bfd-in2.h: Regenerate.
1158 * configure: Regenerate.
1159 * po/SRC-POTFILES.in: Regenerate.
1161 2018-04-16 Alan Modra <amodra@gmail.com>
1163 * Makefile.am: Remove sh-symbianelf support.
1164 * config.bfd: Likewise.
1165 * configure.ac: Likewise.
1166 * targets.c: Likewise.
1167 * elf32-sh-symbian.c: Delete.
1168 * Makefile.in: Regenerate.
1169 * configure: Regenerate.
1170 * po/SRC-POTFILES.in: Regenerate.
1172 2018-04-16 Alan Modra <amodra@gmail.com>
1174 * Makefile.am: Remove vax-bsd and vax-ultrix support.
1175 * config.bfd: Likewise.
1176 * configure.ac: Likewise.
1177 * targets.c: Likewise.
1179 * Makefile.in: Regenerate.
1180 * configure: Regenerate.
1181 * po/SRC-POTFILES.in: Regenerate.
1183 2018-04-16 Alan Modra <amodra@gmail.com>
1185 * Makefile.am: Remove w65 support.
1186 * archures.c: Likewise.
1187 * coffcode.h: Likewise.
1188 * config.bfd: Likewise.
1189 * configure.ac: Likewise.
1190 * targets.c: Likewise.
1191 * coff-w65.c: Delete.
1192 * cpu-w65.c: Delete.
1193 * Makefile.in: Regenerate.
1194 * bfd-in2.h: Regenerate.
1195 * configure: Regenerate.
1196 * po/SRC-POTFILES.in: Regenerate.
1198 2018-04-16 Alan Modra <amodra@gmail.com>
1200 * Makefile.am: Remove we32k support.
1201 * archures.c: Likewise.
1202 * coffcode.h: Likewise.
1203 * config.bfd: Likewise.
1204 * configure.ac: Likewise.
1205 * targets.c: Likewise.
1206 * coff-we32k.c: Delete.
1207 * cpu-we32k.c: Delete.
1208 * Makefile.in: Regenerate.
1209 * bfd-in2.h: Regenerate.
1210 * configure: Regenerate.
1211 * po/SRC-POTFILES.in: Regenerate.
1213 2018-04-16 Alan Modra <amodra@gmail.com>
1215 * Makefile.am: Remove m88k support.
1216 * aoutx.h: Likewise.
1217 * archures.c: Likewise.
1218 * coffcode.h: Likewise.
1219 * coffswap.h: Likewise.
1220 * config.bfd: Likewise.
1221 * configure.ac: Likewise.
1222 * cpu-ns32k.c: Likewise.
1223 * elf32-nds32.c: Likewise.
1224 * mach-o.c: Likewise.
1225 * netbsd-core.c: Likewise.
1226 * reloc.c: Likewise.
1227 * targets.c: Likewise.
1228 * coff-m88k.c: Delete.
1229 * cpu-m88k.c: Delete.
1230 * elf32-m88k.c: Delete.
1231 * hosts/m88kmach3.h: Delete.
1232 * m88kmach3.c: Delete.
1233 * m88kopenbsd.c: Delete.
1234 * Makefile.in: Regenerate.
1235 * bfd-in2.h: Regenerate.
1236 * configure: Regenerate.
1237 * po/SRC-POTFILES.in: Regenerate.
1239 2018-04-16 Alan Modra <amodra@gmail.com>
1241 * Makefile.am: Remove i370 support.
1242 * archures.c: Likewise.
1243 * config.bfd: Likewise.
1244 * configure.ac: Likewise.
1245 * targets.c: Likewise.
1246 * cpu-i370.c: Delete.
1247 * elf32-i370.c: Delete.
1248 * Makefile.in: Regenerate.
1249 * bfd-in2.h: Regenerate.
1250 * configure: Regenerate.
1251 * po/SRC-POTFILES.in: Regenerate.
1253 2018-04-16 Alan Modra <amodra@gmail.com>
1255 * Makefile.am: Remove h8500 support.
1256 * archures.c: Likewise.
1257 * coffcode.h: Likewise.
1258 * config.bfd: Likewise.
1259 * configure.ac: Likewise.
1260 * targets.c: Likewise.
1261 * coff-h8500.c: Delete.
1262 * cpu-h8500.c: Delete.
1263 * Makefile.in: Regenerate.
1264 * bfd-in2.h: Regenerate.
1265 * configure: Regenerate.
1266 * po/SRC-POTFILES.in: Regenerate.
1268 2018-04-16 Alan Modra <amodra@gmail.com>
1270 * Makefile.am: Remove h8300-coff support.
1271 * coffcode.h: Likewise.
1272 * config.bfd: Likewise.
1273 * configure.ac: Likewise.
1274 * reloc16.c: Likewise.
1275 * targets.c: Likewise.
1276 * coff-h8300.c: Delete.
1277 * Makefile.in: Regenerate.
1278 * configure: Regenerate.
1279 * po/SRC-POTFILES.in: Regenerate.
1281 2018-04-16 Alan Modra <amodra@gmail.com>
1283 * Makefile.am: Remove IEEE 695 support.
1284 * archures.c: Likewise.
1286 * config.bfd: Likewise.
1287 * configure.ac: Likewise.
1288 * doc/bfd.texinfo: Likewise.
1289 * doc/bfdint.texi: Likewise.
1290 * doc/bfdsumm.texi: Likewise.
1291 * section.c: Likewise.
1292 * targets.c: Likewise.
1294 * libieee.h: Delete.
1295 * Makefile.in: Regenerate.
1296 * bfd-in2.h: Regenerate.
1297 * configure: Regenerate.
1298 * po/SRC-POTFILES.in: Regenerate.
1300 2018-04-16 Alan Modra <amodra@gmail.com>
1302 * config.bfd: Remove tandem support.
1304 2018-04-16 Alan Modra <amodra@gmail.com>
1306 * Makefile.am: Remove newsos3 support.
1307 * aoutx.h: Likewise.
1308 * config.bfd: Likewise.
1309 * configure.ac: Likewise.
1310 * targets.c: Likewise.
1311 * newsos3.c: Delete.
1312 * Makefile.in: Regenerate.
1313 * configure: Regenerate.
1314 * po/SRC-POTFILES.in: Regenerate.
1316 2018-04-16 Alan Modra <amodra@gmail.com>
1318 * Makefile.am: Remove netware support.
1319 * bfd-in.h: Likewise.
1321 * config.bfd: Likewise.
1322 * configure.ac: Likewise.
1323 * doc/bfdint.texi: Likewise.
1324 * ecoff.c: Likewise.
1325 * targets.c: Likewise.
1327 * nlm-target.h: Delete.
1329 * nlm32-alpha.c: Delete.
1330 * nlm32-i386.c: Delete.
1331 * nlm32-ppc.c: Delete.
1332 * nlm32-sparc.c: Delete.
1335 * nlmcode.h: Delete.
1336 * nlmswap.h: Delete.
1337 * Makefile.in: Regenerate.
1338 * bfd-in2.h: Regenerate.
1339 * configure: Regenerate.
1340 * po/SRC-POTFILES.in: Regenerate.
1342 2018-04-16 Alan Modra <amodra@gmail.com>
1344 * archures.c: Remove tahoe support.
1345 * config.bfd: Likewise.
1346 * configure.ac: Likewise.
1347 * hosts/tahoe.h: Delete.
1348 * bfd-in2.h: Regenerate.
1349 * configure: Regenerate.
1351 2018-04-14 Alan Modra <amodra@gmail.com>
1353 * elf-bfd.h (struct elf_backend_data): Add relropagesize.
1354 * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and
1356 (elfNN_bed): Init relropagesize.
1357 * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to
1358 select relropagesize.
1359 * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1360 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1361 (ELF_MINPAGESIZE): Don't define.
1362 * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1363 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1364 * bfd-in2.h: Regenerate.
1366 2018-04-14 Alan Modra <amodra@gmail.com>
1368 * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend
1369 on __QNXTARGET__ define.
1371 2018-04-14 Alan Modra <amodra@gmail.com>
1373 * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
1376 2018-04-11 Alan Modra <amodra@gmail.com>
1378 * aout-adobe.c: Delete.
1380 * coff-i860.c: Delete.
1381 * coff-i960.c: Delete.
1382 * cpu-i860.c: Delete.
1383 * cpu-i960.c: Delete.
1384 * elf32-i860.c: Delete.
1385 * elf32-i960.c: Delete.
1386 * hosts/i860mach3.h: Delete.
1387 * Makefile.am: Remove i860, i960, bout, and adobe support.
1388 * archures.c: Remove i860 and i960 support.
1389 * coffcode.h: Likewise.
1390 * reloc.c: Likewise.
1391 * aoutx.h: Comment updates.
1392 * archive.c: Remove BOUT and i960 support.
1393 * bfd.c: Remove BOUT support.
1394 * coffswap.h: Remove i960 support.
1395 * config.bfd: Remove i860, i960 and adobe targets.
1396 * configure.ac: Remove adode, bout, i860, i960, icoff targets.
1397 * targets.c: Likewise.
1398 * ieee.c: Remove i960 support.
1399 * mach-o.c: Remove i860 support.
1400 * Makefile.in: Regenerate.
1401 * bfd-in2.h: Regenerate.
1402 * configure: Regenerate.
1403 * libbfd.h: Regenerate.
1404 * po/SRC-POTFILES.in: Regenerate.
1406 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1408 * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer
1409 in the BFD symbol referred by the relocation.
1410 (mips_elf64_write_rela): Likewise.
1412 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1414 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an
1415 error for out-of-range `r_sym' values.
1417 2018-04-09 Alan Modra <amodra@gmail.com>
1419 * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field.
1420 (struct ppc_link_hash_table): Add can_convert_all_inline_plt.
1421 (ppc64_elf_check_relocs): Set has_pltcall.
1422 (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries.
1423 (ppc64_elf_inline_plt): New function.
1424 (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals.
1425 * elf64-ppc.h (ppc64_elf_inline_plt): Declare.
1426 * elf32-ppc.c (has_pltcall): Define.
1427 (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt.
1428 (ppc_elf_check_relocs): Set has_pltcall.
1429 (ppc_elf_inline_plt): New function.
1430 (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries.
1431 (ppc_elf_size_dynamic_sections): Likewise.
1432 * elf32-ppc.h (ppc_elf_inline_plt): Declare.
1434 2018-04-09 Alan Modra <amodra@gmail.com>
1436 * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos.
1437 (is_plt_seq_reloc): New function.
1438 (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs.
1439 (ppc_elf_tls_optimize): Handle inline plt call sequence.
1440 (ppc_elf_relax_section): Handle PLTCALL reloc.
1441 (ppc_elf_relocate_section): Nop out inline plt call sequence when
1443 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and
1444 R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE.
1445 (has_tls_get_addr_call): Correct comment.
1446 (is_branch_reloc): Add PLTCALL.
1447 (is_plt_seq_reloc): New function.
1448 (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set
1449 has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt
1450 entry for R_PPC64_PLTCALL.
1451 (ppc64_elf_tls_optimize): Handle inline plt call sequence.
1452 (ppc_type_of_stub): Handle PLTCALL reloc.
1453 (toc_adjusting_stub_needed): Likewise.
1454 (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL
1455 reloc insn. Nop out inline plt call sequence when resolving
1456 locally. Handle __tls_get_addr inline plt call optimization.
1458 2018-04-09 Alan Modra <amodra@gmail.com>
1460 * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define.
1461 (struct ppc_stub_hash_entry): Add symtype field.
1463 (struct ppc_link_hash_table): Add pltlocal and relpltlocal.
1464 (create_linkage_sections): Create pltlocal and relpltlocal.
1465 (ppc64_elf_check_relocs): Allow PLT relocs on local symbols.
1467 (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1468 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1469 (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1470 Keep PLT entries for inline calls against locals.
1471 (ppc_build_one_stub): Use pltlocal as appropriate.
1472 (ppc_size_one_stub): Likewise.
1473 (ppc64_elf_size_stubs): Set symtype.
1474 (build_global_entry_stubs_and_plt): Init pltlocal and write
1475 relpltlocal for globals.
1476 (write_plt_relocs_for_local_syms): Likewise for local syms.
1477 (ppc64_elf_relocate_section): Support PLT for local syms.
1478 * elf32-ppc.c (PLT_KEEP): Define.
1479 (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal.
1480 (ppc_elf_create_glink): Create pltlocal and relpltlocal.
1481 (ppc_elf_check_relocs): Allow PLT relocs on local symbols.
1482 Set PLT_KEEP. Adjust update_local_sym_info call.
1483 (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1484 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1485 (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1486 (ppc_elf_relocate_section): Support PLT16 relocs for local syms.
1487 (write_global_sym_plt): Init pltlocal and write relpltlocal.
1488 (ppc_finish_symbols): Likewise for locals.
1490 2018-04-09 Alan Modra <amodra@gmail.com>
1492 * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs
1493 for local symbols to..
1494 (write_plt_relocs_for_local_syms): ..here. New function.
1495 (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for
1497 (build_global_entry_stubs_and_plt): ..here. Rename from
1498 build_global_entry_stubs.
1499 (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt.
1500 Call write_plt_relocs_for_local_syms.
1501 * elf32-ppc.c (get_sym_h): New function.
1502 (ppc_elf_relax_section): Use get_sym_h.
1503 (ppc_elf_relocate_section): Move output of PLT relocs and glink
1504 stubs for local symbols to..
1505 (ppc_finish_symbols): ..here. New function.
1506 (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for
1508 (write_global_sym_plt): ..here. New function.
1509 * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute.
1510 (ppc_finish_symbols): Declare.
1512 2018-04-09 Alan Modra <amodra@gmail.com>
1514 * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs.
1515 (ppc_elf_relocate_section): Likewise.
1516 * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS.
1517 (ppc64_elf_relocate_section): Likewise. Correct PLT16
1518 resolution to plt entry relative to toc pointer.
1520 2018-04-09 Alan Modra <amodra@gmail.com>
1522 * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1523 TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout
1524 file when other TLS flags are tested in a mask.
1525 (TLS_MARK, NON_GOT): Define.
1526 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1527 (update_local_sym_info): Don't create got entry when NON_GOT.
1528 (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1530 (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK.
1531 (ppc64_elf_relocate_section): Likewise.
1532 (ppc64_elf_tls_optimize): Don't attempt to optimize indirect
1533 __tls_get_addr calls lacking a marker reloc.
1534 * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1535 TLS_TPRELGD): Renumber. Update comment.
1536 (TLS_MARK, NON_GOT): Define.
1537 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1538 (update_local_sym_info): Don't create got entry when NON_GOT.
1539 (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1541 (ppc_elf_tls_optimize): Don't attempt to optimize indirect
1542 __tls_get_addr calls lacking a marker reloc.
1544 2018-04-06 H.J. Lu <hongjiu.lu@intel.com>
1546 * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out
1547 R_X86_64_converted_reloc_bit.
1549 2018-04-05 H.J. Lu <hongjiu.lu@intel.com>
1552 * configure: Regenerated.
1554 2018-04-05 Alan Modra <amodra@gmail.com>
1556 * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
1557 (elf_hppa_info_to_howto_rel): Likewise.
1559 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1561 * elf-hppa.h (elf_hppa_info_to_howto): Also return
1562 unsuccessfully for unimplemented relocations.
1563 (elf_hppa_info_to_howto_rel): Likewise.
1565 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1567 * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the
1568 `bfd_error_bad_value' error and call `_bfd_error_handler' on a
1569 howto lookup failure.
1570 (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call
1572 (elf32_i860_info_to_howto_rela): Likewise.
1573 (elf32_i860_relocate_splitn): Likewise.
1574 (elf32_i860_relocate_pc16): Likewise.
1575 (elf32_i860_relocate_pc26): Likewise.
1576 (elf32_i860_relocate_section): Likewise.
1578 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1580 * elf32-visium.c (visium_info_to_howto_rela): Correct the range
1581 check for `visium_elf_howto_table' table access.
1583 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1585 * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range
1586 check for `iq2000_elf_howto_table' table access.
1588 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1590 * elf32-frv.c (frv_info_to_howto_rela): Correct the range check
1591 for `elf32_frv_howto_table' table access.
1593 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1595 * elf32-mips.c (mips_elf32_rtype_to_howto): Also return
1596 unsuccessfully for placeholder howtos.
1597 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
1598 * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise.
1600 2018-03-29 Maciej W. Rozycki <macro@mips.com>
1602 * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to
1603 `_bfd_error_handler' and to set the `bfd_error_bad_value' error.
1605 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1607 * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
1608 ATTRIBUTE_UNUSED from `abfd'.
1610 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1612 * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct
1613 `_bfd_error_handler' call formatting.
1615 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1617 * elf32-mips.c (mips_info_to_howto_rel): Call
1618 `mips_elf32_rtype_to_howto' directly rather than via
1619 `->elf_backend_mips_rtype_to_howto'.
1621 2018-03-28 Renlin Li <renlin.li@arm.com>
1624 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for
1625 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1626 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1627 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1628 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1629 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1630 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1631 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1632 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1633 (elfNN_aarch64_final_link_relocate): Support new relocations.
1634 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new
1636 (_bfd_aarch64_elf_resolve_relocation): Support new relocations.
1638 2018-03-28 Renlin Li <renlin.li@arm.com>
1641 * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12
1642 BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC,
1643 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1644 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1645 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1646 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1647 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1648 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1649 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1650 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1651 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for
1652 TLSLE_LDST16_TPREL_LO12,
1653 TLSLE_LDST16_TPREL_LO12_NC,
1654 TLSLE_LDST32_TPREL_LO12,
1655 TLSLE_LDST32_TPREL_LO12_NC,
1656 TLSLE_LDST64_TPREL_LO12,
1657 TLSLE_LDST64_TPREL_LO12_NC,
1658 TLSLE_LDST8_TPREL_LO12,
1659 TLSLE_LDST8_TPREL_LO12_NC.
1660 * bfd-in2.h: Regenerated.
1661 * libbfd.h: Regenerated.
1663 2018-03-28 Eric Botcazou <ebotcazou@adacore.com>
1666 * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
1667 has_old_style_got_reloc.
1668 (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
1669 relocations. Fix a couple of long lines.
1670 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
1671 a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style
1674 2018-03-25 H.J. Lu <hongjiu.lu@intel.com>
1677 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
1678 ENDBR64 to the TLSDESC PLT entry.
1680 2018-03-21 Alan Modra <amodra@gmail.com>
1682 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting
1683 symbols. Use size_t counts. Delete redundant opd test.
1685 2018-03-21 Alan Modra <amodra@gmail.com>
1687 * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms.
1689 2018-03-21 Alan Modra <amodra@gmail.com>
1691 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask
1693 (update_local_sym_info): Likewise for local_got_tls_masks.
1694 (ppc_elf_tls_optimize): Likewise for lgot_masks.
1696 2018-03-21 Alan Modra <amodra@gmail.com>
1698 * elf64-ppc.c (ppc_size_one_stub): Fix comment typo.
1699 (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we
1700 do in size_dynamic_sections.
1702 2018-03-21 Alan Modra <amodra@gmail.com>
1704 * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1]
1705 without first checking array bounds.
1706 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1708 2018-03-20 H.J. Lu <hongjiu.lu@intel.com>
1711 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
1712 non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.
1714 2018-03-19 Nick Clifton <nickc@redhat.com>
1716 * po/es.po: Updated Spanish translation.
1718 2018-03-15 Max Filippov <jcmvbkbc@gmail.com>
1720 * elf32-xtensa.c (xlate_map_entry): Change types of address
1721 fields from 'unsigned' to 'bfd_vma'.
1722 (xlate_offset_with_removed_text): Use struct xlate_map_entry as
1723 the key argument to bsearch. Allow offsets past the end of a
1724 section, use the last map entry for translation of such offsets.
1726 2018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1728 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed.
1729 Not support the target feature.
1730 (nds32_elf_ex9_itb_base): Likewise.
1731 (nds32_elf_ex9_import_table): Likewise.
1732 (nds32_elf_ex9_finish): Likewise.
1733 (nds32_elf_ex9_reloc_jmp): Likewise.
1734 (nds32_elf_get_insn_with_reg): Likewise.
1735 (nds32_get_local_syms): Likewise.
1736 (nds32_elf_ex9_replace_instruction): Likewise.
1737 (nds32_elf_ifc_calc): Likewise.
1738 (nds32_elf_ifc_finish): Likewise.
1739 (nds32_elf_ifc_replace): Likewise.
1740 (nds32_elf_ifc_reloc): Likewise.
1742 2018-03-14 Alan Modra <amodra@gmail.com>
1744 * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
1745 sfpr size added before defining alias symbols.
1746 (ppc64_elf_build_stubs): Add stub section padding before
1747 copying sfpr contents and defining save/restore alias symbols.
1749 2018-03-14 H.J. Lu <hongjiu.lu@intel.com>
1752 * elflink.c (elf_gc_mark_debug_section): Also check the local
1753 debug definition section.
1755 2018-03-13 Nick Clifton <nickc@redhat.com>
1758 * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean
1759 function. Add an end address parameter. Check access of the data
1760 pointer to make sure that they do not extend beyond the end
1761 address. Return FALSE if any check fails. Add the end address
1762 pointer to the ui structure.
1763 (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind
1764 codes to make sure that they do not extend beyond the end address
1765 pointer. Print an error message and return immediately if any
1768 2018-03-09 Nick Clifton <nickc@redhat.com>
1770 * elf64-s390.c (elf_s390_relocate_section): Move check for
1771 relocations against non-allocated sections to before the code that
1772 handles ifunc relocations.
1773 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1774 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat
1775 relocs against IFUNC symbols in non-allocated sections as relocs
1776 against FUNC symbols.
1777 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1779 2018-03-08 H.J. Lu <hongjiu.lu@intel.com>
1782 * elf32-i386.c (elf_i386_relocate_section): Treat relocation
1783 against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as
1784 relocation against FUNC symbol.
1785 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1787 2018-03-07 Renlin Li <renlin.li@arm.com>
1790 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute
1791 symbol, and don't emit relocation in specific case.
1793 2018-03-07 Alan Modra <amodra@gmail.com>
1795 * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error.
1796 (mips_elf64_slurp_one_reloc_table): Pass on error.
1798 2018-03-03 James Cowgill <james.cowgill@mips.com>
1799 Maciej W. Rozycki <macro@mips.com>
1802 * elfxx-mips.c (mips_elf_calculate_relocation): Only return
1803 after calling `undefined_symbol' hook if this is an error
1804 condition. Assume the value of 0 for the symbol requested
1807 2018-03-02 Jim Wilson <jimw@sifive.com>
1810 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch
1811 and nop instead of 4.
1812 (elfNN_arch64_build_stubs): Add nop after branch. Increase size by
1815 2018-03-01 Jim Wilson <jimw@sifive.com>
1818 * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use
1819 else if instead of if.
1821 2018-03-01 Alan Modra <amodra@gmail.com>
1823 * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
1825 2018-02-28 Alan Modra <amodra@gmail.com>
1828 * aoutx.h (swap_std_reloc_in): Correct r_index bound check.
1830 2018-02-28 Nick Clifton <nickc@redhat.com>
1834 * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block
1835 pointer. Drop unused abfd parameter. Check the size of the block
1836 before initialising the data field. Return the end pointer if the
1838 (read_attribute_value): Adjust invocations of read_n_bytes.
1841 * dwarf1.c (parse_die): Check the length of form blocks before
1842 advancing the data pointer.
1844 2018-02-28 Alan Modra <amodra@gmail.com>
1847 * aoutx.h (translate_symbol_table): Print an error message and set
1848 bfd_error on finding an invalid name string offset.
1850 2018-02-27 H.J. Lu <hongjiu.lu@intel.com>
1852 * config.in: Regenerated.
1853 * configure: Likewise.
1854 * configure.ac: Add --enable-separate-code.
1855 (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default
1856 to 1 for Linux/x86 targets,
1857 * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if
1858 DEFAULT_LD_Z_SEPARATE_CODE is 1.
1860 2018-02-27 Nick Clifton <nickc@redhat.com>
1862 * aout-cris.c (swap_ext_reloc_out): Standadize error/warning
1864 * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise.
1865 * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise.
1866 * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise.
1867 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise.
1868 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1869 * elf64-sh64.c (sh_elf64_info_to_howto): Likewise.
1870 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1871 * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise.
1872 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
1875 * elf-bfd.h (struct elf_backend_data): Change the return type of
1876 the elf_info_to_howto and elf_info_to_howto_rel function pointers
1878 * elfcode.h (elf_slurp_reloc_table_from_section): Check the return
1879 value from the info_to_howto function and fail if that function
1881 * elf32-h8300.c (elf32_h8_relocate_section): Check return value
1882 from the info_to_howto function.
1883 (elf32_h8_relax_section): Likewise.
1884 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1885 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1886 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1887 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1888 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1889 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
1890 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise.
1891 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
1892 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1893 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
1894 (riscv_elf_relocate_section): Likewise.
1895 * elf-hppa.h (elf_hppa_info_to_howto): Change return type to
1896 bfd_boolean. Issue an error message, set an error value and
1897 return FALSE if the reloc is not recognized.
1898 (elf_hppa_info_to_howto_rel): Likewise.
1899 * elf-m10200.c (mn10200_info_to_howto): Likewise.
1900 * elf-m10300.c (mn10300_info_to_howto): Likewise.
1901 * elf.c (_bfd_elf_no_info_to_howto): Likewise.
1902 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
1903 * elf32-arm.c (elf32_arm_info_to_howto): Likewise.
1904 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
1905 * elf32-bfin.c (bfin_info_to_howto): Likewise.
1906 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
1907 * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise.
1908 * elf32-cris.c (elf_cr16c_info_to_howto_rel)
1909 (cris_info_to_howto_rela): Likewise.
1910 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
1911 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
1912 * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela):
1914 * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto)
1915 (elf32_dlx_info_to_howto_rel): Likewise.
1916 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
1917 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
1918 * elf32-frv.c (frv_info_to_howto_rela)
1919 (frvfdpic_info_to_howto_rel): Likewise.
1920 * elf32-ft32.c (ft32_info_to_howto_rela): Likewise.
1921 * elf32-gen.c (elf_generic_info_to_howto)
1922 (elf_generic_info_to_howto_rel): Likewise.
1923 * elf32-h8300.c (elf32_h8_info_to_howto)
1924 (elf32_h8_info_to_howto_rel): Likewise.
1925 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
1926 * elf32-i386.c (elf_i386_reloc_type_lookup)
1927 (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise.
1928 * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela):
1930 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
1931 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
1932 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
1933 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
1934 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
1935 * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto):
1937 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
1938 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
1939 * elf32-m68k.c (rtype_to_howto): Likewise.
1940 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
1941 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
1942 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
1943 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
1944 * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1946 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
1947 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
1948 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
1949 * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto):
1951 * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise.
1952 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
1953 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
1954 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
1955 * elf32-pru.c (pru_elf32_info_to_howto): Likewise.
1956 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
1957 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
1958 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
1959 * elf32-score.c (s3_bfd_score_info_to_howto)
1960 (_bfd_score_info_to_howto): Likewise.
1961 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
1962 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
1963 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
1964 * elf32-tic6x.c (elf32_tic6x_info_to_howto)
1965 (elf32_tic6x_info_to_howto_rel): Likewise.
1966 * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise.
1967 * elf32-v850.c (v850_elf_info_to_howto_rel)
1968 (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise.
1969 * elf32-vax.c (rtype_to_howto): Likewise.
1970 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
1971 * elf32-wasm32.c (elf32_wasm32_rtype_to_howto)
1972 (elf32_wasm32_info_to_howto_rela): Likewise.
1973 * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise.
1974 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
1975 * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise.
1976 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
1977 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
1978 * elf64-gen.c (elf_generic_info_to_howto)
1979 (elf_generic_info_to_howto_rel): Likewise.
1980 * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise.
1981 * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise.
1982 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
1983 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
1984 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1985 * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto):
1987 * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise.
1988 * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1990 * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise.
1991 * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise.
1992 * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise.
1993 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1994 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise.
1995 * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise.
1996 * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype.
1997 * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype.
1998 * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype.
1999 * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel):
2002 2018-02-26 Jim Wilson <jimw@sifive.com>
2003 Stephan Schreiber <info@fs-driver.org>
2006 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
2007 call, set changed_contents and changed_relocs. Likewise after
2008 successful ia64_elf_relax_br call.
2010 2018-02-26 Alan Modra <amodra@gmail.com>
2012 * elf.c (assign_file_positions_except_relocs): Don't segfault
2013 when actual number of phdrs is less than allocated. Delete
2014 outdated comment. Formatting.
2016 2018-02-26 Alan Modra <amodra@gmail.com>
2018 * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
2019 * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
2020 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
2021 * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
2022 * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
2023 * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
2024 * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
2025 * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
2026 * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
2027 * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
2028 error/warning messages.
2030 2018-02-26 Alan Modra <amodra@gmail.com>
2032 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
2033 * syms.c: Standardize error/warning messages.
2035 2018-02-26 Alan Modra <amodra@gmail.com>
2037 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c,
2038 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c,
2039 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c,
2040 * peXXigen.c, * peicode.h: Standardize error/warning messages.
2042 2018-02-26 Alan Modra <amodra@gmail.com>
2044 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
2046 2018-02-26 Alan Modra <amodra@gmail.com>
2048 * elfxx-mips.c: Standardize error/warning messages.
2050 2018-02-26 Alan Modra <amodra@gmail.com>
2052 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c,
2053 * elflink.c: Standardize error/warning messages. Replace use of
2054 linker callback einfo with _bfd_error_handler when possible.
2056 2018-02-26 Alan Modra <amodra@gmail.com>
2058 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c,
2059 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
2060 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c,
2061 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c,
2062 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
2063 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
2064 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c,
2065 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
2066 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
2067 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
2068 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
2069 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c,
2070 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c,
2071 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
2072 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
2073 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c,
2074 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
2075 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
2076 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
2077 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h,
2078 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize
2079 unrecognized/unsupported reloc message.
2081 2018-02-26 Alan Modra <amodra@gmail.com>
2083 * elf32-ppc.c: Standardize error/warning messages. Use
2084 _bfd_error_handler rather than einfo when einfo features not used.
2085 * elf64-ppc.c: Likewise.
2087 2018-02-23 Alan Modra <amodra@gmail.com>
2090 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO
2091 segment if no matching LOAD segment.
2093 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
2095 * elf32-nds32.h: Define mask for ict_model.
2097 2018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
2099 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
2101 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2104 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
2106 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
2107 .reginfo section has wrong size.
2109 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2111 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
2112 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and
2113 `.MIPS.abiflags' sections.
2114 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo'
2117 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2119 * section.c (SEC_FIXED_SIZE): New macro.
2120 * bfd-in2.h: Regenerate.
2122 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2124 * section.c (SEC_HAS_GOT_REF): Remove macro.
2125 * bfd-in2.h: Regenerate.
2127 2018-02-19 Alan Modra <amodra@gmail.com>
2129 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
2131 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
2132 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
2133 (_bfd_riscv_relax_pc): Likewise and fix typos.
2134 * libbfd-in.h (_bfd_error_handler): Add attribute printf.
2135 * libbfd.h: Regenerate.
2137 2018-02-19 Alan Modra <amodra@gmail.com>
2139 * dwarf2.c (read_section): Don't use 'll' format modifier.
2140 (find_abstract_instance): Likewise.
2141 * elfcore.h (elf_core_file_p): Likewise.
2143 2018-02-19 Alan Modra <amodra@gmail.com>
2145 * bfd-in.h: Include inttypes.h or if not available define
2146 PRId64, PRIu64 and PRIx64.
2147 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
2148 modifier to print bfd_vma.
2149 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
2150 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
2151 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
2152 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
2153 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
2154 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
2155 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
2156 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
2157 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
2158 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
2159 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
2160 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
2161 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
2162 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
2163 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
2164 and cast input to uint64_t, and similarly for Ld and Lu.
2165 * bfd-in2.h: Regenerate.
2167 2018-02-19 Alan Modra <amodra@gmail.com>
2169 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c,
2170 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c,
2171 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c,
2172 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c,
2173 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c,
2174 * reloc.c: Replace use of %R and %T in format strings passed to
2175 einfo and friends by %pR and %pT.
2177 2018-02-19 Alan Modra <amodra@gmail.com>
2179 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place
2181 * aout-adobe.c: Update all messages using %A and %B.
2182 * aout-cris.c: Likewise.
2183 * aoutx.h: Likewise.
2184 * archive.c: Likewise.
2185 * binary.c: Likewise.
2186 * cache.c: Likewise.
2187 * coff-alpha.c: Likewise.
2188 * coff-arm.c: Likewise.
2189 * coff-i860.c: Likewise.
2190 * coff-mcore.c: Likewise.
2191 * coff-ppc.c: Likewise.
2192 * coff-rs6000.c: Likewise.
2193 * coff-sh.c: Likewise.
2194 * coff-tic4x.c: Likewise.
2195 * coff-tic54x.c: Likewise.
2196 * coff-tic80.c: Likewise.
2197 * coff64-rs6000.c: Likewise.
2198 * coffcode.h: Likewise.
2199 * coffgen.c: Likewise.
2200 * cofflink.c: Likewise.
2201 * coffswap.h: Likewise.
2202 * compress.c: Likewise.
2203 * cpu-arm.c: Likewise.
2204 * ecoff.c: Likewise.
2205 * elf-attrs.c: Likewise.
2206 * elf-eh-frame.c: Likewise.
2207 * elf-ifunc.c: Likewise.
2208 * elf-m10300.c: Likewise.
2209 * elf-properties.c: Likewise.
2210 * elf-s390-common.c: Likewise.
2212 * elf32-arc.c: Likewise.
2213 * elf32-arm.c: Likewise.
2214 * elf32-avr.c: Likewise.
2215 * elf32-bfin.c: Likewise.
2216 * elf32-cr16.c: Likewise.
2217 * elf32-cr16c.c: Likewise.
2218 * elf32-cris.c: Likewise.
2219 * elf32-crx.c: Likewise.
2220 * elf32-d10v.c: Likewise.
2221 * elf32-d30v.c: Likewise.
2222 * elf32-epiphany.c: Likewise.
2223 * elf32-fr30.c: Likewise.
2224 * elf32-frv.c: Likewise.
2225 * elf32-gen.c: Likewise.
2226 * elf32-hppa.c: Likewise.
2227 * elf32-i370.c: Likewise.
2228 * elf32-i386.c: Likewise.
2229 * elf32-i960.c: Likewise.
2230 * elf32-ip2k.c: Likewise.
2231 * elf32-iq2000.c: Likewise.
2232 * elf32-lm32.c: Likewise.
2233 * elf32-m32c.c: Likewise.
2234 * elf32-m32r.c: Likewise.
2235 * elf32-m68hc11.c: Likewise.
2236 * elf32-m68hc12.c: Likewise.
2237 * elf32-m68hc1x.c: Likewise.
2238 * elf32-m68k.c: Likewise.
2239 * elf32-mcore.c: Likewise.
2240 * elf32-mep.c: Likewise.
2241 * elf32-metag.c: Likewise.
2242 * elf32-microblaze.c: Likewise.
2243 * elf32-moxie.c: Likewise.
2244 * elf32-msp430.c: Likewise.
2245 * elf32-mt.c: Likewise.
2246 * elf32-nds32.c: Likewise.
2247 * elf32-nios2.c: Likewise.
2248 * elf32-or1k.c: Likewise.
2249 * elf32-pj.c: Likewise.
2250 * elf32-ppc.c: Likewise.
2251 * elf32-rl78.c: Likewise.
2252 * elf32-rx.c: Likewise.
2253 * elf32-s390.c: Likewise.
2254 * elf32-score.c: Likewise.
2255 * elf32-score7.c: Likewise.
2256 * elf32-sh-symbian.c: Likewise.
2257 * elf32-sh.c: Likewise.
2258 * elf32-sh64.c: Likewise.
2259 * elf32-sparc.c: Likewise.
2260 * elf32-spu.c: Likewise.
2261 * elf32-tic6x.c: Likewise.
2262 * elf32-tilepro.c: Likewise.
2263 * elf32-v850.c: Likewise.
2264 * elf32-vax.c: Likewise.
2265 * elf32-visium.c: Likewise.
2266 * elf32-wasm32.c: Likewise.
2267 * elf32-xgate.c: Likewise.
2268 * elf32-xtensa.c: Likewise.
2269 * elf64-alpha.c: Likewise.
2270 * elf64-gen.c: Likewise.
2271 * elf64-hppa.c: Likewise.
2272 * elf64-ia64-vms.c: Likewise.
2273 * elf64-mmix.c: Likewise.
2274 * elf64-ppc.c: Likewise.
2275 * elf64-s390.c: Likewise.
2276 * elf64-sh64.c: Likewise.
2277 * elf64-sparc.c: Likewise.
2278 * elf64-x86-64.c: Likewise.
2279 * elfcode.h: Likewise.
2280 * elfcore.h: Likewise.
2281 * elflink.c: Likewise.
2282 * elfnn-aarch64.c: Likewise.
2283 * elfnn-ia64.c: Likewise.
2284 * elfnn-riscv.c: Likewise.
2285 * elfxx-mips.c: Likewise.
2286 * elfxx-sparc.c: Likewise.
2287 * elfxx-tilegx.c: Likewise.
2288 * elfxx-x86.c: Likewise.
2289 * hpux-core.c: Likewise.
2292 * libbfd.c: Likewise.
2293 * linker.c: Likewise.
2294 * mach-o.c: Likewise.
2295 * merge.c: Likewise.
2297 * oasys.c: Likewise.
2298 * pdp11.c: Likewise.
2299 * pe-mips.c: Likewise.
2300 * peXXigen.c: Likewise.
2301 * peicode.h: Likewise.
2302 * reloc.c: Likewise.
2303 * rs6000-core.c: Likewise.
2305 * stabs.c: Likewise.
2306 * vms-alpha.c: Likewise.
2307 * xcofflink.c: Likewise.
2309 2018-02-19 Alan Modra <amodra@gmail.com>
2312 * elf.c (IS_TBSS): Define.
2313 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
2314 (assign_file_positions_for_non_load_sections): Revert last change.
2315 Properly calculate load segment limits to compare against relro limits.
2317 2018-02-17 Alan Modra <amodra@gmail.com>
2320 * elf.c (assign_file_positions_for_non_load_sections): Ignore
2321 degenerate zero size PT_LOAD segments when finding one overlapping
2322 the PT_GNU_RELRO segment.
2324 2018-02-16 Alan Modra <amodra@gmail.com>
2326 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
2327 (_bfd_bool_bfd_true): Rename from bfd_true.
2328 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
2329 (_bfd_int_bfd_0): Rename from bfd_0.
2330 (_bfd_uint_bfd_0): Rename from bfd_0u.
2331 (_bfd_long_bfd_0): Rename from bfd_0l.
2332 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
2333 (_bfd_void_bfd): Rename from bfd_void.
2334 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
2335 (_bfd_bool_bfd_link_false_error),
2336 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
2337 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
2338 (_bfd_bool_bfd_asection_bfd_asection_true),
2339 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
2340 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
2341 * archive.c (_bfd_noarchive_get_elt_at_index),
2342 (_bfd_noarchive_openr_next_archived_file),
2343 (_bfd_noarchive_construct_extended_name_table),
2344 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
2345 (_bfd_noarchive_write_armap): New functions.
2346 * archures.c (_bfd_nowrite_set_arch_mach): New function.
2347 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
2348 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
2349 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
2350 (alpha_ecoff_swap_coff_lineno_out),
2351 (alpha_ecoff_swap_coff_reloc_out): New functions.
2352 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
2353 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
2354 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
2355 (mips_ecoff_swap_coff_lineno_out),
2356 (mips_ecoff_swap_coff_reloc_out): New functions.
2357 * coffcode.h (coff_set_alignment_hook): Replace define with
2359 (symname_in_debug_hook): Likewise.
2360 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
2361 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
2362 * elf.c (assign_file_positions_except_relocs): Test
2363 elf_backend_allow_non_load_phdr for NULL.
2364 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
2365 _bfd_elf_link_omit_section_dynsym. Update uses.
2366 (_bfd_elf_omit_section_dynsym_all): New function.
2367 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
2368 (_bfd_elf_omit_section_dynsym_default): Declare.
2369 (_bfd_elf_omit_section_dynsym_all): Declare.
2370 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
2371 (_bfd_nolink_bfd_get_relocated_section_contents),
2372 (_bfd_nolink_bfd_lookup_section_flags),
2373 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
2374 (_bfd_nolink_bfd_link_hash_table_create),
2375 (_bfd_nolink_bfd_link_just_syms),
2376 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
2377 (_bfd_nolink_bfd_link_split_section),
2378 (_bfd_nolink_section_already_linked),
2379 (_bfd_nolink_bfd_define_common_symbol),
2380 (_bfd_nolink_bfd_define_start_stop): New functions.
2381 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
2382 (_bfd_norelocs_bfd_reloc_name_lookup),
2383 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
2384 * section.c (_bfd_nowrite_set_section_contents): New function.
2385 * syms.c (_bfd_nosymbols_canonicalize_symtab),
2386 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
2387 (_bfd_nosymbols_get_symbol_version_string),
2388 (_bfd_nosymbols_bfd_is_local_label_name),
2389 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
2390 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
2391 (_bfd_nosymbols_bfd_make_debug_symbol),
2392 ( _bfd_nosymbols_read_minisymbols),
2393 ( _bfd_nosymbols_minisymbol_to_symbol),
2394 (_bfd_nodynamic_get_synthetic_symtab): New functions.
2395 * libbfd-in.h: Declare new functions. Update existing defines,
2397 * aix386-core.c: Update to use new hooks. Formatting.
2398 * aout-adobe.c: Likewise.
2399 * aout-arm.c: Likewise.
2400 * aout-target.h: Likewise.
2401 * aout-tic30.c: Likewise.
2402 * aoutf1.h: Likewise.
2403 * binary.c: Likewise.
2405 * cisco-core.c: Likewise.
2406 * coff-alpha.c: Likewise.
2407 * coff-i386.c: Likewise.
2408 * coff-i860.c: Likewise.
2409 * coff-i960.c: Likewise.
2410 * coff-ia64.c: Likewise.
2411 * coff-mips.c: Likewise.
2412 * coff-ppc.c: Likewise.
2413 * coff-rs6000.c: Likewise.
2414 * coff-sh.c: Likewise.
2415 * coff-tic30.c: Likewise.
2416 * coff-tic54x.c: Likewise.
2417 * coff-x86_64.c: Likewise.
2418 * coff64-rs6000.c: Likewise.
2419 * coffcode.h: Likewise.
2420 * elf-m10300.c: Likewise.
2421 * elf32-cr16.c: Likewise.
2422 * elf32-lm32.c: Likewise.
2423 * elf32-m32r.c: Likewise.
2424 * elf32-metag.c: Likewise.
2425 * elf32-score.c: Likewise.
2426 * elf32-score7.c: Likewise.
2427 * elf32-tilepro.c: Likewise.
2428 * elf32-xstormy16.c: Likewise.
2429 * elf32-xtensa.c: Likewise.
2430 * elf64-alpha.c: Likewise.
2431 * elf64-hppa.c: Likewise.
2432 * elf64-ia64-vms.c: Likewise.
2433 * elf64-mmix.c: Likewise.
2434 * elf64-sh64.c: Likewise.
2435 * elfnn-ia64.c: Likewise.
2436 * elfxx-sparc.c: Likewise.
2437 * elfxx-target.h: Likewise.
2438 * elfxx-tilegx.c: Likewise.
2439 * elfxx-x86.h: Likewise.
2440 * hp300hpux.c: Likewise.
2441 * hppabsd-core.c: Likewise.
2442 * hpux-core.c: Likewise.
2443 * i386msdos.c: Likewise.
2444 * i386os9k.c: Likewise.
2447 * irix-core.c: Likewise.
2448 * libaout.h: Likewise.
2449 * libecoff.h: Likewise.
2450 * mach-o-target.c: Likewise.
2451 * mach-o.c: Likewise.
2452 * mipsbsd.c: Likewise.
2454 * netbsd-core.c: Likewise.
2455 * nlm-target.h: Likewise.
2456 * oasys.c: Likewise.
2457 * osf-core.c: Likewise.
2458 * pdp11.c: Likewise.
2459 * pe-mips.c: Likewise.
2460 * pe-x86_64.c: Likewise.
2462 * plugin.c: Likewise.
2463 * ppcboot.c: Likewise.
2464 * ptrace-core.c: Likewise.
2465 * sco5-core.c: Likewise.
2467 * sparclynx.c: Likewise.
2469 * tekhex.c: Likewise.
2470 * trad-core.c: Likewise.
2471 * verilog.c: Likewise.
2472 * versados.c: Likewise.
2473 * vms-alpha.c: Likewise.
2474 * vms-lib.c: Likewise.
2475 * wasm-module.c: Likewise.
2477 * libbfd.h: Regenerate.
2479 2018-02-15 Jim Wilson <jimw@sifive.com>
2481 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
2482 symbols whose section address is zero.
2484 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
2485 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
2486 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
2487 Add %X%P to error messages.
2489 2018-02-15 Eric Botcazou <ebotcazou@adacore.com>
2492 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2493 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
2494 and assert that the result of the call is not NULL.
2496 2018-02-14 Nick Clifton <nickc@redhat.com>
2499 Revert previous delta. Add extra casts to avoid compile time
2501 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
2502 cast to avoid warning from gcc v8 compiler.
2503 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2504 (_bfd_generic_bfd_set_private_flags): Likewise.
2505 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2506 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2507 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2508 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2509 (_bfd_noarchive_construct_extended_name_table): Likewise.
2510 (_bfd_noarchive_truncate_arname): Likewise.
2511 (_bfd_noarchive_write_ar_hdr): Likewise.
2512 (_bfd_noarchive_get_elt_at_index): Likewise.
2513 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2514 (_bfd_nosymbols_print_symbol): Likewise.
2515 (_bfd_nosymbols_get_symbol_info): Likewise.
2516 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2517 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2518 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2519 (_bfd_nosymbols_get_lineno): Likewise.
2520 (_bfd_nosymbols_find_nearest_line): Likewise.
2521 (_bfd_nosymbols_find_line): Likewise.
2522 (_bfd_nosymbols_find_inliner_info): Likewise.
2523 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2524 (_bfd_nosymbols_read_minisymbols): Likewise.
2525 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2526 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2527 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2528 (_bfd_nowrite_set_arch_mach): Likewise.
2529 (_bfd_nowrite_set_section_contents): Likewise.
2530 (_bfd_nolink_sizeof_headers): Likewise.
2531 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2532 (_bfd_nolink_bfd_relax_section): Likewise.
2533 (_bfd_nolink_bfd_gc_sections): Likewise.
2534 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2535 (_bfd_nolink_bfd_merge_sections): Likewise.
2536 (_bfd_nolink_bfd_is_group_section): Likewise.
2537 (_bfd_nolink_bfd_discard_group): Likewise.
2538 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2539 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2540 (_bfd_nolink_bfd_link_just_syms): Likewise.
2541 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2542 (_bfd_nolink_bfd_final_link): Likewise.
2543 (_bfd_nolink_bfd_link_split_section): Likewise.
2544 (_bfd_nolink_section_already_linked): Likewise.
2545 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2546 (_bfd_nolink_bfd_define_start_stop): Likewise.
2547 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2548 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2549 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2550 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2551 * libbfd.c (bfd_false_any): Delete.
2552 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
2553 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
2554 * libbfd.h (extern): Regenerate
2555 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
2556 cast to avoid warning from gcc v8 compiler.
2557 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2558 * binary.c (binary_get_symbol_info): Likewise.
2559 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2560 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2561 * coffcode.h (coff_set_alignment_hook): Likewise.
2562 (symname_in_debug_hook): Likewise.
2563 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2564 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2565 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2566 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2567 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2568 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2569 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2570 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2571 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2572 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2573 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2574 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2575 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2576 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2577 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2578 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2579 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2580 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2581 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2582 (bfd_elfNN_bfd_set_private_flags): Likewise.
2583 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2584 (elf_backend_init_index_section): Likewise.
2585 (elf_backend_allow_non_load_phdr): Likewise.
2586 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2587 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2588 * ieee.c (ieee_construct_extended_name_table): Likewise.
2589 (ieee_write_armap): Likewise.
2590 (ieee_write_ar_hdr): Likewise.
2591 (ieee_bfd_is_target_special_symbol): Likewise.
2592 * ihex.c (ihex_canonicalize_symtab): Likewise.
2593 (ihex_bfd_is_target_special_symbol): Likewise.
2594 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2595 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2596 (_bfd_ecoff_set_alignment_hook): Likewise.
2597 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2598 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2599 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2600 * oasys.c (oasys_construct_extended_name_table): Likewise.
2601 (oasys_write_armap): Likewise.
2602 (oasys_write_ar_hdr): Likewise.
2603 (oasys_bfd_is_target_special_symbol): Likewise.
2604 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2605 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2606 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2607 * som.c (som_bfd_is_target_special_symbol): Likewise.
2608 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2609 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2610 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2611 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2612 (versados_bfd_reloc_name_lookup): Likewise.
2613 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2614 (vms_bfd_define_start_stop): Likewise.
2615 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2616 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2617 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2619 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
2622 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
2623 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2624 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
2625 R_X86_64_PC32 reloc against dynamic function in data section.
2626 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2627 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
2628 against dynamic function in data section.
2629 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
2630 function address only if pcrel_plt is true.
2631 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
2632 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
2633 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
2634 PC-relative relocation against a function definition in data
2635 secton in PIE. Remove the obsolete comments.
2636 (elf_x86_link_hash_table): Add pcrel_plt.
2638 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2640 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
2641 instead of bfd_link_pic, for building shared library.
2643 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2646 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
2647 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
2648 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
2649 against protected function in shared object.
2651 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
2654 * po/ru.po: Fix typo in Russian translation.
2656 2018-02-13 Maciej W. Rozycki <macro@mips.com>
2658 * wasm-module.c (wasm_scan_name_function_section): Rename
2659 `index' local variable to `idx'.
2661 2018-02-13 Nick Clifton <nickc@redhat.com>
2664 Fix compile time warnings generated by gcc version 8.
2665 * libbfd-in.h: Remove extraneous text from prototypes.
2666 Add prototypes for bfd_false_any, bfd_true_any,
2667 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
2668 bfd_n1_any, bfd_void_any.
2669 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
2671 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2672 (_bfd_generic_bfd_set_private_flags): Likewise.
2673 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2674 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2675 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2676 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2677 (_bfd_noarchive_construct_extended_name_table): Likewise.
2678 (_bfd_noarchive_truncate_arname): Likewise.
2679 (_bfd_noarchive_write_ar_hdr): Likewise.
2680 (_bfd_noarchive_get_elt_at_index): Likewise.
2681 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2682 (_bfd_nosymbols_print_symbol): Likewise.
2683 (_bfd_nosymbols_get_symbol_info): Likewise.
2684 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2685 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2686 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2687 (_bfd_nosymbols_get_lineno): Likewise.
2688 (_bfd_nosymbols_find_nearest_line): Likewise.
2689 (_bfd_nosymbols_find_line): Likewise.
2690 (_bfd_nosymbols_find_inliner_info): Likewise.
2691 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2692 (_bfd_nosymbols_read_minisymbols): Likewise.
2693 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2694 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2695 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2696 (_bfd_nowrite_set_arch_mach): Likewise.
2697 (_bfd_nowrite_set_section_contents): Likewise.
2698 (_bfd_nolink_sizeof_headers): Likewise.
2699 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2700 (_bfd_nolink_bfd_relax_section): Likewise.
2701 (_bfd_nolink_bfd_gc_sections): Likewise.
2702 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2703 (_bfd_nolink_bfd_merge_sections): Likewise.
2704 (_bfd_nolink_bfd_is_group_section): Likewise.
2705 (_bfd_nolink_bfd_discard_group): Likewise.
2706 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2707 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2708 (_bfd_nolink_bfd_link_just_syms): Likewise.
2709 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2710 (_bfd_nolink_bfd_final_link): Likewise.
2711 (_bfd_nolink_bfd_link_split_section): Likewise.
2712 (_bfd_nolink_section_already_linked): Likewise.
2713 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2714 (_bfd_nolink_bfd_define_start_stop): Likewise.
2715 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2716 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2717 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2718 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2719 * libbfd.c (bfd_false_any): New function. Like bfd_false but
2720 accepts one or more arguments.
2721 (bfd_true_any): Likewise.
2722 (bfd_nullvoidptr_any): Likewise.
2723 (bfd_0_any): Likewise.
2724 (bfd_0u_any): Likewise.
2725 (bfd_0l_any): Likewise.
2726 (_bfd_n1_any): Likewise.
2727 (bfd_void_any): Likewise.
2728 * libbfd.h (extern): Regenerate
2729 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
2730 based dummy function.
2731 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2732 * binary.c (binary_get_symbol_info): Likewise.
2733 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2734 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2735 * coffcode.h (coff_set_alignment_hook): Likewise.
2736 (symname_in_debug_hook): Likewise.
2737 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2738 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2739 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2740 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2741 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2742 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2743 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2744 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2745 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2746 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2747 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2748 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2749 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2750 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2751 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2752 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2753 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2754 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2755 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2756 (bfd_elfNN_bfd_set_private_flags): Likewise.
2757 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2758 (elf_backend_init_index_section): Likewise.
2759 (elf_backend_allow_non_load_phdr): Likewise.
2760 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2761 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2762 * ieee.c (ieee_construct_extended_name_table): Likewise.
2763 (ieee_write_armap): Likewise.
2764 (ieee_write_ar_hdr): Likewise.
2765 (ieee_bfd_is_target_special_symbol): Likewise.
2766 * ihex.c (ihex_canonicalize_symtab): Likewise.
2767 (ihex_bfd_is_target_special_symbol): Likewise.
2768 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2769 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2770 (_bfd_ecoff_set_alignment_hook): Likewise.
2771 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2772 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2773 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2774 * oasys.c (oasys_construct_extended_name_table): Likewise.
2775 (oasys_write_armap): Likewise.
2776 (oasys_write_ar_hdr): Likewise.
2777 (oasys_bfd_is_target_special_symbol): Likewise.
2778 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2779 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2780 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2781 * som.c (som_bfd_is_target_special_symbol): Likewise.
2782 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2783 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2784 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2785 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2786 (versados_bfd_reloc_name_lookup): Likewise.
2787 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2788 (vms_bfd_define_start_stop): Likewise.
2789 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2790 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2791 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2792 * elf32-arc.c (get_replace_function): Assign replacement function
2794 * elf32-i370.c (i370_noop): Update prototype.
2796 2018-02-13 Alan Modra <amodra@gmail.com>
2799 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
2800 relocation sections. If size reduces to just the flag word,
2801 remove that too and mark with SEC_EXCLUDE.
2802 * elflink.c (bfd_elf_final_link): Strip empty group sections.
2804 2018-02-13 Alan Modra <amodra@gmail.com>
2807 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
2810 2018-02-12 Zebediah Figura <z.figura12@gmail.com>
2812 * i386msdos.c (msdos_mkobject); New function.
2813 (msdos_object_p): New function.
2814 (i386_msdos_vec): Use msdos_object_p as the check_format
2816 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
2817 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
2819 * peXXigen.c: Likewise.
2820 * coff-ia64.c: Likewise.
2822 2018-02-12 Nick Clifton <nickc@redhat.com>
2824 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
2826 * elf32-arc.c (elf_arc_relocate_section): Likewise.
2828 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
2830 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
2831 (sparc_elf_append_rela): Assert that there is enough room in section.
2832 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
2833 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
2834 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
2835 For a symbol subject to a GOT relocation, reserve a slot in the
2836 relocation section if the symbol isn't dynamic and we are in PIC mode.
2837 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
2838 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
2839 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
2840 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
2841 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
2842 resolved_to_zero. Do not generate a dynamic GOT relocation for an
2843 undefined weak symbol with non-default visibility. Remove superfluous
2844 'else' and fix formatting.
2846 2018-02-09 H.J. Lu <hongjiu.lu@intel.com>
2848 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
2850 (i386_elf32_sol2_vec): Don't declare.
2851 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
2852 Don't set need_global_offset_table.
2853 (elf_i386_solaris_arch_bed): New.
2854 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
2856 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
2857 target_os != is_nacl instead of target_os == is_normal.
2858 (x86_64_elf64_sol2_vec): Don't declare.
2859 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
2860 is_nacl instead of target_os == is_normal. Don't set
2861 need_global_offset_table.
2862 (elf_x86_64_solaris_arch_bed): New.
2863 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
2865 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
2866 _GLOBAL_OFFSET_TABLE_ for Solaris.
2867 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
2868 need_global_offset_table.
2869 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
2870 (elf_x86_link_hash_table): Remove need_global_offset_table.
2871 (elf_x86_init_table): Likewise.
2873 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2875 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2877 (i386_elf32_sol2_vec): Declared.
2878 (elf_i386_link_setup_gnu_properties): Set
2879 need_global_offset_table with info->output_bfd->xvec.
2880 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2882 (x86_64_elf64_sol2_vec): Declared.
2883 (elf_x86_64_link_setup_gnu_properties): Set
2884 need_global_offset_table with info->output_bfd->xvec.
2886 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2888 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2890 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
2892 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2894 (elf_x86_64_link_setup_gnu_properties): Set
2895 need_global_offset_table for Solaris.
2896 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
2897 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
2898 (_bfd_x86_elf_link_setup_gnu_properties): Copy
2899 need_global_offset_table.
2900 * elfxx-x86.h (elf_x86_link_hash_table): Add
2901 need_global_offset_table.
2902 (elf_x86_init_table): Likewise.
2904 2018-02-08 Jim Wilson <jimw@sifive.com>
2906 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
2909 2018-02-08 Nick Clifton <nickc@redhat.com>
2912 * elf.c (elf_parse_notes): Reject notes with excessuively large
2915 2018-02-07 Alan Modra <amodra@gmail.com>
2917 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
2918 * elf32-ppc.c: Remove speculation barrier support.
2919 * elf32-ppc.h: Likewise.
2920 * elf64-ppc.c: Likewise.
2921 * elf64-ppc.h: Likewise.
2923 2018-02-06 Jim Wilson <jimw@sifive.com>
2925 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
2926 callback to report an error.
2928 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
2931 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
2932 into call to !bfd_link_executable and tidy up.
2933 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
2934 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
2935 !bfd_link_executable.
2936 <R_SPARC_TLS_IE_HI22>: Likewise.
2937 <GOT relocations>: Remove useless code, tidy and merge related blocks.
2938 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
2939 !bfd_link_executable.
2940 <R_SPARC_WPLT30>: Tidy up.
2941 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
2942 !bfd_link_executable.
2943 (allocate_dynrelocs): Likewise.
2944 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
2945 <R_SPARC_TLS_GD_HI22>: Merge into...
2946 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
2947 sparc_elf_tls_transition and remove redundant code.
2948 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
2949 !bfd_link_executable.
2950 <R_SPARC_TLS_LDO_HIX22>: Likewise.
2951 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
2952 <R_SPARC_TLS_LDM_CALL>: Likewise.
2953 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
2954 <R_SPARC_TLS_GD_ADD>: Likewise.
2955 <R_SPARC_TLS_LDM_ADD>: Likewise.
2956 <R_SPARC_TLS_LDO_ADD>: Likewise.
2957 <R_SPARC_TLS_IE_LD>: Likewise.
2959 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
2962 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
2963 functions failed to find the function name, try the generic elf
2964 find function instead.
2966 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
2968 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
2969 'memcpy' instead of 'strncpy' when writing the magic number.
2971 2018-02-06 Nick Clifton <nickc@redhat.com>
2974 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
2975 section before attempting to read it in.
2976 (bfd_get_alt_debug_link_info): Likewise.
2978 2018-02-06 Paul Carroll <pcarroll@codesourcery.com>
2980 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
2981 line information in addition to name, if they can be found.
2983 2018-02-05 Renlin Li <renlin.li@arm.com>
2986 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
2987 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
2988 check for writeable section as well.
2990 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
2993 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
2994 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
2995 undefined weak symbol to 0.
2996 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
2997 if _GLOBAL_OFFSET_TABLE_ is referenced.
2998 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
2999 got_referenced instead of ref_regular_nonweak. Remove the
3000 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
3001 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
3003 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3005 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
3006 initialize `hi_reloc'.
3008 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3010 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
3011 SHT_MIPS_REGINFO sections don't assert the correct size and
3012 report an error instead.
3014 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3016 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
3017 status from `->elf_backend_section_processing'.
3019 2018-02-02 Jim Wilson <jimw@sifive.com>
3022 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
3023 If link_info->wrap_hash, check for a duplicate symbol and ignore.
3024 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
3025 Pass new argument to riscv_relax_delete_bytes.
3026 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
3027 ATTRIBUTE_UNUSED from link_info parameter.
3029 2018-02-02 Alan Modra <amodra@gmail.com>
3031 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
3032 emitted for toc sequence optimization. Set and use "howto" later.
3034 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
3036 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
3037 arithmetic on NULL pointer.
3038 * elflink.c (_bfd_elf_archive_symbol_lookup,
3039 elf_link_add_archive_symbols): Likewise.
3041 2018-01-31 Michael Matz <matz@suse.de>
3043 * elflink.c (bfd_elf_define_start_stop): Fix check of
3046 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
3049 * elflink.c (bfd_elf_define_start_stop): Check if __start and
3050 __stop symbols are referenced by shared objects.
3052 2018-01-30 Alan Modra <amodra@gmail.com>
3055 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
3056 segment when demand paged with lma on the same page. Test this
3057 before load/non-load, executable/non-executable,
3058 writable/non-writable tests and simplify. Delete bogus relro
3059 condition in writable/non-writable test. Delete outdated
3060 comment. Formatting.
3062 2018-01-30 Alan Modra <amodra@gmail.com>
3064 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
3067 2018-01-29 Alan Modra <amodra@gmail.com>
3070 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
3071 range before converting to a symbol table pointer.
3073 2018-01-27 Nick Clifton <nickc@redhat.com>
3075 * po/ru.po: Updated Russian translation.
3077 2018-01-26 Alan Modra <amodra@gmail.com>
3079 * elflink.c (bfd_elf_define_start_stop): Override symbols when
3080 they are defined dynamically.
3082 2018-01-26 Alan Modra <amodra@gmail.com>
3084 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
3085 .branch_lt changes size.
3087 2018-01-25 Alan Modra <amodra@gmail.com>
3090 * elfcode.h (elf_object_p): Avoid integer overflow.
3092 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
3095 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
3096 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
3099 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
3102 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
3103 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
3104 bfd_link_executable for TLS check.
3105 (_bfd_sparc_elf_check_relocs): Likewise.
3106 (allocate_dynrelocs): Likewise.
3107 (_bfd_sparc_elf_relocate_section): Likewise.
3109 2018-01-24 Renlin Li <renlin.li@arm.com>
3111 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
3112 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
3113 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
3114 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
3115 BFD_RELOC_AARCH64_MOVW_PREL_G3.
3116 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
3117 (_bfd_aarch64_elf_resolve_relocation): Likewise.
3119 2018-01-24 Renlin Li <renlin.li@arm.com>
3121 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
3122 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
3123 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
3124 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
3125 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
3126 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
3127 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
3128 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
3129 BFD_RELOC_AARCH64_MOVW_PREL_G3.
3130 * bfd-in2.h: Regenerate.
3131 * libbfd.h: Regenerate.
3133 2018-01-23 Maciej W. Rozycki <macro@mips.com>
3135 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
3136 `mips_elf32_section_processing' comment reference.
3138 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
3141 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
3142 versioned __tls_get_addr symbol.
3144 2018-01-19 Nick Clifton <nickc@redhat.com>
3146 * po/fr.po: Updated French translation.
3148 2018-01-18 Alan Modra <amodra@gmail.com>
3150 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
3151 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
3152 (ppc64_elf_build_stubs): Likewise.
3154 2018-01-17 Nick Clifton <nickc@redhat.com>
3156 * po/ru.po: Updated Russian translation.
3157 * po/uk/po: Updated Ukranian translation.
3159 2018-01-17 Alan Modra <amodra@gmail.com>
3161 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
3163 2018-01-17 Alan Modra <amodra@gmail.com>
3165 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
3166 (CRSETEQ, BEQCTRM): Define.
3167 (is_nonpic_glink_stub): Don't check bctr.
3168 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
3169 (ppc_elf_relax_section): Size speculation barrier.
3170 (output_bctr): New function.
3171 (write_glink_stub): Use output_bctr.
3172 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
3173 (ppc_elf_finish_dynamic_symbol): Likewise.
3174 (ppc_elf_finish_dynamic_sections): Use output_bctr.
3175 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
3176 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
3177 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
3178 (size_global_entry_stubs): Handle speculation barrier sizing.
3179 (plt_stub_size): Likewise.
3180 (output_bctr): New function.
3181 (build_plt_stub, build_tls_get_addr_stub): Output speculation
3183 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
3184 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
3185 (build_global_entry_stubs): Output speculation barrier.
3186 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
3187 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
3189 2018-01-17 Alan Modra <amodra@gmail.com>
3191 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
3192 __tls_get_addr_opt, and alignment sizing.
3193 (TLS_GET_ADDR_GLINK_SIZE): Delete.
3194 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
3195 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
3197 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
3198 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
3199 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
3201 (write_glink_stub): Handle __tls_get_addr_opt stub.
3202 Pad out to size given by GLINK_ENTRY_SIZE.
3203 (ppc_elf_relocate_section): Adjust write_glink_stub call.
3204 (ppc_elf_finish_dynamic_symbol): Likewise.
3205 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
3206 insn array since so many need rewriting.
3207 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
3208 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
3209 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
3210 nops. Adjust all uses.
3211 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
3212 in glink_vma calculation.
3213 (struct ppc_link_hash_table): Add global_entry section pointer.
3214 (create_linkage_sections): Create separate section for global
3216 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
3217 (size_global_entry_stubs): Handle sizing for aligned stubs.
3218 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
3219 and don't stash end of glink branch table in rawsize.
3220 (ppc_build_one_stub): Rewrite stub size calculations.
3221 (build_global_entry_stubs): Use new section.
3222 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
3223 Build lazy link stubs out to end of section. Build global entry
3224 stubs in new section.
3226 2018-01-15 Nick Clifton <nickc@redhat.com>
3228 * po/uk.po: Updated Ukranian translation.
3230 2018-01-13 Nick Clifton <nickc@redhat.com>
3232 * po/bfd.pot: Regenerated.
3234 2018-01-13 Nick Clifton <nickc@redhat.com>
3236 * version.m4: Bump version to 2.30.51
3237 * configure: Regenerate.
3239 2018-01-13 Nick Clifton <nickc@redhat.com>
3241 2.30 branch created.
3243 2018-01-12 Jens Widell <jl@opera.com>
3245 * elf.c (setup_group): Optimize search for group by remembering
3246 last found group and restarting search at that index.
3247 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
3249 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
3251 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
3252 bfd_link_common_skip_none in switch.
3254 2018-01-12 Alan Modra <amodra@gmail.com>
3257 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
3258 references on forced local symbols.
3260 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
3262 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
3263 .reginfo section has wrong size.
3265 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3268 * elf.c (_bfd_elf_map_sections_to_segments): When generating
3269 separate code and read-only data LOAD segments, create a new
3270 LOAD segment if the previous section contains text and the
3271 current section doesn't or vice versa. Don't put a writable
3272 section in a read-only segment if there is a RELRO segment.
3274 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3277 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
3278 references on forced local symbols.
3280 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3283 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
3284 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
3286 2018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com>
3289 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
3291 2018-01-03 John Baldwin <jhb@FreeBSD.org>
3293 * elf.c (elfcore_grok_freebsd_note): Handle
3294 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
3295 NT_FREEBSD_PROCSTAT_VMMAP.
3297 2018-01-03 Alan Modra <amodra@gmail.com>
3299 Update year range in copyright notice of all files.
3301 For older changes see ChangeLog-2017
3303 Copyright (C) 2018 Free Software Foundation, Inc.
3305 Copying and distribution of this file, with or without modification,
3306 are permitted in any medium without royalty provided the copyright
3307 notice and this notice are preserved.
3313 version-control: never