1 2018-07-18 Nick Clifton <nickc@redhat.com>
3 * development.sh: Set to true.
5 2018-07-18 Nick Clifton <nickc@redhat.com>
8 * version.m4: Set to 2.31.1
9 * development.sh: Set to false.
10 * configure: Regenerate.
11 * po/bfd.pot: Regenerate.
13 2018-07-14 Nick Clifton <nickc@redhat.com>
15 * version.m4: Update to 2.31.0.
16 * development.sh: Set to true.
17 * configure: Regenerate.
18 * po/bfd.pot: Regenerate.
20 2018-07-14 Nick Clifton <nickc@redhat.com>
23 * version.m4: Update to 2.31.
24 * development.sh: Set to false.
25 * configure: Regenerate.
26 * po/bfd.pot: Regenerate.
28 2018-07-03 Alan Modra <amodra@gmail.com>
31 * elflink.c (_bfd_elf_fix_symbol_flags): Hide dynamic symbols
32 in discarded sections.
34 2018-07-11 Max Filippov <jcmvbkbc@gmail.com>
36 * elf32-xtensa.c (elf_xtensa_allocate_dynrelocs): Don't allocate
37 space for dynamic relocation for undefined weak symbol.
38 (elf_xtensa_relocate_section): Don't emit R_XTENSA_RELATIVE
39 relocation for undefined weak symbols.
40 (shrink_dynamic_reloc_sections): Don't shrink dynamic relocation
41 section for relocations against undefined weak symbols.
43 2018-07-10 Maciej W. Rozycki <macro@mips.com>
45 * elflink.c (bfd_elf_final_link): Rename `remove' local variable
48 2018-07-09 H.J. Lu <hongjiu.lu@intel.com>
51 * configure.ac: Use changequote for "i[3-7]86-*-linux-*".
52 * configure: Regenerated.
54 2018-07-09 H.J. Lu <hongjiu.lu@intel.com>
57 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Remove x86
58 ISA properties with empty bits.
60 2018-07-06 Alan Modra <amodra@gmail.com>
62 * elf32-arm.c (elf32_arm_nabi_write_core_note): Don't use
63 DIAGNOTIC_PUSH and DIAGNOSTIC_POP unconditionally.
64 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
65 * elf32-s390.c (elf_s390_write_core_note): Likewise.
66 * elf64-ppc.c (ppc64_elf_write_core_note): Likewise.
67 * elf64-s390.c (elf_s390_write_core_note): Likewise.
68 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
70 2018-07-05 Jim Wilson <jimw@sifive.com>
72 * config.bfd (riscv32*-*-*): Renamed from riscv32-*-*.
73 (riscv64*-*-*): Likewise.
74 (riscv-*-*): Add as an alias for riscv32*-*-*.
76 2018-07-05 Alan Modra <amodra@gmail.com>
78 * elf-bfd.h (_bfd_elf_ppc_merge_fp_attributes): Update prototype.
79 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Return error
80 on mismatch. Remove "warning: " from messages. Track last bfd
82 (ppc_elf_merge_obj_attributes): Likewise. Handle status from
83 _bfd_elf_ppc_merge_fp_attributes.
84 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data): Handle status
85 from _bfd_elf_ppc_merge_fp_attributes.
87 2018-07-03 Alan Modra <amodra@gmail.com>
89 * elflink.c (bfd_elf_final_link): Remove zero size .gnu.attributes
92 2018-07-03 Alan Modra <amodra@gmail.com>
94 * elf-bfd.h (ATTR_TYPE_FLAG_ERROR, ATTR_TYPE_HAS_ERROR): Define.
95 * elf-attrs.c (is_default_attr): Handle ATTR_TYPE_HAS_ERROR.
96 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Use
97 ATTR_TYPE_FLAG_INT_VAL. Set ATTR_TYPE_HAS_ERROR on finding
98 incompatible attribute.
99 (ppc_elf_merge_obj_attributes): Likewise. Return
100 _bfd_elf_merge_object_attributes result.
101 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data): Return
102 _bfd_elf_merge_object_attributes result.
104 2018-07-05 Nick Clifton <nickc@redhat.com>
106 * po/ru.po: Updated Russian translation.
108 2018-07-04 H.J. Lu <hongjiu.lu@intel.com>
110 * Makefile.am (bfdinclude_HEADERS): Add $(INCDIR)/diagnostics.h.
111 * Makefile.in: Regenerated.
113 2018-07-04 H.J. Lu <hongjiu.lu@intel.com>
116 * elf64-x86-64.c (elf_x86_64_relocate_section): Clear the
117 R_X86_64_converted_reloc_bit bit.
119 2018-06-26 Nick Clifton <nickc@redhat.com>
121 * po/uk.po: Updated Ukranian translation.
123 2018-06-25 Nick Clifton <nickc@redhat.com>
125 * elfnn-aarch64.c (_bfd_aarch64_erratum_835769_stub_name): Check
126 for malloc returning NULL.
127 (_bfd_aarch64_erratum_843419_fixup): Check for
128 _bfd_aarch64_erratum_835769_stub_name returning NULL.
130 2018-06-24 Nick Clifton <nickc@redhat.com>
132 * version.m4 (BFD_VERSION): Update to 2.30.90.
133 * configure: Regenerate.
134 * po/bfd.pot: Regenerate.
136 2018-06-24 Nick Clifton <nickc@redhat.com>
140 2018-06-21 Maciej W. Rozycki <macro@mips.com>
142 * elfxx-mips.c (_bfd_mips_elf_compact_eh_encoding)
143 (_bfd_mips_elf_cant_unwind_opcode): Correct formatting.
145 2018-06-21 Maciej W. Rozycki <macro@mips.com>
147 * elfxx-mips.c (_bfd_mips_post_process_headers): Keep
148 EI_ABIVERSION setting together.
150 2018-06-21 Maciej W. Rozycki <macro@mips.com>
152 * elfxx-mips.c (MIPS_LIBC_ABI_DEFAULT, MIPS_LIBC_ABI_MIPS_PLT)
153 (MIPS_LIBC_ABI_UNIQUE, MIPS_LIBC_ABI_MIPS_O32_FP64)
154 (MIPS_LIBC_ABI_MAX): New enumeration constants.
155 (_bfd_mips_post_process_headers): Use them in place of magic
158 2018-06-21 Jim Wilson <jimw@sifive.com>
160 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Update comment.
161 Use SYMBOL_REFERENCES_LOCAL. Add asserts for h->got.offset.
163 2018-06-21 Alan Modra <amodra@gmail.com>
165 * doc/Makefile.am (AUTOMAKE_OPTIONS): Add "foreign".
166 * doc/Makefile.in: Regenerate.
168 2018-06-20 Renlin Li <renlin.li@arm.com>
170 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use PG_OFFSET
171 to resolve BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC,
172 BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC,
173 BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC,
174 BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC,
175 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
176 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
177 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
178 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
180 2018-06-20 Nick Clifton <nickc@redhat.com>
183 * opncls.c (get_build_id): Check for a negative or excessive data
184 size in the build-id note.
186 2018-06-20 Nick Clifton <nickc@redhat.com>
189 * mach-o.c (cputype): New function.
190 (cpusubtype): New function.
191 (bfd_mach_o_bfd_print_private_data): New function. Dispalys the
192 values in the MACH-O file header.
193 (bfd_mach_o_bfd_copy_private_header_data): Copy the cputype and
194 cpusubtype fields from the input bfd's mach-o header to the output
196 * mach-o-target.c (bfd_mach_o_bfd_print_private_bfd_data):
197 Redefine to bfd_mach_o_bfd_print_private_data.
198 * mach-o.h (bfd_mach_o_bfd_print_private_bfd_data): Prototype.
200 2018-06-19 Maciej W. Rozycki <macro@mips.com>
203 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Verify the
204 `.got.plt' entry referred is in range.
205 (mips_finish_exec_plt): Correct the range check for `.got.plt'
206 start. Replace the assertion used for that with a proper error
209 2018-06-19 Maciej W. Rozycki <macro@mips.com>
211 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Fix
214 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
216 * Makefile.am (AUTOMAKE_OPTIONS): Remove 1.11.
217 (INCLUDES): Rename to ...
218 (AM_CPPFLAGS): ... this.
219 * configure.ac: Remove AC_PREREQ.
220 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove 1.9, cygnus, add
221 info-in-builddir no-texinfo.tex.
222 (info_TEXINFOS): Rename bfd.texinfo to bfd.texi.
223 * doc/bfd.texinfo: Rename to ...
224 * doc/bfd.texi: ... this.
225 * Makefile.in: Re-generate.
226 * aclocal.m4: Re-generate.
227 * config.in: Re-generate.
228 * configure: Re-generate.
229 * doc/Makefile.in: Re-generate.
231 2018-06-18 Mephi <mephi42@gmail.com>
234 * mach-o-x86-64.c (x86_64_howto_table): Add entry for
235 BFD_RELOC_MACH_O_X86_64_RELOC_TLV.
236 (bfd_mach_o_x86_64_canonicalize_one_reloc): Handle the new reloc.
237 (bfd_mach_o_x86_64_swap_reloc_out): Likewise.
238 * reloc.c (BFD_RELOC_MACH_O_X86_64_TV): New entry.
239 * bfd-in2.h: Regenerate.
240 * libbfd.h: Regenerate.
242 2018-06-14 Faraz Shahbazker <Faraz.Shahbazker@mips.com>
244 * elfxx-mips.c (print_mips_ases): Add GINV extension.
246 2018-06-14 H.J. Lu <hongjiu.lu@intel.com>
249 * elf.c (_bfd_elf_get_symbol_version_string): Check if the first
250 symbol version is base version.
252 2018-06-14 Alan Modra <amodra@gmail.com>
254 * elf-bfd.h (struct elf_link_hash_table): Add "dynamic_relocs".
255 * elflink.c (_bfd_elf_init_2_index_sections): Comment fix.
256 (_bfd_elf_add_dynamic_entry): Set "dynamic_relocs".
257 (_bfd_elf_link_renumber_dynsyms): Exclude all section symbols when
258 "dynamic_relocs" is not set.
259 * elfxx-mips.c (count_section_dynsyms): Likewise.
261 2018-06-14 Alan Modra <amodra@gmail.com>
264 * bfdio.c (bfd_seek): Optimize away seeks to current position.
266 2018-06-13 Scott Egerton <scott.egerton@imgtec.com>
267 Faraz Shahbazker <Faraz.Shahbazker@mips.com>
269 * elfxx-mips.c (print_mips_ases): Add CRC.
271 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
274 * elfxx-x86.c (elf_x86_hide_linker_defined): New function.
275 (_bfd_x86_elf_link_check_relocs): Use it to hide hidden
276 __bss_start, _end and _edata in shared libraries.
278 2018-06-07 Alan Modra <amodra@gmail.com>
280 * elf32-tic6x.c (elf32_tic6x_check_relocs): Reference
281 __c6xabi_DSBT_BASE explicitly for R_C6000_SBR_* relocs.
283 2018-06-05 Alan Modra <amodra@gmail.com>
285 * bfd.c (struct bfd): Update comment on "where" usage.
286 * bfdio.c (bfd_bwrite, bfd_stat): Use and update "iovec",
287 "iostream", and "where" from containing archive file. Return
289 (bfd_bread): Similarly, and return error attempted out of
290 bounds archive element access.
291 (bfd_tell, bfd_flush): Use and update "iovec", "iostream", and
292 "where" from containing archive file.
293 (bfd_seek): Likewise. Return error on NULL iovec. Don't
294 attempt to optimize away seeks. Don't paper over errors by
296 (bfd_get_mtime): Call bfd_stat rather than iovec->bstat.
297 (bfd_get_size): Likewise.
298 (bfd_mmap): Operate on and use iovec of containing archive
299 file. Return error on NULL iovec.
300 * cache.c (bfd_cache_lookup_worker): Abort if working on
302 (cache_bread_1): Delete bfd parameter, add FILE* parameter.
303 Don't ignore zero byte reads.
304 (cache_bread): Look up FILE* in cache here. Error on NULL
306 (cache_bwrite): Rename "where" to "from".
307 (cache_bmmap): Don't handle archive elements.
308 * coffcode.h (coff_slurp_line_table): Exit early on zero
310 * bfd-in2.h: Regenerate.
312 2018-06-05 Alan Modra <amodra@gmail.com>
315 * plugin.c (bfd_plugin_open_input): Allow for possibility of
316 nested archives. Open file again for plugin.
317 (try_claim): Don't save and restore file position. Close file
319 * sysdep.h (O_BINARY): Define.
321 2018-06-04 Max Filippov <jcmvbkbc@gmail.com>
323 * elf32-xtensa.c (xtensa_read_table_entries): Make global.
324 (compute_fill_extra_space): Drop declaration. Rename function to
325 xtensa_compute_fill_extra_space.
326 (compute_ebb_actions, remove_dead_literal): Update references to
327 compute_fill_extra_space.
329 2018-06-04 Volodymyr Arbatov <arbatov@cadence.com>
331 * elf32-xtensa.c (elf32xtensa_separate_props): New global
333 (xtensa_add_names): New function.
334 (xtensa_property_section_name): Add new parameter
335 separate_sections, use it to choose property section name.
336 (xtensa_get_separate_property_section): New function.
337 (xtensa_get_property_section): Invoke
338 xtensa_get_separate_property_section to get individual property
339 section if it exists, common property section otherwise.
340 (xtensa_make_property_section): Pass elf32xtensa_separate_props
341 to xtensa_property_section_name.
343 2018-06-04 H.J. Lu <hongjiu.lu@intel.com>
346 * bfd-in.h: Include "diagnostics.h".
347 * bfd-in2.h: Regenerated.
348 * elf32-arm.c (elf32_arm_nabi_write_core_note): Use
349 DIAGNOSTIC_PUSH, DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION and
350 DIAGNOSTIC_POP to silence GCC 8.1 warnings with
351 -Wstringop-truncation.
352 * elf32-ppc.c (ppc_elf_write_core_note): Likewse.
353 * elf32-s390.c (elf_s390_write_core_note): Likewse.
354 * elf64-ppc.c (ppc64_elf_write_core_note): Likewse.
355 * elf64-s390.c (elf_s390_write_core_note): Likewse.
356 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewse.
358 2018-06-03 Jim Wilson <jimw@sifive.com>
361 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Check
362 for and handle an undefined weak with no PLT.
365 * elfnn-riscv.c (riscv_relax_delete_bytes): Add versioned_hidden check
366 to code that ignores duplicate symbols.
368 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
370 * version.m4: Bump version to 2.30.52
371 * configure: Regenerated.
373 2018-06-01 Alan Modra <amodra@gmail.com>
375 * bfd.c (_bfd_error_handler): Arrange for this function to be
376 declared in bfd-in2.h.
377 * libbfd-in.h (_bfd_error_handler): Don't declare.
378 * libbfd.h: Regenerate.
379 * bfd-in2.h: Regenerate.
381 2018-05-30 Amaan Cheval <amaan.cheval@gmail.com>
383 * config.bfd (x86_64-*-*): Add pei-x86-64 target to x86_64-*-rtems*
384 This is needed to generate UEFI application image files from ELFs.
386 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
388 * elf32-i386.c (elf_i386_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_i386_lazy_ibt_plt): Likewise.
393 (elf_i386_nacl_plt): Likewise.
394 * elf64-x86-64.c (tlsdesc_plt_entry): Moved and renamed to ...
395 (elf_x86_64_tlsdesc_plt_entry): This.
396 (elf_x86_64_lazy_plt): Add 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 for TLSDESC entry.
400 (elf_x86_64_lazy_bnd_plt): Likewise.
401 (elf_x86_64_lazy_ibt_plt): Likewise.
402 (elf_x32_lazy_ibt_plt): Likewise.
403 (elf_x86_64_nacl_plt): Likewise.
404 (elf_x86_64_finish_dynamic_sections): Use plt_tlsdesc_entry,
405 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
406 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
407 plt_tlsdesc_got2_insn_end to update TLSDESC entry.
408 * elfxx-x86.h (elf_x86_lazy_plt_layout): Update comments.
409 Add plt_tlsdesc_entry, plt_tlsdesc_entry_size,
410 plt_tlsdesc_got1_offset, plt_tlsdesc_got2_offset,
411 plt_tlsdesc_got1_insn_end and plt_tlsdesc_got2_insn_end.
412 (elf_x86_non_lazy_plt_layout): Update comments.
413 (elf_x86_plt_layout): Likewise.
415 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
418 * elf-s390-common.c (elf_s390_add_symbol_hook): Removed.
419 * elf32-arc.c (elf_arc_add_symbol_hook): Likewise.
420 (elf_backend_add_symbol_hook): Likewise.
421 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
422 (elf_backend_add_symbol_hook): Likewise.
423 * elf32-s390.c (elf_backend_add_symbol_hook): Likewise.
424 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
425 (elf_backend_add_symbol_hook): Likewise.
426 * elf64-s390.c (elf_backend_add_symbol_hook): Likewise.
427 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
428 * elfxx-aarch64.h (_bfd_aarch64_elf_add_symbol_hook): Likewise.
429 (elf_backend_add_symbol_hook): Likewise.
430 * elf32-arm.c (elf32_arm_add_symbol_hook): Remove STT_GNU_IFUNC
432 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
433 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
434 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
435 * elflink.c (elf_link_add_object_symbols): Set
436 elf_gnu_symbol_ifunc for STT_GNU_IFUNC symbols.
438 2018-05-26 H.J. Lu <hongjiu.lu@intel.com>
441 * elf-bfd.h (_bfd_elf_link_hide_sym_by_version): New.
442 * elflink.c (_bfd_elf_link_hide_versioned_symbol): New function.
443 Extracted from _bfd_elf_link_assign_sym_version.
444 (_bfd_elf_link_hide_sym_by_version): New function.
445 (_bfd_elf_link_assign_sym_version): Use
446 _bfd_elf_link_hide_versioned_symbol.
447 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Call
448 _bfd_elf_link_hide_sym_by_version instead of
449 bfd_hide_sym_by_version. Don't check unversioned symbol.
451 2018-05-25 Alan Modra <amodra@gmail.com>
453 * Makefile.in: Regenerate.
454 * po/SRC-POTFILES.in: Regenerate.
456 2018-05-25 Alan Modra <amodra@gmail.com>
458 * configure.ac (bfd_cv_hidden): Run test with -Werror in CFLAGS.
459 * configure: Regenerate.
461 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
463 * elf64-ppc.c (ppc64_elf_write_core_note): Add ATTRIBUTE_NONSTRING
466 2018-05-22 Alan Modra <amodra@gmail.com>
469 * elf32-hppa.c (hppa_get_stub_entry): Return NULL when link_sec
471 (elf32_hppa_size_stubs): Only create stubs for load, alloc, code
473 (final_link_relocate): Revert last change.
475 2018-05-22 Alan Modra <amodra@gmail.com>
478 * elf32-hppa.c (final_link_relocate): Don't look for plt call
479 stubs in non-alloc sections.
481 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
484 * aout-target.h (MY_bfd_link_hide_symbol): New.
485 * aout-tic30.c (MY_bfd_link_hide_symbol): Likewise.
486 * binary.c (binary_bfd_link_hide_symbol): Likewise.
487 * coff-alpha.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
488 * coff-mips.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
489 * coff-rs6000.c (_bfd_xcoff_bfd_link_hide_symbol): Likewise.
490 * coffcode.h (coff_bfd_link_hide_symbol): Likewise.
491 * elf-bfd.h (_bfd_elf_link_hide_symbol): Likewise.
492 * elfxx-target.h (bfd_elfNN_bfd_link_hide_symbol): Likewise.
493 * i386msdos.c (msdos_bfd_link_hide_symbol): Likewise.
494 * ihex.c (ihex_bfd_link_hide_symbol): Likewise.
495 * libbfd-in.h (_bfd_nolink_bfd_link_hide_symbol): Likewise.
496 * linker.c (_bfd_generic_link_hide_symbol): Likewise.
497 (bfd_link_hide_symbol): Likewise.
498 * mach-o-target.c (bfd_mach_o_bfd_link_hide_symbol): Likewise.
499 * mmo.c (mmo_bfd_link_hide_symbol): Likewise.
500 * pef.c (bfd_pef_bfd_link_hide_symbol): Likewise.
501 * plugin.c (bfd_plugin_bfd_link_hide_symbol): Likewise.
502 * ppcboot.c (ppcboot_bfd_link_hide_symbol): Likewise.
503 * som.c (som_bfd_link_hide_symbol): Likewise.
504 * srec.c (srec_bfd_link_hide_symbol): Likewise.
505 * tekhex.c (tekhex_bfd_link_hide_symbol): Likewise.
506 * vms-alpha.c (vms_bfd_link_hide_symbol): Likewise.
507 (alpha_vms_bfd_link_hide_symbol): Likewise.
508 * xsym.c (bfd_sym_bfd_link_hide_symbol): Likewise.
509 * coff64-rs6000.c (rs6000_xcoff64_vec): Add
510 _bfd_generic_link_hide_symbol.
511 (rs6000_xcoff64_aix_vec): Likewise.
512 * elflink.c (bfd_elf_record_link_assignment): Don't make forced
513 local symbol dynamic.
514 (_bfd_elf_link_hide_symbol): New function.
515 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
516 check root.ldscript_def.
517 * targets.c (bfd_target): Add _bfd_link_hide_symbol.
518 (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_link_hide_symbol.
519 * bfd-in2.h: Regenerated.
520 * libbfd.h: Likewise.
522 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
525 * elf.c (setup_group): Mark section in a section group with
528 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
531 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
532 set eh->local_ref to 1 if a symbol is versioned and there is a
535 2018-05-18 Kito Cheng <kito.cheng@gmail.com>
537 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Handle
540 2018-05-18 Jim Wilson <jimw@sifive.com>
542 * elfnn-riscv.c (allocate_dynrelocs): Discard dynamic relocations if
543 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
544 (riscv_elf_relocate_section): Don't generate dynamic relocation if
545 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
546 (riscv_elf_finish_dynamic_symbol): Likewise.
548 2018-05-18 John Darrington <john@darrington.wattle.id.au>
550 * Makefile.am: Add s12z files.
551 * Makefile.in: Regenerate.
552 * archures.c: Add bfd_s12z_arch.
553 * bfd-in.h: Add exports of bfd_putb24 and bfd_putl24.
554 * bfd-in2.h: Regenerate.
555 * config.bfd: Add s12z target.
556 * configure.ac: Add s12z target.
557 * configure: Regenerate.
558 * cpu-s12z.c: New file.
559 * elf32-s12z.c: New file.
560 * libbfd.c (bfd_putb24): New function.
561 (bfd_putl24): New function.
562 * libbfd.h: Regenerate.
563 * reloc.c: Add s12z relocations.
564 (bfd_get_reloc_size): Handle size 5 relocs.
565 * targets.c: Add s12z_elf32_vec.
567 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
570 * elf32-i386.c (elf_i386_relocate_section): Handle R_386_GOT32X
572 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
573 set eh->local_ref to 1 for linker defined symbols.
575 2018-05-18 Alan Modra <amodra@gmail.com>
578 * elf.c (setup_group): Formatting. Check that SHT_GROUP entries
579 don't point at other SHT_GROUP sections. Set shdr corresponding
580 to invalid entry, to NULL rather than section 0. Identify
581 SHT_GROUP section index when reporting an error. Cope with NULL
584 2018-05-18 Alan Modra <amodra@gmail.com>
586 * libbfd-in.h (ATTRIBUTE_HIDDEN): Define and use throughout.
587 * configure.ac (HAVE_HIDDEN): Check compiler support for hidden
589 * libbfd.h: Regenerate.
590 * configure: Regenerate.
591 * config.in: Regenerate.
593 2018-05-18 Alan Modra <amodra@gmail.com>
595 * libbfd-in.h: Add include guard.
596 * libcoff-in.h: Likewise.
597 * doc/Makefile.am (libbfd.h, libcoff.h): Append another #endif.
598 * doc/Makefile.in: Regenerate.
599 * libbfd.h: Regenerate.
600 * libcoff.h: Regenerate.
602 2018-05-16 Maciej W. Rozycki <macro@mips.com>
604 * elf32-nds32.c (nds32_convert_32_to_16): Preset `insn_type'.
606 2018-05-16 Alan Modra <amodra@gmail.com>
609 * format.c (struct bfd_preserve): Add section_id.
610 (bfd_preserve_save, bfd_preserve_restore): Save and restore
612 (bfd_reinit): Set _bfd_section_id.
613 (bfd_check_format_matches): Put all matches of any priority into
614 matching_vector. Save initial section id and start each attempted
615 match at that section id.
616 * libbfd-in.h (_bfd_section_id): Declare.
617 * section.c (_bfd_section_id): Rename from section_id and make
619 (bfd_get_next_section_id): Delete.
620 * elf64-ppc.c (ppc64_elf_setup_section_lists): Replace use of
621 bfd_get_section_id with _bfd_section_id.
622 * libbfd.h: Regenerate.
623 * bfd-in2.h: Regenerate.
625 2018-05-15 Christophe Guillon <christophe.guillon@st.com>
627 * coffcode.h (coff_bigobj_swap_aux_in): Make sure that all fields
628 of the aux structure are initialised.
630 2018-05-15 Francois H. Theron <francois.theron@netronome.com>
632 * targets.c: Wrap nfp_elf64_vec in BFD64 ifdef.
634 2018-05-15 Nick Clifton <nickc@redhat.com>
636 * po/pt.po: New Portuguese translation.
637 * configure.ac (ALL_LINGUAS): Add pt.
638 * configure: Regenerate.
640 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
643 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Don't issue
644 an error on IFUNC pointer defined in PDE.
645 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Call
646 _bfd_x86_elf_link_fixup_ifunc_symbol.
647 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
648 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): New
650 * elfxx-x86.h (_bfd_x86_elf_link_fixup_ifunc_symbol): New.
652 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
655 * elfxx-x86.c (elf_x86_linker_defined): New function.
656 (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start,
657 _end and _edata locally defined within executables.
659 2018-05-12 Alan Modra <amodra@gmail.com>
662 * elf.c (rewrite_elf_program_header): Use segment_mark only for
663 PT_LOAD headers. Delete first_matching_lma and first_suggested_lma.
664 Instead make matching_lma and suggested_lma pointers to the
665 sections. Align section vma and lma calculated from segment.
666 Don't clear includes_phdrs or includes_filehdr based on p_paddr
667 test. Try to handle alignment padding before first section by
668 adjusting new segment lma down. Adjust PT_PHDR map p_paddr.
670 2018-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
672 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Make LDI32 relocation
673 conformant to TI ABI.
674 (pru_elf32_relax_section): Likewise.
675 (pru_elf_relax_delete_bytes): Fix offsets for new LDI32 code.
676 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Ignore addend.
677 (pru_elf32_pmem_relocate): Trap - should not get here.
678 (pru_elf32_relocate_section): Add support for REL relocations.
679 (elf_info_to_howto_rel): Enable REL.
680 (elf_backend_may_use_rel_p): Likewise.
681 (elf_backend_may_use_rela_p): Likewise.
682 (elf_backend_default_use_rela_p): Likewise.
684 2018-05-09 Alan Modra <amodra@gmail.com>
687 * peXXigen.c (pe_print_edata): Correct minimum size.
689 2018-05-09 Alan Modra <amodra@gmail.com>
692 * peXXigen.c (pe_print_idata): Bound check hint_addr.
694 2018-05-08 Nick Clifton <nickc@redhat.com>
697 * elf.c (bfd_elf_get_str_section): Check for an excessively large
699 * elf-attrs.c (_bfd_elf_parse_attributes): Issue an error if the
700 attribute section is larger than the size of the file.
702 2018-05-07 Alan Modra <amodra@gmail.com>
704 * cofflink.c (_bfd_coff_link_input_bfd): Use memcmp rather than
705 strncmp when checking for ".bf" special symbol.
706 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Make pe_required_section_flags
707 section name a char array, remove sentinal known_sections entry,
708 and adjust loop over known_sections to suit. Use memcmp rather
711 2018-05-04 Alan Modra <amodra@gmail.com>
713 * elf-linux-core.h (struct elf_external_linux_prpsinfo32_ugid32),
714 (struct elf_external_linux_prpsinfo32_ugid16),
715 (struct elf_external_linux_prpsinfo64_ugid32),
716 (struct elf_external_linux_prpsinfo64_ugid16): Add ATTRIBUTE_NONSTRING
717 to pr_fname and pr_psargs fields. Remove GCC diagnostic pragmas.
719 * elf.c (elfcore_write_prpsinfo): ..here. Indent nested preprocessor
721 * elf32-arm.c (elf32_arm_nabi_write_core_note): Add ATTRIBUTE_NONSTRING
723 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
724 * elf32-s390.c (elf_s390_write_core_note): Likewise.
725 * elf64-s390.c (elf_s390_write_core_note): Likewise.
726 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
727 * elf64-x86-64.c (elf_x86_64_write_core_note): Add GCC diagnostic
729 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Use strnlen to avoid
730 false positive gcc-8 warning.
731 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
733 2018-05-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
735 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Fix the order
736 of arguments when warning about different long double types.
738 2018-05-03 Simon Atanasyan <simon@atanasyan.com>
740 * elf32-mips.c: (elf32_mips_fixup_symbol): New function.
741 (elf_backend_fixup_symbol): New macro.
742 * elfxx-mips.c: (mips_elf_output_extsym): Discard _gp_disp
744 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
746 2018-04-30 Francois H. Theron <francois.theron@netronome.com>
748 * Makefile.am: Added NFP files to build.
749 * archures.c: Added bfd_arch_nfp
750 * config.bfd: Added NFP support.
751 * configure.ac: Added NFP support.
752 * cpu-nfp.c: New, for NFP support.
753 * elf-bfd.h: Added elf_section_info()
754 * elf64-nfp.c: New, for NFP support.
755 * po/SRC-POTFILES.in: Added NFP source files.
756 * targets.c: Added nfp_elf64_vec
757 * bfd-in2.h: Regenerate.
758 * Makefile.in: Regenerate.
759 * configure: Regenerate.
761 2018-04-27 Alan Modra <amodra@gmail.com>
763 * bfd-in2.h: Regenerate.
764 * libbfd.h: Regenerate.
766 2018-04-27 Alan Modra <amodra@gmail.com>
770 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't drop plt
772 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Comment fixes.
774 2018-04-26 Pedro Alves <palves@redhat.com>
776 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't consider
777 ifunc and non-ifunc symbols duplicates.
779 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
780 Mickaël Guêné <mickael.guene@st.com>
782 * elf32-arm.c (elf32_arm_fdpic_thumb_plt_entry): New.
783 (elf32_arm_plt_needs_thumb_stub_p): Handle thumb-only case.
784 (elf32_arm_populate_plt_entry): Likewise.
785 (elf32_arm_output_plt_map_1): Likewise.
786 (elf32_arm_output_arch_local_syms): Likewise.
788 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
789 Mickaël Guêné <mickael.guene@st.com>
791 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Handle
792 _GLOBAL_OFFSET_TABLE_ in FDPIC mode.
794 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
795 Mickaël Guêné <mickael.guene@st.com>
797 * elf32-arm.c (bfd_elf32_arm_set_target_params): Handle FDPIC case
800 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
801 Mickaël Guêné <mickael.guene@st.com>
803 * elf32-arm.c (DEFAULT_STACK_SIZE): New.
804 (elf32_arm_always_size_sections): Create stack segment.
806 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
807 Mickaël Guêné <mickael.guene@st.com>
809 * bfd-in2.h (BFD_RELOC_ARM_TLS_GD32_FDPIC)
810 (BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC): New
812 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_TLS_GD32_FDPIC,
813 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC relocations.
814 (elf32_arm_reloc_map): Add R_ARM_TLS_GD32_FDPIC,
815 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC.
816 (struct elf32_arm_link_hash_table): Update comment.
817 (elf32_arm_final_link_relocate): Handle TLS FDPIC relocations.
818 (IS_ARM_TLS_RELOC): Likewise.
819 (elf32_arm_check_relocs): Likewise.
820 (allocate_dynrelocs_for_symbol): Likewise.
821 (elf32_arm_size_dynamic_sections): Update comment.
822 * reloc.c: Add BFD_RELOC_ARM_TLS_GD32_FDPIC,
823 BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC.
825 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
826 Mickaël Guêné <mickael.guene@st.com>
828 * elf32-arm.c (elf32_arm_fdpic_plt_entry): New.
829 (elf32_arm_create_dynamic_sections): Handle FDPIC.
830 (elf32_arm_allocate_plt_entry): Likewise.
831 (elf32_arm_populate_plt_entry): Likewise.
832 (elf32_arm_output_plt_map_1): Likewise.
834 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
835 Mickaël Guêné <mickael.guene@st.com>
837 * elf32-arm.c (struct fdpic_local): New.
838 (elf_arm_obj_tdata): Add local_fdpic_cnts field.
839 (elf32_arm_local_fdpic_cnts): New.
840 (struct fdpic_global): New.
841 (elf32_arm_link_hash_entry): Add fdpic_cnts field.
842 (elf32_arm_link_hash_table): Add srofixup field.
843 (arm_elf_add_rofixup): New.
844 (arm_elf_fill_funcdesc): New.
845 (elf32_arm_link_hash_newfunc): Handle fdpic_cnts.
846 (elf32_arm_allocate_local_sym_info): Likewise.
847 (create_got_section): Create .rofixup section.
848 (elf32_arm_copy_indirect_symbol): Handle fdpic_cnts.
849 (bfd_elf32_arm_set_target_params): Handle FDPIC.
850 (elf32_arm_final_link_relocate): Likewise.
851 (elf32_arm_check_relocs): Likewise.
852 (allocate_dynrelocs_for_symbol): Likewise.
853 (elf32_arm_size_dynamic_sections): Likewise.
854 (elf32_arm_finish_dynamic_sections): Likewise.
855 (elf32_arm_output_arch_local_syms): Likewise.
856 (elf32_arm_fdpic_omit_section_dynsym): New.
858 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
859 Mickaël Guêné <mickael.guene@st.com>
861 * bfd-in2.c (BFD_RELOC_ARM_GOTFUNCDESC)
862 (BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC)
863 (BFD_RELOC_ARM_FUNCDESC_VALUE): New.
864 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_GOTFUNCDESC,
865 R_ARM_GOTOFFFUNCDESC, R_ARM_FUNCDESC, R_ARM_FUNCDESC_VALUE.
866 (elf32_arm_howto_from_type): Take new members of
867 elf32_arm_howto_table_2 into account.
868 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_GOTFUNCDESC,
869 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
870 BFD_RELOC_ARM_FUNCDESC_VALUE.
871 * reloc.c: Add BFD_RELOC_ARM_GOTFUNCDESC,
872 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
873 BFD_RELOC_ARM_FUNCDESC_VALUE.
875 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
876 Mickaël Guêné <mickael.guene@st.com>
878 * elf32-arm.c (elf32_arm_print_private_bfd_data): Support
879 EF_ARM_PIC and ELFOSABI_ARM_FDPIC.
880 (elf32_arm_post_process_headers): Support ELFOSABI_ARM_FDPIC.
881 (ELF_OSABI): Define to ELFOSABI_ARM_FDPIC.
883 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
884 Mickaël Guêné <mickael.guene@st.com>
886 * config.bfd (arm*-*-linux-*): Add arm_elf32_fdpic_be_vec and
887 arm_elf32_fdpic_le_vec to targ_selvecs. Accept
888 arm*-*-uclinuxfdpiceabi.
889 * configure.ac: Add support for arm_elf32_fdpic_be_vec and
890 arm_elf32_fdpic_le_vec.
891 * configure: Regenerate.
892 * elf32-arm.c (struct elf32_arm_link_hash_table): Add fdpic_p.
893 (elf32_arm_link_hash_table_create): Initialize fdpic_p.
894 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM)
895 (TARGET_BIG_NAME, elf_match_priority): Define for FDPIC targets.
896 (elf32_arm_fdpic_link_hash_table_create): New.
897 * targets.c (_bfd_target_vector): Add arm_elf32_fdpic_be_vec and
898 arm_elf32_fdpic_le_vec.
900 2018-04-25 Alan Modra <amodra@gmail.com>
902 * elf-linux-core.h: Disable gcc-8 string truncation warning.
903 * elf.c (elfcore_write_prpsinfo): Likewise.
905 2018-04-25 Alan Modra <amodra@gmail.com>
907 * Makefile.am: Remove arm-aout and arm-coff support.
908 * config.bfd: Likewise.
909 * configure.ac: Likewise.
910 * targets.c: Likewise.
911 * aout-arm.c: Delete.
912 * armnetbsd.c: Delete.
914 * Makefile.in: Regenerate.
915 * configure: Regenerate.
916 * po/SRC-POTFILES.in: Regenerate.
918 2018-04-24 Nick Clifton <nickc@redhat.com>
921 * elf.c (ignore_section_sym): Check for the output_section pointer
922 being NULL before dereferencing it.
925 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check for
926 a negative PE_DEBUG_DATA size before iterating over the debug data.
928 2018-04-23 Alan Modra <amodra@gmail.com>
930 * elf-linux-core.h: Revert last change.
933 2018-04-23 Nick Clifton <nickc@redhat.com>
936 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
937 the end of the string table, and zero it.
939 2018-04-23 Alan Modra <amodra@gmail.com>
941 * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable
942 gcc-8 string truncation warning.
943 (swap_linux_prpsinfo32_ugid16_out): Likewise.
944 (swap_linux_prpsinfo64_ugid32_out): Likewise.
945 (swap_linux_prpsinfo64_ugid16_out): Likewise.
946 * elf.c (elfcore_write_prpsinfo): Likewise.
948 2018-04-23 Nick Clifton <nickc@redhat.com>
951 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
952 the end of the string table, and zero it.
954 2018-04-20 Alan Modra <amodra@gmail.com>
957 * elf32-hppa.c (got_relocs_needed): Add extra param to special
958 case both dtprel and tprel relocs.
959 (allocate_dynrelocs): Adjust conditions for got relocs.
960 (elf32_hppa_relocate_section): Likewise for local sym got relocs.
961 Emit dynamic relocs on TLS GOT entries for shared libraries,
962 not when pic. Omit dynamic reloc on dtprel entry when local,
963 and on tprel entry when local and executable.
965 2018-04-19 Alan Modra <amodra@gmail.com>
968 * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1.
969 (hppa_type_of_stub): Don't return a long branch stub for
970 symbols other than those defined statically.
972 2018-04-19 Alan Modra <amodra@gmail.com>
974 * Makefile.am: Revert 2018-04-18 coff-mips changes.
975 * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec
976 to selvecs for mips targets change 2018-04-18.
977 * configure.ac: Reinstate mips_ecoff_le_vec, mips_ecoff_be_vec
978 and mips_ecoff_bele_vec.
979 * targets.c: Likewise.
980 * coff-mips.c: Resurrect.
981 * Makefile.in: Regenerate.
982 * configure: Regenerate.
983 * po/SRC-POTFILES.in: Regenerate.
985 2018-04-18 Alan Modra <amodra@gmail.com>
987 * Makefile.am: Remove mips aout and coff support.
988 * config.bfd: Likewise.
989 * configure.ac: Likewise.
990 * targets.c: Likewise.
991 * coff-mips.c: Delete
995 * Makefile.in: Regenerate.
996 * configure: Regenerate.
997 * po/SRC-POTFILES.in: Regenerate.
999 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
1001 * elf32-i386.c (elf32_bed): Define before including
1003 * elf64-x86-64.c (elf64_bed): Define before including
1005 (elf32_bed): Define before including "elf32-target.h".
1007 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
1010 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a
1011 normal input file with compatible relocation.
1013 2018-04-18 Alan Modra <amodra@gmail.com>
1015 * Makefile.am: Remove support for assorted i386 aout and coff targets.
1016 * config.bfd: Likewise.
1017 * configure.ac: Likewise.
1018 * doc/bfdint.texi: Likewise.
1019 * targets.c: Likewise.
1020 * freebsd.h: Delete.
1021 * i386dynix.c: Delete.
1022 * i386freebsd.c: Delete.
1023 * i386linux.c: Delete.
1024 * i386mach3.c: Delete.
1025 * i386netbsd.c: Delete.
1026 * i386os9k.c: Delete.
1027 * Makefile.in: Regenerate.
1028 * configure: Regenerate.
1029 * po/SRC-POTFILES.in: Regenerate.
1031 2018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com>
1033 Microblaze Target: PIC data text relative
1035 * bfd/reloc.c (2 new BFD relocations):
1036 BFD_RELOC_MICROBLAZE_64_TEXTPCREL &
1037 BFD_RELOC_MICROBLAZE_64_TEXTPCREL
1038 * bfd/bfd-in2.h: Regenerate
1039 * bfd/libbfd.h: Regenerate
1040 * bfd/elf32-microblaze.c (Handle new relocs): define 'HOWTO' of 3
1041 new relocs and handle them in both relocate and relax functions.
1042 (microblaze_elf_reloc_type_lookup): add mapping between for new
1044 (microblaze_elf_relocate_section): Handle new relocs in case of
1046 (microblaze_elf_relax_section): Handle new relocs for elf relaxation.
1048 2018-04-17 Nick Clifton <nickc@redhat.com>
1051 * aoutx.h (find_nearest_line): Check that the symbol name exists
1052 and is long enough, before attempting to see if it is for a .o
1054 * hash.c (bfd_hash_hash): Add an assertion that the string is not
1056 * linker.c (bfd_link_hash_lookup): Fail if the table or string are
1058 (_bfd_generic_link_add_archive_symbols): Fail if an archive entry
1062 * dwarf2.c (concat_filename): Check for a NULL table pointer.
1064 2018-04-16 Nick Clifton <nickc@redhat.com>
1067 * coffgen.c (coff_pointerize_aux): Check for an out of range
1070 2018-04-16 Alan Modra <amodra@gmail.com>
1072 * Makefile.am: Remove arm-epoc-pe support.
1073 * coff-arm.c: Likewise.
1074 * config.bfd: Likewise.
1075 * configure.ac: Likewise.
1076 * targets.c: Likewise.
1077 * epoc-pe-arm.c: Delete.
1078 * epoc-pei-arm.c: Delete.
1079 * Makefile.in: Regenerate.
1080 * configure: Regenerate.
1081 * po/SRC-POTFILES.in: Regenerate.
1083 2018-04-16 Alan Modra <amodra@gmail.com>
1085 * Makefile.am: Remove sparc-aout and sparc-coff support.
1086 * config.bfd: Likewise.
1087 * configure.ac: Likewise.
1088 * targets.c: Likewise.
1089 * aout-sparcle.c: Delete.
1091 * cf-sparclynx.c: Delete.
1092 * coff-sparc.c: Delete.
1094 * sparclinux.c: Delete.
1095 * sparclynx.c: Delete.
1096 * sparcnetbsd.c: Delete.
1098 * Makefile.in: Regenerate.
1099 * configure: Regenerate.
1100 * po/SRC-POTFILES.in: Regenerate.
1102 2018-04-16 Alan Modra <amodra@gmail.com>
1104 * Makefile.am: Remove m68k-aout and m68k-coff support.
1105 * aoutf1.h: Likewise.
1106 * aoutx.h: Likewise.
1107 * archive.c: Likewise.
1108 * bfd-in.h: Likewise.
1110 * coffcode.h: Likewise.
1111 * coffswap.h: Likewise.
1112 * config.bfd: Likewise.
1113 * configure.ac: Likewise.
1114 * configure.host: Likewise.
1115 * doc/bfd.texinfo: Likewise.
1116 * doc/bfdint.texi: Likewise.
1117 * freebsd.h: Likewise.
1118 * gen-aout.c: Likewise.
1119 * hpux-core.c: Likewise.
1120 * libaout.h: Likewise.
1121 * libbfd-in.h: Likewise.
1122 * pdp11.c: Likewise.
1123 * peicode.h: Likewise.
1124 * riscix.c: Likewise.
1125 * targets.c: Likewise.
1127 * coff-apollo.c: Delete.
1128 * coff-aux.c: Delete.
1129 * coff-m68k.c: Delete.
1130 * coff-svm68k.c: Delete.
1131 * coff-u68k.c: Delete.
1132 * hosts/delta68.h: Delete.
1133 * hosts/hp300bsd.h: Delete.
1134 * hosts/m68kaux.h: Delete.
1135 * hosts/news.h: Delete.
1136 * hp300bsd.c: Delete.
1137 * hp300hpux.c: Delete.
1138 * liboasys.h: Delete.
1139 * m68k4knetbsd.c: Delete.
1140 * m68klinux.c: Delete.
1141 * m68knetbsd.c: Delete.
1143 * versados.c: Delete.
1144 * Makefile.in: Regenerate.
1145 * bfd-in2.h: Regenerate.
1146 * configure: Regenerate.
1147 * libbfd.h: Regenerate.
1148 * po/SRC-POTFILES.in: Regenerate.
1150 2018-04-16 Alan Modra <amodra@gmail.com>
1152 * Makefile.am: Remove sh5 and sh64 support.
1153 * archures.c: Likewise.
1154 * config.bfd: Likewise.
1155 * configure.ac: Likewise.
1156 * cpu-sh.c: Likewise.
1157 * elf32-sh-relocs.h: Likewise.
1158 * elf32-sh.c: Likewise.
1159 * targets.c: Likewise.
1160 * elf32-sh64-com.c: Delete.
1161 * elf32-sh64.c: Delete.
1162 * elf32-sh64.h: Delete.
1163 * elf64-sh64.c: Delete.
1164 * Makefile.in: Regenerate.
1165 * bfd-in2.h: Regenerate.
1166 * configure: Regenerate.
1167 * po/SRC-POTFILES.in: Regenerate.
1169 2018-04-16 Alan Modra <amodra@gmail.com>
1171 * Makefile.am: Remove sh-symbianelf support.
1172 * config.bfd: Likewise.
1173 * configure.ac: Likewise.
1174 * targets.c: Likewise.
1175 * elf32-sh-symbian.c: Delete.
1176 * Makefile.in: Regenerate.
1177 * configure: Regenerate.
1178 * po/SRC-POTFILES.in: Regenerate.
1180 2018-04-16 Alan Modra <amodra@gmail.com>
1182 * Makefile.am: Remove vax-bsd and vax-ultrix support.
1183 * config.bfd: Likewise.
1184 * configure.ac: Likewise.
1185 * targets.c: Likewise.
1187 * Makefile.in: Regenerate.
1188 * configure: Regenerate.
1189 * po/SRC-POTFILES.in: Regenerate.
1191 2018-04-16 Alan Modra <amodra@gmail.com>
1193 * Makefile.am: Remove w65 support.
1194 * archures.c: Likewise.
1195 * coffcode.h: Likewise.
1196 * config.bfd: Likewise.
1197 * configure.ac: Likewise.
1198 * targets.c: Likewise.
1199 * coff-w65.c: Delete.
1200 * cpu-w65.c: Delete.
1201 * Makefile.in: Regenerate.
1202 * bfd-in2.h: Regenerate.
1203 * configure: Regenerate.
1204 * po/SRC-POTFILES.in: Regenerate.
1206 2018-04-16 Alan Modra <amodra@gmail.com>
1208 * Makefile.am: Remove we32k support.
1209 * archures.c: Likewise.
1210 * coffcode.h: Likewise.
1211 * config.bfd: Likewise.
1212 * configure.ac: Likewise.
1213 * targets.c: Likewise.
1214 * coff-we32k.c: Delete.
1215 * cpu-we32k.c: Delete.
1216 * Makefile.in: Regenerate.
1217 * bfd-in2.h: Regenerate.
1218 * configure: Regenerate.
1219 * po/SRC-POTFILES.in: Regenerate.
1221 2018-04-16 Alan Modra <amodra@gmail.com>
1223 * Makefile.am: Remove m88k support.
1224 * aoutx.h: Likewise.
1225 * archures.c: Likewise.
1226 * coffcode.h: Likewise.
1227 * coffswap.h: Likewise.
1228 * config.bfd: Likewise.
1229 * configure.ac: Likewise.
1230 * cpu-ns32k.c: Likewise.
1231 * elf32-nds32.c: Likewise.
1232 * mach-o.c: Likewise.
1233 * netbsd-core.c: Likewise.
1234 * reloc.c: Likewise.
1235 * targets.c: Likewise.
1236 * coff-m88k.c: Delete.
1237 * cpu-m88k.c: Delete.
1238 * elf32-m88k.c: Delete.
1239 * hosts/m88kmach3.h: Delete.
1240 * m88kmach3.c: Delete.
1241 * m88kopenbsd.c: Delete.
1242 * Makefile.in: Regenerate.
1243 * bfd-in2.h: Regenerate.
1244 * configure: Regenerate.
1245 * po/SRC-POTFILES.in: Regenerate.
1247 2018-04-16 Alan Modra <amodra@gmail.com>
1249 * Makefile.am: Remove i370 support.
1250 * archures.c: Likewise.
1251 * config.bfd: Likewise.
1252 * configure.ac: Likewise.
1253 * targets.c: Likewise.
1254 * cpu-i370.c: Delete.
1255 * elf32-i370.c: Delete.
1256 * Makefile.in: Regenerate.
1257 * bfd-in2.h: Regenerate.
1258 * configure: Regenerate.
1259 * po/SRC-POTFILES.in: Regenerate.
1261 2018-04-16 Alan Modra <amodra@gmail.com>
1263 * Makefile.am: Remove h8500 support.
1264 * archures.c: Likewise.
1265 * coffcode.h: Likewise.
1266 * config.bfd: Likewise.
1267 * configure.ac: Likewise.
1268 * targets.c: Likewise.
1269 * coff-h8500.c: Delete.
1270 * cpu-h8500.c: Delete.
1271 * Makefile.in: Regenerate.
1272 * bfd-in2.h: Regenerate.
1273 * configure: Regenerate.
1274 * po/SRC-POTFILES.in: Regenerate.
1276 2018-04-16 Alan Modra <amodra@gmail.com>
1278 * Makefile.am: Remove h8300-coff support.
1279 * coffcode.h: Likewise.
1280 * config.bfd: Likewise.
1281 * configure.ac: Likewise.
1282 * reloc16.c: Likewise.
1283 * targets.c: Likewise.
1284 * coff-h8300.c: Delete.
1285 * Makefile.in: Regenerate.
1286 * configure: Regenerate.
1287 * po/SRC-POTFILES.in: Regenerate.
1289 2018-04-16 Alan Modra <amodra@gmail.com>
1291 * Makefile.am: Remove IEEE 695 support.
1292 * archures.c: Likewise.
1294 * config.bfd: Likewise.
1295 * configure.ac: Likewise.
1296 * doc/bfd.texinfo: Likewise.
1297 * doc/bfdint.texi: Likewise.
1298 * doc/bfdsumm.texi: Likewise.
1299 * section.c: Likewise.
1300 * targets.c: Likewise.
1302 * libieee.h: Delete.
1303 * Makefile.in: Regenerate.
1304 * bfd-in2.h: Regenerate.
1305 * configure: Regenerate.
1306 * po/SRC-POTFILES.in: Regenerate.
1308 2018-04-16 Alan Modra <amodra@gmail.com>
1310 * config.bfd: Remove tandem support.
1312 2018-04-16 Alan Modra <amodra@gmail.com>
1314 * Makefile.am: Remove newsos3 support.
1315 * aoutx.h: Likewise.
1316 * config.bfd: Likewise.
1317 * configure.ac: Likewise.
1318 * targets.c: Likewise.
1319 * newsos3.c: Delete.
1320 * Makefile.in: Regenerate.
1321 * configure: Regenerate.
1322 * po/SRC-POTFILES.in: Regenerate.
1324 2018-04-16 Alan Modra <amodra@gmail.com>
1326 * Makefile.am: Remove netware support.
1327 * bfd-in.h: Likewise.
1329 * config.bfd: Likewise.
1330 * configure.ac: Likewise.
1331 * doc/bfdint.texi: Likewise.
1332 * ecoff.c: Likewise.
1333 * targets.c: Likewise.
1335 * nlm-target.h: Delete.
1337 * nlm32-alpha.c: Delete.
1338 * nlm32-i386.c: Delete.
1339 * nlm32-ppc.c: Delete.
1340 * nlm32-sparc.c: Delete.
1343 * nlmcode.h: Delete.
1344 * nlmswap.h: Delete.
1345 * Makefile.in: Regenerate.
1346 * bfd-in2.h: Regenerate.
1347 * configure: Regenerate.
1348 * po/SRC-POTFILES.in: Regenerate.
1350 2018-04-16 Alan Modra <amodra@gmail.com>
1352 * archures.c: Remove tahoe support.
1353 * config.bfd: Likewise.
1354 * configure.ac: Likewise.
1355 * hosts/tahoe.h: Delete.
1356 * bfd-in2.h: Regenerate.
1357 * configure: Regenerate.
1359 2018-04-14 Alan Modra <amodra@gmail.com>
1361 * elf-bfd.h (struct elf_backend_data): Add relropagesize.
1362 * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and
1364 (elfNN_bed): Init relropagesize.
1365 * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to
1366 select relropagesize.
1367 * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1368 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1369 (ELF_MINPAGESIZE): Don't define.
1370 * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1371 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1372 * bfd-in2.h: Regenerate.
1374 2018-04-14 Alan Modra <amodra@gmail.com>
1376 * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend
1377 on __QNXTARGET__ define.
1379 2018-04-14 Alan Modra <amodra@gmail.com>
1381 * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
1384 2018-04-11 Alan Modra <amodra@gmail.com>
1386 * aout-adobe.c: Delete.
1388 * coff-i860.c: Delete.
1389 * coff-i960.c: Delete.
1390 * cpu-i860.c: Delete.
1391 * cpu-i960.c: Delete.
1392 * elf32-i860.c: Delete.
1393 * elf32-i960.c: Delete.
1394 * hosts/i860mach3.h: Delete.
1395 * Makefile.am: Remove i860, i960, bout, and adobe support.
1396 * archures.c: Remove i860 and i960 support.
1397 * coffcode.h: Likewise.
1398 * reloc.c: Likewise.
1399 * aoutx.h: Comment updates.
1400 * archive.c: Remove BOUT and i960 support.
1401 * bfd.c: Remove BOUT support.
1402 * coffswap.h: Remove i960 support.
1403 * config.bfd: Remove i860, i960 and adobe targets.
1404 * configure.ac: Remove adode, bout, i860, i960, icoff targets.
1405 * targets.c: Likewise.
1406 * ieee.c: Remove i960 support.
1407 * mach-o.c: Remove i860 support.
1408 * Makefile.in: Regenerate.
1409 * bfd-in2.h: Regenerate.
1410 * configure: Regenerate.
1411 * libbfd.h: Regenerate.
1412 * po/SRC-POTFILES.in: Regenerate.
1414 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1416 * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer
1417 in the BFD symbol referred by the relocation.
1418 (mips_elf64_write_rela): Likewise.
1420 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1422 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an
1423 error for out-of-range `r_sym' values.
1425 2018-04-09 Alan Modra <amodra@gmail.com>
1427 * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field.
1428 (struct ppc_link_hash_table): Add can_convert_all_inline_plt.
1429 (ppc64_elf_check_relocs): Set has_pltcall.
1430 (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries.
1431 (ppc64_elf_inline_plt): New function.
1432 (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals.
1433 * elf64-ppc.h (ppc64_elf_inline_plt): Declare.
1434 * elf32-ppc.c (has_pltcall): Define.
1435 (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt.
1436 (ppc_elf_check_relocs): Set has_pltcall.
1437 (ppc_elf_inline_plt): New function.
1438 (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries.
1439 (ppc_elf_size_dynamic_sections): Likewise.
1440 * elf32-ppc.h (ppc_elf_inline_plt): Declare.
1442 2018-04-09 Alan Modra <amodra@gmail.com>
1444 * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos.
1445 (is_plt_seq_reloc): New function.
1446 (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs.
1447 (ppc_elf_tls_optimize): Handle inline plt call sequence.
1448 (ppc_elf_relax_section): Handle PLTCALL reloc.
1449 (ppc_elf_relocate_section): Nop out inline plt call sequence when
1451 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and
1452 R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE.
1453 (has_tls_get_addr_call): Correct comment.
1454 (is_branch_reloc): Add PLTCALL.
1455 (is_plt_seq_reloc): New function.
1456 (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set
1457 has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt
1458 entry for R_PPC64_PLTCALL.
1459 (ppc64_elf_tls_optimize): Handle inline plt call sequence.
1460 (ppc_type_of_stub): Handle PLTCALL reloc.
1461 (toc_adjusting_stub_needed): Likewise.
1462 (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL
1463 reloc insn. Nop out inline plt call sequence when resolving
1464 locally. Handle __tls_get_addr inline plt call optimization.
1466 2018-04-09 Alan Modra <amodra@gmail.com>
1468 * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define.
1469 (struct ppc_stub_hash_entry): Add symtype field.
1471 (struct ppc_link_hash_table): Add pltlocal and relpltlocal.
1472 (create_linkage_sections): Create pltlocal and relpltlocal.
1473 (ppc64_elf_check_relocs): Allow PLT relocs on local symbols.
1475 (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1476 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1477 (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1478 Keep PLT entries for inline calls against locals.
1479 (ppc_build_one_stub): Use pltlocal as appropriate.
1480 (ppc_size_one_stub): Likewise.
1481 (ppc64_elf_size_stubs): Set symtype.
1482 (build_global_entry_stubs_and_plt): Init pltlocal and write
1483 relpltlocal for globals.
1484 (write_plt_relocs_for_local_syms): Likewise for local syms.
1485 (ppc64_elf_relocate_section): Support PLT for local syms.
1486 * elf32-ppc.c (PLT_KEEP): Define.
1487 (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal.
1488 (ppc_elf_create_glink): Create pltlocal and relpltlocal.
1489 (ppc_elf_check_relocs): Allow PLT relocs on local symbols.
1490 Set PLT_KEEP. Adjust update_local_sym_info call.
1491 (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1492 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1493 (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1494 (ppc_elf_relocate_section): Support PLT16 relocs for local syms.
1495 (write_global_sym_plt): Init pltlocal and write relpltlocal.
1496 (ppc_finish_symbols): Likewise for locals.
1498 2018-04-09 Alan Modra <amodra@gmail.com>
1500 * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs
1501 for local symbols to..
1502 (write_plt_relocs_for_local_syms): ..here. New function.
1503 (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for
1505 (build_global_entry_stubs_and_plt): ..here. Rename from
1506 build_global_entry_stubs.
1507 (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt.
1508 Call write_plt_relocs_for_local_syms.
1509 * elf32-ppc.c (get_sym_h): New function.
1510 (ppc_elf_relax_section): Use get_sym_h.
1511 (ppc_elf_relocate_section): Move output of PLT relocs and glink
1512 stubs for local symbols to..
1513 (ppc_finish_symbols): ..here. New function.
1514 (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for
1516 (write_global_sym_plt): ..here. New function.
1517 * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute.
1518 (ppc_finish_symbols): Declare.
1520 2018-04-09 Alan Modra <amodra@gmail.com>
1522 * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs.
1523 (ppc_elf_relocate_section): Likewise.
1524 * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS.
1525 (ppc64_elf_relocate_section): Likewise. Correct PLT16
1526 resolution to plt entry relative to toc pointer.
1528 2018-04-09 Alan Modra <amodra@gmail.com>
1530 * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1531 TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout
1532 file when other TLS flags are tested in a mask.
1533 (TLS_MARK, NON_GOT): Define.
1534 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1535 (update_local_sym_info): Don't create got entry when NON_GOT.
1536 (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1538 (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK.
1539 (ppc64_elf_relocate_section): Likewise.
1540 (ppc64_elf_tls_optimize): Don't attempt to optimize indirect
1541 __tls_get_addr calls lacking a marker reloc.
1542 * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1543 TLS_TPRELGD): Renumber. Update comment.
1544 (TLS_MARK, NON_GOT): Define.
1545 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1546 (update_local_sym_info): Don't create got entry when NON_GOT.
1547 (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1549 (ppc_elf_tls_optimize): Don't attempt to optimize indirect
1550 __tls_get_addr calls lacking a marker reloc.
1552 2018-04-06 H.J. Lu <hongjiu.lu@intel.com>
1554 * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out
1555 R_X86_64_converted_reloc_bit.
1557 2018-04-05 H.J. Lu <hongjiu.lu@intel.com>
1560 * configure: Regenerated.
1562 2018-04-05 Alan Modra <amodra@gmail.com>
1564 * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
1565 (elf_hppa_info_to_howto_rel): Likewise.
1567 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1569 * elf-hppa.h (elf_hppa_info_to_howto): Also return
1570 unsuccessfully for unimplemented relocations.
1571 (elf_hppa_info_to_howto_rel): Likewise.
1573 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1575 * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the
1576 `bfd_error_bad_value' error and call `_bfd_error_handler' on a
1577 howto lookup failure.
1578 (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call
1580 (elf32_i860_info_to_howto_rela): Likewise.
1581 (elf32_i860_relocate_splitn): Likewise.
1582 (elf32_i860_relocate_pc16): Likewise.
1583 (elf32_i860_relocate_pc26): Likewise.
1584 (elf32_i860_relocate_section): Likewise.
1586 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1588 * elf32-visium.c (visium_info_to_howto_rela): Correct the range
1589 check for `visium_elf_howto_table' table access.
1591 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1593 * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range
1594 check for `iq2000_elf_howto_table' table access.
1596 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1598 * elf32-frv.c (frv_info_to_howto_rela): Correct the range check
1599 for `elf32_frv_howto_table' table access.
1601 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1603 * elf32-mips.c (mips_elf32_rtype_to_howto): Also return
1604 unsuccessfully for placeholder howtos.
1605 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
1606 * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise.
1608 2018-03-29 Maciej W. Rozycki <macro@mips.com>
1610 * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to
1611 `_bfd_error_handler' and to set the `bfd_error_bad_value' error.
1613 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1615 * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
1616 ATTRIBUTE_UNUSED from `abfd'.
1618 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1620 * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct
1621 `_bfd_error_handler' call formatting.
1623 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1625 * elf32-mips.c (mips_info_to_howto_rel): Call
1626 `mips_elf32_rtype_to_howto' directly rather than via
1627 `->elf_backend_mips_rtype_to_howto'.
1629 2018-03-28 Renlin Li <renlin.li@arm.com>
1632 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for
1633 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1634 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1635 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1636 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1637 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1638 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1639 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1640 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1641 (elfNN_aarch64_final_link_relocate): Support new relocations.
1642 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new
1644 (_bfd_aarch64_elf_resolve_relocation): Support new relocations.
1646 2018-03-28 Renlin Li <renlin.li@arm.com>
1649 * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12
1650 BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC,
1651 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1652 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1653 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1654 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1655 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1656 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1657 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1658 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1659 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for
1660 TLSLE_LDST16_TPREL_LO12,
1661 TLSLE_LDST16_TPREL_LO12_NC,
1662 TLSLE_LDST32_TPREL_LO12,
1663 TLSLE_LDST32_TPREL_LO12_NC,
1664 TLSLE_LDST64_TPREL_LO12,
1665 TLSLE_LDST64_TPREL_LO12_NC,
1666 TLSLE_LDST8_TPREL_LO12,
1667 TLSLE_LDST8_TPREL_LO12_NC.
1668 * bfd-in2.h: Regenerated.
1669 * libbfd.h: Regenerated.
1671 2018-03-28 Eric Botcazou <ebotcazou@adacore.com>
1674 * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
1675 has_old_style_got_reloc.
1676 (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
1677 relocations. Fix a couple of long lines.
1678 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
1679 a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style
1682 2018-03-25 H.J. Lu <hongjiu.lu@intel.com>
1685 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
1686 ENDBR64 to the TLSDESC PLT entry.
1688 2018-03-21 Alan Modra <amodra@gmail.com>
1690 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting
1691 symbols. Use size_t counts. Delete redundant opd test.
1693 2018-03-21 Alan Modra <amodra@gmail.com>
1695 * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms.
1697 2018-03-21 Alan Modra <amodra@gmail.com>
1699 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask
1701 (update_local_sym_info): Likewise for local_got_tls_masks.
1702 (ppc_elf_tls_optimize): Likewise for lgot_masks.
1704 2018-03-21 Alan Modra <amodra@gmail.com>
1706 * elf64-ppc.c (ppc_size_one_stub): Fix comment typo.
1707 (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we
1708 do in size_dynamic_sections.
1710 2018-03-21 Alan Modra <amodra@gmail.com>
1712 * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1]
1713 without first checking array bounds.
1714 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1716 2018-03-20 H.J. Lu <hongjiu.lu@intel.com>
1719 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
1720 non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.
1722 2018-03-19 Nick Clifton <nickc@redhat.com>
1724 * po/es.po: Updated Spanish translation.
1726 2018-03-15 Max Filippov <jcmvbkbc@gmail.com>
1728 * elf32-xtensa.c (xlate_map_entry): Change types of address
1729 fields from 'unsigned' to 'bfd_vma'.
1730 (xlate_offset_with_removed_text): Use struct xlate_map_entry as
1731 the key argument to bsearch. Allow offsets past the end of a
1732 section, use the last map entry for translation of such offsets.
1734 2018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1736 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed.
1737 Not support the target feature.
1738 (nds32_elf_ex9_itb_base): Likewise.
1739 (nds32_elf_ex9_import_table): Likewise.
1740 (nds32_elf_ex9_finish): Likewise.
1741 (nds32_elf_ex9_reloc_jmp): Likewise.
1742 (nds32_elf_get_insn_with_reg): Likewise.
1743 (nds32_get_local_syms): Likewise.
1744 (nds32_elf_ex9_replace_instruction): Likewise.
1745 (nds32_elf_ifc_calc): Likewise.
1746 (nds32_elf_ifc_finish): Likewise.
1747 (nds32_elf_ifc_replace): Likewise.
1748 (nds32_elf_ifc_reloc): Likewise.
1750 2018-03-14 Alan Modra <amodra@gmail.com>
1752 * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
1753 sfpr size added before defining alias symbols.
1754 (ppc64_elf_build_stubs): Add stub section padding before
1755 copying sfpr contents and defining save/restore alias symbols.
1757 2018-03-14 H.J. Lu <hongjiu.lu@intel.com>
1760 * elflink.c (elf_gc_mark_debug_section): Also check the local
1761 debug definition section.
1763 2018-03-13 Nick Clifton <nickc@redhat.com>
1766 * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean
1767 function. Add an end address parameter. Check access of the data
1768 pointer to make sure that they do not extend beyond the end
1769 address. Return FALSE if any check fails. Add the end address
1770 pointer to the ui structure.
1771 (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind
1772 codes to make sure that they do not extend beyond the end address
1773 pointer. Print an error message and return immediately if any
1776 2018-03-09 Nick Clifton <nickc@redhat.com>
1778 * elf64-s390.c (elf_s390_relocate_section): Move check for
1779 relocations against non-allocated sections to before the code that
1780 handles ifunc relocations.
1781 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1782 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat
1783 relocs against IFUNC symbols in non-allocated sections as relocs
1784 against FUNC symbols.
1785 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1787 2018-03-08 H.J. Lu <hongjiu.lu@intel.com>
1790 * elf32-i386.c (elf_i386_relocate_section): Treat relocation
1791 against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as
1792 relocation against FUNC symbol.
1793 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1795 2018-03-07 Renlin Li <renlin.li@arm.com>
1798 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute
1799 symbol, and don't emit relocation in specific case.
1801 2018-03-07 Alan Modra <amodra@gmail.com>
1803 * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error.
1804 (mips_elf64_slurp_one_reloc_table): Pass on error.
1806 2018-03-03 James Cowgill <james.cowgill@mips.com>
1807 Maciej W. Rozycki <macro@mips.com>
1810 * elfxx-mips.c (mips_elf_calculate_relocation): Only return
1811 after calling `undefined_symbol' hook if this is an error
1812 condition. Assume the value of 0 for the symbol requested
1815 2018-03-02 Jim Wilson <jimw@sifive.com>
1818 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch
1819 and nop instead of 4.
1820 (elfNN_arch64_build_stubs): Add nop after branch. Increase size by
1823 2018-03-01 Jim Wilson <jimw@sifive.com>
1826 * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use
1827 else if instead of if.
1829 2018-03-01 Alan Modra <amodra@gmail.com>
1831 * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
1833 2018-02-28 Alan Modra <amodra@gmail.com>
1836 * aoutx.h (swap_std_reloc_in): Correct r_index bound check.
1838 2018-02-28 Nick Clifton <nickc@redhat.com>
1842 * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block
1843 pointer. Drop unused abfd parameter. Check the size of the block
1844 before initialising the data field. Return the end pointer if the
1846 (read_attribute_value): Adjust invocations of read_n_bytes.
1849 * dwarf1.c (parse_die): Check the length of form blocks before
1850 advancing the data pointer.
1852 2018-02-28 Alan Modra <amodra@gmail.com>
1855 * aoutx.h (translate_symbol_table): Print an error message and set
1856 bfd_error on finding an invalid name string offset.
1858 2018-02-27 H.J. Lu <hongjiu.lu@intel.com>
1860 * config.in: Regenerated.
1861 * configure: Likewise.
1862 * configure.ac: Add --enable-separate-code.
1863 (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default
1864 to 1 for Linux/x86 targets,
1865 * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if
1866 DEFAULT_LD_Z_SEPARATE_CODE is 1.
1868 2018-02-27 Nick Clifton <nickc@redhat.com>
1870 * aout-cris.c (swap_ext_reloc_out): Standadize error/warning
1872 * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise.
1873 * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise.
1874 * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise.
1875 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise.
1876 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1877 * elf64-sh64.c (sh_elf64_info_to_howto): Likewise.
1878 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1879 * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise.
1880 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
1883 * elf-bfd.h (struct elf_backend_data): Change the return type of
1884 the elf_info_to_howto and elf_info_to_howto_rel function pointers
1886 * elfcode.h (elf_slurp_reloc_table_from_section): Check the return
1887 value from the info_to_howto function and fail if that function
1889 * elf32-h8300.c (elf32_h8_relocate_section): Check return value
1890 from the info_to_howto function.
1891 (elf32_h8_relax_section): Likewise.
1892 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1893 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1894 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1895 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1896 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1897 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
1898 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise.
1899 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
1900 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1901 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
1902 (riscv_elf_relocate_section): Likewise.
1903 * elf-hppa.h (elf_hppa_info_to_howto): Change return type to
1904 bfd_boolean. Issue an error message, set an error value and
1905 return FALSE if the reloc is not recognized.
1906 (elf_hppa_info_to_howto_rel): Likewise.
1907 * elf-m10200.c (mn10200_info_to_howto): Likewise.
1908 * elf-m10300.c (mn10300_info_to_howto): Likewise.
1909 * elf.c (_bfd_elf_no_info_to_howto): Likewise.
1910 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
1911 * elf32-arm.c (elf32_arm_info_to_howto): Likewise.
1912 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
1913 * elf32-bfin.c (bfin_info_to_howto): Likewise.
1914 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
1915 * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise.
1916 * elf32-cris.c (elf_cr16c_info_to_howto_rel)
1917 (cris_info_to_howto_rela): Likewise.
1918 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
1919 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
1920 * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela):
1922 * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto)
1923 (elf32_dlx_info_to_howto_rel): Likewise.
1924 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
1925 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
1926 * elf32-frv.c (frv_info_to_howto_rela)
1927 (frvfdpic_info_to_howto_rel): Likewise.
1928 * elf32-ft32.c (ft32_info_to_howto_rela): Likewise.
1929 * elf32-gen.c (elf_generic_info_to_howto)
1930 (elf_generic_info_to_howto_rel): Likewise.
1931 * elf32-h8300.c (elf32_h8_info_to_howto)
1932 (elf32_h8_info_to_howto_rel): Likewise.
1933 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
1934 * elf32-i386.c (elf_i386_reloc_type_lookup)
1935 (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise.
1936 * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela):
1938 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
1939 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
1940 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
1941 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
1942 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
1943 * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto):
1945 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
1946 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
1947 * elf32-m68k.c (rtype_to_howto): Likewise.
1948 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
1949 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
1950 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
1951 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
1952 * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1954 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
1955 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
1956 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
1957 * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto):
1959 * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise.
1960 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
1961 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
1962 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
1963 * elf32-pru.c (pru_elf32_info_to_howto): Likewise.
1964 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
1965 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
1966 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
1967 * elf32-score.c (s3_bfd_score_info_to_howto)
1968 (_bfd_score_info_to_howto): Likewise.
1969 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
1970 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
1971 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
1972 * elf32-tic6x.c (elf32_tic6x_info_to_howto)
1973 (elf32_tic6x_info_to_howto_rel): Likewise.
1974 * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise.
1975 * elf32-v850.c (v850_elf_info_to_howto_rel)
1976 (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise.
1977 * elf32-vax.c (rtype_to_howto): Likewise.
1978 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
1979 * elf32-wasm32.c (elf32_wasm32_rtype_to_howto)
1980 (elf32_wasm32_info_to_howto_rela): Likewise.
1981 * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise.
1982 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
1983 * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise.
1984 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
1985 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
1986 * elf64-gen.c (elf_generic_info_to_howto)
1987 (elf_generic_info_to_howto_rel): Likewise.
1988 * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise.
1989 * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise.
1990 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
1991 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
1992 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1993 * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto):
1995 * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise.
1996 * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1998 * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise.
1999 * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise.
2000 * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise.
2001 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
2002 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise.
2003 * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise.
2004 * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype.
2005 * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype.
2006 * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype.
2007 * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel):
2010 2018-02-26 Jim Wilson <jimw@sifive.com>
2011 Stephan Schreiber <info@fs-driver.org>
2014 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
2015 call, set changed_contents and changed_relocs. Likewise after
2016 successful ia64_elf_relax_br call.
2018 2018-02-26 Alan Modra <amodra@gmail.com>
2020 * elf.c (assign_file_positions_except_relocs): Don't segfault
2021 when actual number of phdrs is less than allocated. Delete
2022 outdated comment. Formatting.
2024 2018-02-26 Alan Modra <amodra@gmail.com>
2026 * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
2027 * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
2028 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
2029 * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
2030 * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
2031 * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
2032 * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
2033 * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
2034 * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
2035 * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
2036 error/warning messages.
2038 2018-02-26 Alan Modra <amodra@gmail.com>
2040 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
2041 * syms.c: Standardize error/warning messages.
2043 2018-02-26 Alan Modra <amodra@gmail.com>
2045 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c,
2046 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c,
2047 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c,
2048 * peXXigen.c, * peicode.h: Standardize error/warning messages.
2050 2018-02-26 Alan Modra <amodra@gmail.com>
2052 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
2054 2018-02-26 Alan Modra <amodra@gmail.com>
2056 * elfxx-mips.c: Standardize error/warning messages.
2058 2018-02-26 Alan Modra <amodra@gmail.com>
2060 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c,
2061 * elflink.c: Standardize error/warning messages. Replace use of
2062 linker callback einfo with _bfd_error_handler when possible.
2064 2018-02-26 Alan Modra <amodra@gmail.com>
2066 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c,
2067 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
2068 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c,
2069 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c,
2070 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
2071 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
2072 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c,
2073 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
2074 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
2075 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
2076 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
2077 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c,
2078 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c,
2079 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
2080 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
2081 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c,
2082 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
2083 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
2084 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
2085 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h,
2086 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize
2087 unrecognized/unsupported reloc message.
2089 2018-02-26 Alan Modra <amodra@gmail.com>
2091 * elf32-ppc.c: Standardize error/warning messages. Use
2092 _bfd_error_handler rather than einfo when einfo features not used.
2093 * elf64-ppc.c: Likewise.
2095 2018-02-23 Alan Modra <amodra@gmail.com>
2098 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO
2099 segment if no matching LOAD segment.
2101 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
2103 * elf32-nds32.h: Define mask for ict_model.
2105 2018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
2107 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
2109 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2112 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
2114 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
2115 .reginfo section has wrong size.
2117 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2119 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
2120 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and
2121 `.MIPS.abiflags' sections.
2122 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo'
2125 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2127 * section.c (SEC_FIXED_SIZE): New macro.
2128 * bfd-in2.h: Regenerate.
2130 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2132 * section.c (SEC_HAS_GOT_REF): Remove macro.
2133 * bfd-in2.h: Regenerate.
2135 2018-02-19 Alan Modra <amodra@gmail.com>
2137 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
2139 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
2140 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
2141 (_bfd_riscv_relax_pc): Likewise and fix typos.
2142 * libbfd-in.h (_bfd_error_handler): Add attribute printf.
2143 * libbfd.h: Regenerate.
2145 2018-02-19 Alan Modra <amodra@gmail.com>
2147 * dwarf2.c (read_section): Don't use 'll' format modifier.
2148 (find_abstract_instance): Likewise.
2149 * elfcore.h (elf_core_file_p): Likewise.
2151 2018-02-19 Alan Modra <amodra@gmail.com>
2153 * bfd-in.h: Include inttypes.h or if not available define
2154 PRId64, PRIu64 and PRIx64.
2155 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
2156 modifier to print bfd_vma.
2157 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
2158 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
2159 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
2160 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
2161 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
2162 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
2163 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
2164 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
2165 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
2166 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
2167 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
2168 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
2169 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
2170 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
2171 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
2172 and cast input to uint64_t, and similarly for Ld and Lu.
2173 * bfd-in2.h: Regenerate.
2175 2018-02-19 Alan Modra <amodra@gmail.com>
2177 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c,
2178 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c,
2179 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c,
2180 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c,
2181 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c,
2182 * reloc.c: Replace use of %R and %T in format strings passed to
2183 einfo and friends by %pR and %pT.
2185 2018-02-19 Alan Modra <amodra@gmail.com>
2187 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place
2189 * aout-adobe.c: Update all messages using %A and %B.
2190 * aout-cris.c: Likewise.
2191 * aoutx.h: Likewise.
2192 * archive.c: Likewise.
2193 * binary.c: Likewise.
2194 * cache.c: Likewise.
2195 * coff-alpha.c: Likewise.
2196 * coff-arm.c: Likewise.
2197 * coff-i860.c: Likewise.
2198 * coff-mcore.c: Likewise.
2199 * coff-ppc.c: Likewise.
2200 * coff-rs6000.c: Likewise.
2201 * coff-sh.c: Likewise.
2202 * coff-tic4x.c: Likewise.
2203 * coff-tic54x.c: Likewise.
2204 * coff-tic80.c: Likewise.
2205 * coff64-rs6000.c: Likewise.
2206 * coffcode.h: Likewise.
2207 * coffgen.c: Likewise.
2208 * cofflink.c: Likewise.
2209 * coffswap.h: Likewise.
2210 * compress.c: Likewise.
2211 * cpu-arm.c: Likewise.
2212 * ecoff.c: Likewise.
2213 * elf-attrs.c: Likewise.
2214 * elf-eh-frame.c: Likewise.
2215 * elf-ifunc.c: Likewise.
2216 * elf-m10300.c: Likewise.
2217 * elf-properties.c: Likewise.
2218 * elf-s390-common.c: Likewise.
2220 * elf32-arc.c: Likewise.
2221 * elf32-arm.c: Likewise.
2222 * elf32-avr.c: Likewise.
2223 * elf32-bfin.c: Likewise.
2224 * elf32-cr16.c: Likewise.
2225 * elf32-cr16c.c: Likewise.
2226 * elf32-cris.c: Likewise.
2227 * elf32-crx.c: Likewise.
2228 * elf32-d10v.c: Likewise.
2229 * elf32-d30v.c: Likewise.
2230 * elf32-epiphany.c: Likewise.
2231 * elf32-fr30.c: Likewise.
2232 * elf32-frv.c: Likewise.
2233 * elf32-gen.c: Likewise.
2234 * elf32-hppa.c: Likewise.
2235 * elf32-i370.c: Likewise.
2236 * elf32-i386.c: Likewise.
2237 * elf32-i960.c: Likewise.
2238 * elf32-ip2k.c: Likewise.
2239 * elf32-iq2000.c: Likewise.
2240 * elf32-lm32.c: Likewise.
2241 * elf32-m32c.c: Likewise.
2242 * elf32-m32r.c: Likewise.
2243 * elf32-m68hc11.c: Likewise.
2244 * elf32-m68hc12.c: Likewise.
2245 * elf32-m68hc1x.c: Likewise.
2246 * elf32-m68k.c: Likewise.
2247 * elf32-mcore.c: Likewise.
2248 * elf32-mep.c: Likewise.
2249 * elf32-metag.c: Likewise.
2250 * elf32-microblaze.c: Likewise.
2251 * elf32-moxie.c: Likewise.
2252 * elf32-msp430.c: Likewise.
2253 * elf32-mt.c: Likewise.
2254 * elf32-nds32.c: Likewise.
2255 * elf32-nios2.c: Likewise.
2256 * elf32-or1k.c: Likewise.
2257 * elf32-pj.c: Likewise.
2258 * elf32-ppc.c: Likewise.
2259 * elf32-rl78.c: Likewise.
2260 * elf32-rx.c: Likewise.
2261 * elf32-s390.c: Likewise.
2262 * elf32-score.c: Likewise.
2263 * elf32-score7.c: Likewise.
2264 * elf32-sh-symbian.c: Likewise.
2265 * elf32-sh.c: Likewise.
2266 * elf32-sh64.c: Likewise.
2267 * elf32-sparc.c: Likewise.
2268 * elf32-spu.c: Likewise.
2269 * elf32-tic6x.c: Likewise.
2270 * elf32-tilepro.c: Likewise.
2271 * elf32-v850.c: Likewise.
2272 * elf32-vax.c: Likewise.
2273 * elf32-visium.c: Likewise.
2274 * elf32-wasm32.c: Likewise.
2275 * elf32-xgate.c: Likewise.
2276 * elf32-xtensa.c: Likewise.
2277 * elf64-alpha.c: Likewise.
2278 * elf64-gen.c: Likewise.
2279 * elf64-hppa.c: Likewise.
2280 * elf64-ia64-vms.c: Likewise.
2281 * elf64-mmix.c: Likewise.
2282 * elf64-ppc.c: Likewise.
2283 * elf64-s390.c: Likewise.
2284 * elf64-sh64.c: Likewise.
2285 * elf64-sparc.c: Likewise.
2286 * elf64-x86-64.c: Likewise.
2287 * elfcode.h: Likewise.
2288 * elfcore.h: Likewise.
2289 * elflink.c: Likewise.
2290 * elfnn-aarch64.c: Likewise.
2291 * elfnn-ia64.c: Likewise.
2292 * elfnn-riscv.c: Likewise.
2293 * elfxx-mips.c: Likewise.
2294 * elfxx-sparc.c: Likewise.
2295 * elfxx-tilegx.c: Likewise.
2296 * elfxx-x86.c: Likewise.
2297 * hpux-core.c: Likewise.
2300 * libbfd.c: Likewise.
2301 * linker.c: Likewise.
2302 * mach-o.c: Likewise.
2303 * merge.c: Likewise.
2305 * oasys.c: Likewise.
2306 * pdp11.c: Likewise.
2307 * pe-mips.c: Likewise.
2308 * peXXigen.c: Likewise.
2309 * peicode.h: Likewise.
2310 * reloc.c: Likewise.
2311 * rs6000-core.c: Likewise.
2313 * stabs.c: Likewise.
2314 * vms-alpha.c: Likewise.
2315 * xcofflink.c: Likewise.
2317 2018-02-19 Alan Modra <amodra@gmail.com>
2320 * elf.c (IS_TBSS): Define.
2321 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
2322 (assign_file_positions_for_non_load_sections): Revert last change.
2323 Properly calculate load segment limits to compare against relro limits.
2325 2018-02-17 Alan Modra <amodra@gmail.com>
2328 * elf.c (assign_file_positions_for_non_load_sections): Ignore
2329 degenerate zero size PT_LOAD segments when finding one overlapping
2330 the PT_GNU_RELRO segment.
2332 2018-02-16 Alan Modra <amodra@gmail.com>
2334 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
2335 (_bfd_bool_bfd_true): Rename from bfd_true.
2336 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
2337 (_bfd_int_bfd_0): Rename from bfd_0.
2338 (_bfd_uint_bfd_0): Rename from bfd_0u.
2339 (_bfd_long_bfd_0): Rename from bfd_0l.
2340 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
2341 (_bfd_void_bfd): Rename from bfd_void.
2342 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
2343 (_bfd_bool_bfd_link_false_error),
2344 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
2345 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
2346 (_bfd_bool_bfd_asection_bfd_asection_true),
2347 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
2348 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
2349 * archive.c (_bfd_noarchive_get_elt_at_index),
2350 (_bfd_noarchive_openr_next_archived_file),
2351 (_bfd_noarchive_construct_extended_name_table),
2352 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
2353 (_bfd_noarchive_write_armap): New functions.
2354 * archures.c (_bfd_nowrite_set_arch_mach): New function.
2355 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
2356 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
2357 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
2358 (alpha_ecoff_swap_coff_lineno_out),
2359 (alpha_ecoff_swap_coff_reloc_out): New functions.
2360 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
2361 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
2362 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
2363 (mips_ecoff_swap_coff_lineno_out),
2364 (mips_ecoff_swap_coff_reloc_out): New functions.
2365 * coffcode.h (coff_set_alignment_hook): Replace define with
2367 (symname_in_debug_hook): Likewise.
2368 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
2369 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
2370 * elf.c (assign_file_positions_except_relocs): Test
2371 elf_backend_allow_non_load_phdr for NULL.
2372 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
2373 _bfd_elf_link_omit_section_dynsym. Update uses.
2374 (_bfd_elf_omit_section_dynsym_all): New function.
2375 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
2376 (_bfd_elf_omit_section_dynsym_default): Declare.
2377 (_bfd_elf_omit_section_dynsym_all): Declare.
2378 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
2379 (_bfd_nolink_bfd_get_relocated_section_contents),
2380 (_bfd_nolink_bfd_lookup_section_flags),
2381 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
2382 (_bfd_nolink_bfd_link_hash_table_create),
2383 (_bfd_nolink_bfd_link_just_syms),
2384 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
2385 (_bfd_nolink_bfd_link_split_section),
2386 (_bfd_nolink_section_already_linked),
2387 (_bfd_nolink_bfd_define_common_symbol),
2388 (_bfd_nolink_bfd_define_start_stop): New functions.
2389 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
2390 (_bfd_norelocs_bfd_reloc_name_lookup),
2391 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
2392 * section.c (_bfd_nowrite_set_section_contents): New function.
2393 * syms.c (_bfd_nosymbols_canonicalize_symtab),
2394 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
2395 (_bfd_nosymbols_get_symbol_version_string),
2396 (_bfd_nosymbols_bfd_is_local_label_name),
2397 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
2398 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
2399 (_bfd_nosymbols_bfd_make_debug_symbol),
2400 ( _bfd_nosymbols_read_minisymbols),
2401 ( _bfd_nosymbols_minisymbol_to_symbol),
2402 (_bfd_nodynamic_get_synthetic_symtab): New functions.
2403 * libbfd-in.h: Declare new functions. Update existing defines,
2405 * aix386-core.c: Update to use new hooks. Formatting.
2406 * aout-adobe.c: Likewise.
2407 * aout-arm.c: Likewise.
2408 * aout-target.h: Likewise.
2409 * aout-tic30.c: Likewise.
2410 * aoutf1.h: Likewise.
2411 * binary.c: Likewise.
2413 * cisco-core.c: Likewise.
2414 * coff-alpha.c: Likewise.
2415 * coff-i386.c: Likewise.
2416 * coff-i860.c: Likewise.
2417 * coff-i960.c: Likewise.
2418 * coff-ia64.c: Likewise.
2419 * coff-mips.c: Likewise.
2420 * coff-ppc.c: Likewise.
2421 * coff-rs6000.c: Likewise.
2422 * coff-sh.c: Likewise.
2423 * coff-tic30.c: Likewise.
2424 * coff-tic54x.c: Likewise.
2425 * coff-x86_64.c: Likewise.
2426 * coff64-rs6000.c: Likewise.
2427 * coffcode.h: Likewise.
2428 * elf-m10300.c: Likewise.
2429 * elf32-cr16.c: Likewise.
2430 * elf32-lm32.c: Likewise.
2431 * elf32-m32r.c: Likewise.
2432 * elf32-metag.c: Likewise.
2433 * elf32-score.c: Likewise.
2434 * elf32-score7.c: Likewise.
2435 * elf32-tilepro.c: Likewise.
2436 * elf32-xstormy16.c: Likewise.
2437 * elf32-xtensa.c: Likewise.
2438 * elf64-alpha.c: Likewise.
2439 * elf64-hppa.c: Likewise.
2440 * elf64-ia64-vms.c: Likewise.
2441 * elf64-mmix.c: Likewise.
2442 * elf64-sh64.c: Likewise.
2443 * elfnn-ia64.c: Likewise.
2444 * elfxx-sparc.c: Likewise.
2445 * elfxx-target.h: Likewise.
2446 * elfxx-tilegx.c: Likewise.
2447 * elfxx-x86.h: Likewise.
2448 * hp300hpux.c: Likewise.
2449 * hppabsd-core.c: Likewise.
2450 * hpux-core.c: Likewise.
2451 * i386msdos.c: Likewise.
2452 * i386os9k.c: Likewise.
2455 * irix-core.c: Likewise.
2456 * libaout.h: Likewise.
2457 * libecoff.h: Likewise.
2458 * mach-o-target.c: Likewise.
2459 * mach-o.c: Likewise.
2460 * mipsbsd.c: Likewise.
2462 * netbsd-core.c: Likewise.
2463 * nlm-target.h: Likewise.
2464 * oasys.c: Likewise.
2465 * osf-core.c: Likewise.
2466 * pdp11.c: Likewise.
2467 * pe-mips.c: Likewise.
2468 * pe-x86_64.c: Likewise.
2470 * plugin.c: Likewise.
2471 * ppcboot.c: Likewise.
2472 * ptrace-core.c: Likewise.
2473 * sco5-core.c: Likewise.
2475 * sparclynx.c: Likewise.
2477 * tekhex.c: Likewise.
2478 * trad-core.c: Likewise.
2479 * verilog.c: Likewise.
2480 * versados.c: Likewise.
2481 * vms-alpha.c: Likewise.
2482 * vms-lib.c: Likewise.
2483 * wasm-module.c: Likewise.
2485 * libbfd.h: Regenerate.
2487 2018-02-15 Jim Wilson <jimw@sifive.com>
2489 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
2490 symbols whose section address is zero.
2492 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
2493 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
2494 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
2495 Add %X%P to error messages.
2497 2018-02-15 Eric Botcazou <ebotcazou@adacore.com>
2500 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2501 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
2502 and assert that the result of the call is not NULL.
2504 2018-02-14 Nick Clifton <nickc@redhat.com>
2507 Revert previous delta. Add extra casts to avoid compile time
2509 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
2510 cast to avoid warning from gcc v8 compiler.
2511 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2512 (_bfd_generic_bfd_set_private_flags): Likewise.
2513 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2514 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2515 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2516 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2517 (_bfd_noarchive_construct_extended_name_table): Likewise.
2518 (_bfd_noarchive_truncate_arname): Likewise.
2519 (_bfd_noarchive_write_ar_hdr): Likewise.
2520 (_bfd_noarchive_get_elt_at_index): Likewise.
2521 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2522 (_bfd_nosymbols_print_symbol): Likewise.
2523 (_bfd_nosymbols_get_symbol_info): Likewise.
2524 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2525 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2526 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2527 (_bfd_nosymbols_get_lineno): Likewise.
2528 (_bfd_nosymbols_find_nearest_line): Likewise.
2529 (_bfd_nosymbols_find_line): Likewise.
2530 (_bfd_nosymbols_find_inliner_info): Likewise.
2531 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2532 (_bfd_nosymbols_read_minisymbols): Likewise.
2533 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2534 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2535 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2536 (_bfd_nowrite_set_arch_mach): Likewise.
2537 (_bfd_nowrite_set_section_contents): Likewise.
2538 (_bfd_nolink_sizeof_headers): Likewise.
2539 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2540 (_bfd_nolink_bfd_relax_section): Likewise.
2541 (_bfd_nolink_bfd_gc_sections): Likewise.
2542 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2543 (_bfd_nolink_bfd_merge_sections): Likewise.
2544 (_bfd_nolink_bfd_is_group_section): Likewise.
2545 (_bfd_nolink_bfd_discard_group): Likewise.
2546 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2547 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2548 (_bfd_nolink_bfd_link_just_syms): Likewise.
2549 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2550 (_bfd_nolink_bfd_final_link): Likewise.
2551 (_bfd_nolink_bfd_link_split_section): Likewise.
2552 (_bfd_nolink_section_already_linked): Likewise.
2553 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2554 (_bfd_nolink_bfd_define_start_stop): Likewise.
2555 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2556 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2557 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2558 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2559 * libbfd.c (bfd_false_any): Delete.
2560 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
2561 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
2562 * libbfd.h (extern): Regenerate
2563 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
2564 cast to avoid warning from gcc v8 compiler.
2565 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2566 * binary.c (binary_get_symbol_info): Likewise.
2567 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2568 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2569 * coffcode.h (coff_set_alignment_hook): Likewise.
2570 (symname_in_debug_hook): Likewise.
2571 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2572 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2573 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2574 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2575 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2576 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2577 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2578 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2579 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2580 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2581 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2582 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2583 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2584 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2585 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2586 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2587 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2588 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2589 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2590 (bfd_elfNN_bfd_set_private_flags): Likewise.
2591 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2592 (elf_backend_init_index_section): Likewise.
2593 (elf_backend_allow_non_load_phdr): Likewise.
2594 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2595 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2596 * ieee.c (ieee_construct_extended_name_table): Likewise.
2597 (ieee_write_armap): Likewise.
2598 (ieee_write_ar_hdr): Likewise.
2599 (ieee_bfd_is_target_special_symbol): Likewise.
2600 * ihex.c (ihex_canonicalize_symtab): Likewise.
2601 (ihex_bfd_is_target_special_symbol): Likewise.
2602 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2603 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2604 (_bfd_ecoff_set_alignment_hook): Likewise.
2605 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2606 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2607 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2608 * oasys.c (oasys_construct_extended_name_table): Likewise.
2609 (oasys_write_armap): Likewise.
2610 (oasys_write_ar_hdr): Likewise.
2611 (oasys_bfd_is_target_special_symbol): Likewise.
2612 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2613 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2614 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2615 * som.c (som_bfd_is_target_special_symbol): Likewise.
2616 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2617 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2618 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2619 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2620 (versados_bfd_reloc_name_lookup): Likewise.
2621 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2622 (vms_bfd_define_start_stop): Likewise.
2623 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2624 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2625 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2627 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
2630 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
2631 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2632 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
2633 R_X86_64_PC32 reloc against dynamic function in data section.
2634 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2635 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
2636 against dynamic function in data section.
2637 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
2638 function address only if pcrel_plt is true.
2639 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
2640 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
2641 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
2642 PC-relative relocation against a function definition in data
2643 secton in PIE. Remove the obsolete comments.
2644 (elf_x86_link_hash_table): Add pcrel_plt.
2646 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2648 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
2649 instead of bfd_link_pic, for building shared library.
2651 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2654 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
2655 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
2656 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
2657 against protected function in shared object.
2659 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
2662 * po/ru.po: Fix typo in Russian translation.
2664 2018-02-13 Maciej W. Rozycki <macro@mips.com>
2666 * wasm-module.c (wasm_scan_name_function_section): Rename
2667 `index' local variable to `idx'.
2669 2018-02-13 Nick Clifton <nickc@redhat.com>
2672 Fix compile time warnings generated by gcc version 8.
2673 * libbfd-in.h: Remove extraneous text from prototypes.
2674 Add prototypes for bfd_false_any, bfd_true_any,
2675 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
2676 bfd_n1_any, bfd_void_any.
2677 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
2679 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2680 (_bfd_generic_bfd_set_private_flags): Likewise.
2681 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2682 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2683 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2684 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2685 (_bfd_noarchive_construct_extended_name_table): Likewise.
2686 (_bfd_noarchive_truncate_arname): Likewise.
2687 (_bfd_noarchive_write_ar_hdr): Likewise.
2688 (_bfd_noarchive_get_elt_at_index): Likewise.
2689 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2690 (_bfd_nosymbols_print_symbol): Likewise.
2691 (_bfd_nosymbols_get_symbol_info): Likewise.
2692 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2693 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2694 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2695 (_bfd_nosymbols_get_lineno): Likewise.
2696 (_bfd_nosymbols_find_nearest_line): Likewise.
2697 (_bfd_nosymbols_find_line): Likewise.
2698 (_bfd_nosymbols_find_inliner_info): Likewise.
2699 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2700 (_bfd_nosymbols_read_minisymbols): Likewise.
2701 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2702 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2703 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2704 (_bfd_nowrite_set_arch_mach): Likewise.
2705 (_bfd_nowrite_set_section_contents): Likewise.
2706 (_bfd_nolink_sizeof_headers): Likewise.
2707 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2708 (_bfd_nolink_bfd_relax_section): Likewise.
2709 (_bfd_nolink_bfd_gc_sections): Likewise.
2710 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2711 (_bfd_nolink_bfd_merge_sections): Likewise.
2712 (_bfd_nolink_bfd_is_group_section): Likewise.
2713 (_bfd_nolink_bfd_discard_group): Likewise.
2714 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2715 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2716 (_bfd_nolink_bfd_link_just_syms): Likewise.
2717 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2718 (_bfd_nolink_bfd_final_link): Likewise.
2719 (_bfd_nolink_bfd_link_split_section): Likewise.
2720 (_bfd_nolink_section_already_linked): Likewise.
2721 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2722 (_bfd_nolink_bfd_define_start_stop): Likewise.
2723 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2724 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2725 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2726 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2727 * libbfd.c (bfd_false_any): New function. Like bfd_false but
2728 accepts one or more arguments.
2729 (bfd_true_any): Likewise.
2730 (bfd_nullvoidptr_any): Likewise.
2731 (bfd_0_any): Likewise.
2732 (bfd_0u_any): Likewise.
2733 (bfd_0l_any): Likewise.
2734 (_bfd_n1_any): Likewise.
2735 (bfd_void_any): Likewise.
2736 * libbfd.h (extern): Regenerate
2737 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
2738 based dummy function.
2739 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2740 * binary.c (binary_get_symbol_info): Likewise.
2741 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2742 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2743 * coffcode.h (coff_set_alignment_hook): Likewise.
2744 (symname_in_debug_hook): Likewise.
2745 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2746 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2747 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2748 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2749 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2750 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2751 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2752 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2753 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2754 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2755 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2756 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2757 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2758 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2759 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2760 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2761 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2762 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2763 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2764 (bfd_elfNN_bfd_set_private_flags): Likewise.
2765 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2766 (elf_backend_init_index_section): Likewise.
2767 (elf_backend_allow_non_load_phdr): Likewise.
2768 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2769 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2770 * ieee.c (ieee_construct_extended_name_table): Likewise.
2771 (ieee_write_armap): Likewise.
2772 (ieee_write_ar_hdr): Likewise.
2773 (ieee_bfd_is_target_special_symbol): Likewise.
2774 * ihex.c (ihex_canonicalize_symtab): Likewise.
2775 (ihex_bfd_is_target_special_symbol): Likewise.
2776 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2777 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2778 (_bfd_ecoff_set_alignment_hook): Likewise.
2779 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2780 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2781 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2782 * oasys.c (oasys_construct_extended_name_table): Likewise.
2783 (oasys_write_armap): Likewise.
2784 (oasys_write_ar_hdr): Likewise.
2785 (oasys_bfd_is_target_special_symbol): Likewise.
2786 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2787 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2788 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2789 * som.c (som_bfd_is_target_special_symbol): Likewise.
2790 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2791 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2792 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2793 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2794 (versados_bfd_reloc_name_lookup): Likewise.
2795 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2796 (vms_bfd_define_start_stop): Likewise.
2797 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2798 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2799 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2800 * elf32-arc.c (get_replace_function): Assign replacement function
2802 * elf32-i370.c (i370_noop): Update prototype.
2804 2018-02-13 Alan Modra <amodra@gmail.com>
2807 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
2808 relocation sections. If size reduces to just the flag word,
2809 remove that too and mark with SEC_EXCLUDE.
2810 * elflink.c (bfd_elf_final_link): Strip empty group sections.
2812 2018-02-13 Alan Modra <amodra@gmail.com>
2815 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
2818 2018-02-12 Zebediah Figura <z.figura12@gmail.com>
2820 * i386msdos.c (msdos_mkobject); New function.
2821 (msdos_object_p): New function.
2822 (i386_msdos_vec): Use msdos_object_p as the check_format
2824 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
2825 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
2827 * peXXigen.c: Likewise.
2828 * coff-ia64.c: Likewise.
2830 2018-02-12 Nick Clifton <nickc@redhat.com>
2832 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
2834 * elf32-arc.c (elf_arc_relocate_section): Likewise.
2836 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
2838 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
2839 (sparc_elf_append_rela): Assert that there is enough room in section.
2840 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
2841 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
2842 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
2843 For a symbol subject to a GOT relocation, reserve a slot in the
2844 relocation section if the symbol isn't dynamic and we are in PIC mode.
2845 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
2846 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
2847 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
2848 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
2849 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
2850 resolved_to_zero. Do not generate a dynamic GOT relocation for an
2851 undefined weak symbol with non-default visibility. Remove superfluous
2852 'else' and fix formatting.
2854 2018-02-09 H.J. Lu <hongjiu.lu@intel.com>
2856 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
2858 (i386_elf32_sol2_vec): Don't declare.
2859 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
2860 Don't set need_global_offset_table.
2861 (elf_i386_solaris_arch_bed): New.
2862 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
2864 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
2865 target_os != is_nacl instead of target_os == is_normal.
2866 (x86_64_elf64_sol2_vec): Don't declare.
2867 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
2868 is_nacl instead of target_os == is_normal. Don't set
2869 need_global_offset_table.
2870 (elf_x86_64_solaris_arch_bed): New.
2871 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
2873 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
2874 _GLOBAL_OFFSET_TABLE_ for Solaris.
2875 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
2876 need_global_offset_table.
2877 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
2878 (elf_x86_link_hash_table): Remove need_global_offset_table.
2879 (elf_x86_init_table): Likewise.
2881 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2883 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2885 (i386_elf32_sol2_vec): Declared.
2886 (elf_i386_link_setup_gnu_properties): Set
2887 need_global_offset_table with info->output_bfd->xvec.
2888 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2890 (x86_64_elf64_sol2_vec): Declared.
2891 (elf_x86_64_link_setup_gnu_properties): Set
2892 need_global_offset_table with info->output_bfd->xvec.
2894 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2896 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2898 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
2900 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2902 (elf_x86_64_link_setup_gnu_properties): Set
2903 need_global_offset_table for Solaris.
2904 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
2905 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
2906 (_bfd_x86_elf_link_setup_gnu_properties): Copy
2907 need_global_offset_table.
2908 * elfxx-x86.h (elf_x86_link_hash_table): Add
2909 need_global_offset_table.
2910 (elf_x86_init_table): Likewise.
2912 2018-02-08 Jim Wilson <jimw@sifive.com>
2914 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
2917 2018-02-08 Nick Clifton <nickc@redhat.com>
2920 * elf.c (elf_parse_notes): Reject notes with excessuively large
2923 2018-02-07 Alan Modra <amodra@gmail.com>
2925 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
2926 * elf32-ppc.c: Remove speculation barrier support.
2927 * elf32-ppc.h: Likewise.
2928 * elf64-ppc.c: Likewise.
2929 * elf64-ppc.h: Likewise.
2931 2018-02-06 Jim Wilson <jimw@sifive.com>
2933 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
2934 callback to report an error.
2936 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
2939 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
2940 into call to !bfd_link_executable and tidy up.
2941 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
2942 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
2943 !bfd_link_executable.
2944 <R_SPARC_TLS_IE_HI22>: Likewise.
2945 <GOT relocations>: Remove useless code, tidy and merge related blocks.
2946 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
2947 !bfd_link_executable.
2948 <R_SPARC_WPLT30>: Tidy up.
2949 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
2950 !bfd_link_executable.
2951 (allocate_dynrelocs): Likewise.
2952 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
2953 <R_SPARC_TLS_GD_HI22>: Merge into...
2954 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
2955 sparc_elf_tls_transition and remove redundant code.
2956 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
2957 !bfd_link_executable.
2958 <R_SPARC_TLS_LDO_HIX22>: Likewise.
2959 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
2960 <R_SPARC_TLS_LDM_CALL>: Likewise.
2961 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
2962 <R_SPARC_TLS_GD_ADD>: Likewise.
2963 <R_SPARC_TLS_LDM_ADD>: Likewise.
2964 <R_SPARC_TLS_LDO_ADD>: Likewise.
2965 <R_SPARC_TLS_IE_LD>: Likewise.
2967 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
2970 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
2971 functions failed to find the function name, try the generic elf
2972 find function instead.
2974 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
2976 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
2977 'memcpy' instead of 'strncpy' when writing the magic number.
2979 2018-02-06 Nick Clifton <nickc@redhat.com>
2982 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
2983 section before attempting to read it in.
2984 (bfd_get_alt_debug_link_info): Likewise.
2986 2018-02-06 Paul Carroll <pcarroll@codesourcery.com>
2988 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
2989 line information in addition to name, if they can be found.
2991 2018-02-05 Renlin Li <renlin.li@arm.com>
2994 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
2995 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
2996 check for writeable section as well.
2998 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
3001 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
3002 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
3003 undefined weak symbol to 0.
3004 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
3005 if _GLOBAL_OFFSET_TABLE_ is referenced.
3006 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
3007 got_referenced instead of ref_regular_nonweak. Remove the
3008 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
3009 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
3011 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3013 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
3014 initialize `hi_reloc'.
3016 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3018 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
3019 SHT_MIPS_REGINFO sections don't assert the correct size and
3020 report an error instead.
3022 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3024 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
3025 status from `->elf_backend_section_processing'.
3027 2018-02-02 Jim Wilson <jimw@sifive.com>
3030 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
3031 If link_info->wrap_hash, check for a duplicate symbol and ignore.
3032 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
3033 Pass new argument to riscv_relax_delete_bytes.
3034 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
3035 ATTRIBUTE_UNUSED from link_info parameter.
3037 2018-02-02 Alan Modra <amodra@gmail.com>
3039 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
3040 emitted for toc sequence optimization. Set and use "howto" later.
3042 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
3044 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
3045 arithmetic on NULL pointer.
3046 * elflink.c (_bfd_elf_archive_symbol_lookup,
3047 elf_link_add_archive_symbols): Likewise.
3049 2018-01-31 Michael Matz <matz@suse.de>
3051 * elflink.c (bfd_elf_define_start_stop): Fix check of
3054 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
3057 * elflink.c (bfd_elf_define_start_stop): Check if __start and
3058 __stop symbols are referenced by shared objects.
3060 2018-01-30 Alan Modra <amodra@gmail.com>
3063 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
3064 segment when demand paged with lma on the same page. Test this
3065 before load/non-load, executable/non-executable,
3066 writable/non-writable tests and simplify. Delete bogus relro
3067 condition in writable/non-writable test. Delete outdated
3068 comment. Formatting.
3070 2018-01-30 Alan Modra <amodra@gmail.com>
3072 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
3075 2018-01-29 Alan Modra <amodra@gmail.com>
3078 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
3079 range before converting to a symbol table pointer.
3081 2018-01-27 Nick Clifton <nickc@redhat.com>
3083 * po/ru.po: Updated Russian translation.
3085 2018-01-26 Alan Modra <amodra@gmail.com>
3087 * elflink.c (bfd_elf_define_start_stop): Override symbols when
3088 they are defined dynamically.
3090 2018-01-26 Alan Modra <amodra@gmail.com>
3092 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
3093 .branch_lt changes size.
3095 2018-01-25 Alan Modra <amodra@gmail.com>
3098 * elfcode.h (elf_object_p): Avoid integer overflow.
3100 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
3103 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
3104 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
3107 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
3110 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
3111 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
3112 bfd_link_executable for TLS check.
3113 (_bfd_sparc_elf_check_relocs): Likewise.
3114 (allocate_dynrelocs): Likewise.
3115 (_bfd_sparc_elf_relocate_section): Likewise.
3117 2018-01-24 Renlin Li <renlin.li@arm.com>
3119 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
3120 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
3121 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
3122 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
3123 BFD_RELOC_AARCH64_MOVW_PREL_G3.
3124 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
3125 (_bfd_aarch64_elf_resolve_relocation): Likewise.
3127 2018-01-24 Renlin Li <renlin.li@arm.com>
3129 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
3130 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
3131 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
3132 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
3133 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
3134 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
3135 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
3136 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
3137 BFD_RELOC_AARCH64_MOVW_PREL_G3.
3138 * bfd-in2.h: Regenerate.
3139 * libbfd.h: Regenerate.
3141 2018-01-23 Maciej W. Rozycki <macro@mips.com>
3143 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
3144 `mips_elf32_section_processing' comment reference.
3146 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
3149 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
3150 versioned __tls_get_addr symbol.
3152 2018-01-19 Nick Clifton <nickc@redhat.com>
3154 * po/fr.po: Updated French translation.
3156 2018-01-18 Alan Modra <amodra@gmail.com>
3158 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
3159 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
3160 (ppc64_elf_build_stubs): Likewise.
3162 2018-01-17 Nick Clifton <nickc@redhat.com>
3164 * po/ru.po: Updated Russian translation.
3165 * po/uk/po: Updated Ukranian translation.
3167 2018-01-17 Alan Modra <amodra@gmail.com>
3169 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
3171 2018-01-17 Alan Modra <amodra@gmail.com>
3173 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
3174 (CRSETEQ, BEQCTRM): Define.
3175 (is_nonpic_glink_stub): Don't check bctr.
3176 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
3177 (ppc_elf_relax_section): Size speculation barrier.
3178 (output_bctr): New function.
3179 (write_glink_stub): Use output_bctr.
3180 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
3181 (ppc_elf_finish_dynamic_symbol): Likewise.
3182 (ppc_elf_finish_dynamic_sections): Use output_bctr.
3183 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
3184 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
3185 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
3186 (size_global_entry_stubs): Handle speculation barrier sizing.
3187 (plt_stub_size): Likewise.
3188 (output_bctr): New function.
3189 (build_plt_stub, build_tls_get_addr_stub): Output speculation
3191 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
3192 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
3193 (build_global_entry_stubs): Output speculation barrier.
3194 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
3195 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
3197 2018-01-17 Alan Modra <amodra@gmail.com>
3199 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
3200 __tls_get_addr_opt, and alignment sizing.
3201 (TLS_GET_ADDR_GLINK_SIZE): Delete.
3202 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
3203 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
3205 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
3206 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
3207 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
3209 (write_glink_stub): Handle __tls_get_addr_opt stub.
3210 Pad out to size given by GLINK_ENTRY_SIZE.
3211 (ppc_elf_relocate_section): Adjust write_glink_stub call.
3212 (ppc_elf_finish_dynamic_symbol): Likewise.
3213 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
3214 insn array since so many need rewriting.
3215 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
3216 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
3217 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
3218 nops. Adjust all uses.
3219 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
3220 in glink_vma calculation.
3221 (struct ppc_link_hash_table): Add global_entry section pointer.
3222 (create_linkage_sections): Create separate section for global
3224 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
3225 (size_global_entry_stubs): Handle sizing for aligned stubs.
3226 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
3227 and don't stash end of glink branch table in rawsize.
3228 (ppc_build_one_stub): Rewrite stub size calculations.
3229 (build_global_entry_stubs): Use new section.
3230 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
3231 Build lazy link stubs out to end of section. Build global entry
3232 stubs in new section.
3234 2018-01-15 Nick Clifton <nickc@redhat.com>
3236 * po/uk.po: Updated Ukranian translation.
3238 2018-01-13 Nick Clifton <nickc@redhat.com>
3240 * po/bfd.pot: Regenerated.
3242 2018-01-13 Nick Clifton <nickc@redhat.com>
3244 * version.m4: Bump version to 2.30.51
3245 * configure: Regenerate.
3247 2018-01-13 Nick Clifton <nickc@redhat.com>
3249 2.30 branch created.
3251 2018-01-12 Jens Widell <jl@opera.com>
3253 * elf.c (setup_group): Optimize search for group by remembering
3254 last found group and restarting search at that index.
3255 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
3257 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
3259 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
3260 bfd_link_common_skip_none in switch.
3262 2018-01-12 Alan Modra <amodra@gmail.com>
3265 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
3266 references on forced local symbols.
3268 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
3270 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
3271 .reginfo section has wrong size.
3273 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3276 * elf.c (_bfd_elf_map_sections_to_segments): When generating
3277 separate code and read-only data LOAD segments, create a new
3278 LOAD segment if the previous section contains text and the
3279 current section doesn't or vice versa. Don't put a writable
3280 section in a read-only segment if there is a RELRO segment.
3282 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3285 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
3286 references on forced local symbols.
3288 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3291 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
3292 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
3294 2018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com>
3297 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
3299 2018-01-03 John Baldwin <jhb@FreeBSD.org>
3301 * elf.c (elfcore_grok_freebsd_note): Handle
3302 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
3303 NT_FREEBSD_PROCSTAT_VMMAP.
3305 2018-01-03 Alan Modra <amodra@gmail.com>
3307 Update year range in copyright notice of all files.
3309 For older changes see ChangeLog-2017
3311 Copyright (C) 2018 Free Software Foundation, Inc.
3313 Copying and distribution of this file, with or without modification,
3314 are permitted in any medium without royalty provided the copyright
3315 notice and this notice are preserved.
3321 version-control: never