1 2018-07-17 Maciej W. Rozycki <macro@mips.com>
3 * linker.c (bfd_is_abs_symbol): New macro.
4 * bfd-in2.h: Regenerate.
6 2018-07-16 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8 * elf-bfd.h (elfcore_write_ppc_tar): Add prototype.
9 (elfcore_write_ppc_ppr): Likewise.
10 (elfcore_write_ppc_dscr): Likewise.
11 (elfcore_write_ppc_ebb): Likewise.
12 (elfcore_write_ppc_pmu): Likewise.
13 (elfcore_write_ppc_tm_cgpr): Likewise.
14 (elfcore_write_ppc_tm_cfpr): Likewise.
15 (elfcore_write_ppc_tm_cvmx): Likewise.
16 (elfcore_write_ppc_tm_cvsx): Likewise.
17 (elfcore_write_ppc_tm_spr): Likewise.
18 (elfcore_write_ppc_tm_ctar): Likewise.
19 (elfcore_write_ppc_tm_cppr): Likewise.
20 (elfcore_write_ppc_tm_cdscr): Likewise.
21 * elf.c (elfcore_write_ppc_tar): New function.
22 (elfcore_write_ppc_ppr): Likewise.
23 (elfcore_write_ppc_dscr): Likewise.
24 (elfcore_write_ppc_ebb): Likewise.
25 (elfcore_write_ppc_pmu): Likewise.
26 (elfcore_write_ppc_tm_cgpr): Likewise.
27 (elfcore_write_ppc_tm_cfpr): Likewise.
28 (elfcore_write_ppc_tm_cvmx): Likewise.
29 (elfcore_write_ppc_tm_cvsx): Likewise.
30 (elfcore_write_ppc_tm_spr): Likewise.
31 (elfcore_write_ppc_tm_ctar): Likewise.
32 (elfcore_write_ppc_tm_cppr): Likewise.
33 (elfcore_write_ppc_tm_cdscr): Likewise.
34 (elfcore_write_register_note): Call them.
35 (elfcore_grok_ppc_tar): New function.
36 (elfcore_grok_ppc_ppr): Likewise.
37 (elfcore_grok_ppc_dscr): Likewise.
38 (elfcore_grok_ppc_ebb): Likewise.
39 (elfcore_grok_ppc_pmu): Likewise.
40 (elfcore_grok_ppc_tm_cgpr): Likewise.
41 (elfcore_grok_ppc_tm_cfpr): Likewise.
42 (elfcore_grok_ppc_tm_cvmx): Likewise.
43 (elfcore_grok_ppc_tm_cvsx): Likewise.
44 (elfcore_grok_ppc_tm_spr): Likewise.
45 (elfcore_grok_ppc_tm_ctar): Likewise.
46 (elfcore_grok_ppc_tm_cppr): Likewise.
47 (elfcore_grok_ppc_tm_cdscr): Likewise.
48 (elfcore_grok_note): Call them.
50 2018-07-11 Maciej W. Rozycki <macro@mips.com>
52 * elfxx-mips.c (mips_tls_got_relocs): Use `bfd_link_dll' rather
53 than `!bfd_link_pic' in determining the dynamic symbol index.
54 Avoid the index of -1.
55 (mips_elf_initialize_tls_slots): Likewise. Flatten code by
56 moving `dyn' to the beginning of the function block.
58 2018-07-11 Maciej W. Rozycki <macro@mips.com>
59 Rich Felker <bugdal@aerifal.cx>
62 * elfxx-mips.c (mips_tls_got_relocs): Use `bfd_link_dll' rather
63 than `bfd_link_pic' to determine whether dynamic relocations are
65 (mips_elf_initialize_tls_slots): Likewise.
67 2018-07-10 Maciej W. Rozycki <macro@mips.com>
69 * elflink.c (bfd_elf_final_link): Rename `remove' local variable
72 2018-07-10 Alan Modra <amodra@gmail.com>
74 * elf32-xgate.h: Delete.
75 * elf32-xgate.c: Delete unnecessary forward declarations, add two
77 (xgate_elf_bfd_link_hash_table_create)
78 (xgate_elf_bfd_link_hash_table_free)
79 (xgate_elf_set_mach_from_flags, struct xgate_scan_param)
80 (stub_hash_newfunc, elf32_xgate_add_symbol_hook)
81 (elf32_xgate_setup_section_lists, elf32_xgate_size_stubs)
82 (elf32_xgate_build_stubs, elf32_xgate_check_relocs)
83 (elf32_xgate_relocate_section, _bfd_xgate_elf_set_private_flags)
84 (elf32_xgate_post_process_headers): Delete.
85 (elf32_xgate_backend_symbol_processing): New function.
86 (xgate_elf_ignore_reloc, xgate_elf_special_reloc)
87 (_bfd_xgate_elf_print_private_bfd_data): Make static.
88 (ELF_TARGET_ID, elf_info_to_howto, elf_backend_check_relocs)
89 (elf_backend_relocate_section, elf_backend_object_p)
90 (elf_backend_final_write_processing, elf_backend_can_gc_sections)
91 (elf_backend_post_process_headers, elf_backend_add_symbol_hook)
92 (bfd_elf32_bfd_link_hash_table_create)
93 (bfd_elf32_bfd_set_private_flags)
94 (xgate_stub_hash_lookup): Don't define.
95 (elf_backend_symbol_processing): Define.
96 * elf-bfd.h (elf_target_id): Delete XGATE_ELF_DATA.
98 2018-07-09 Maciej W. Rozycki <macro@mips.com>
100 * elfxx-mips.c (_bfd_mips_elf_adjust_dynamic_symbol): Don't set
101 `->needs_lazy_stub' if the stubs output section is the absolute
104 2018-07-09 H.J. Lu <hongjiu.lu@intel.com>
107 * configure.ac: Use changequote for "i[3-7]86-*-linux-*".
108 * configure: Regenerated.
110 2018-07-09 Alan Modra <amodra@gmail.com>
112 * elf32-m68hc1x.c (elf32_m68hc11_post_process_headers): Call
113 _bfd_elf_post_process_headers.
115 2018-07-06 Max Filippov <jcmvbkbc@gmail.com>
117 * elf32-xtensa.c (elf_xtensa_allocate_dynrelocs): Don't allocate
118 space for dynamic relocation for undefined weak symbol.
119 (elf_xtensa_relocate_section): Don't emit R_XTENSA_RELATIVE
120 relocation for undefined weak symbols.
121 (shrink_dynamic_reloc_sections): Don't shrink dynamic relocation
122 section for relocations against undefined weak symbols.
124 2018-07-06 Alan Hayward <alan.hayward@arm.com>
126 * elf.c (elfcore_grok_aarch_sve): New function.
127 (elfcore_grok_note): Check for Aarch64 SVE.
128 (elfcore_write_aarch_sve): New function.
129 (elfcore_write_register_note): Check for Aarch64 SVE.
130 * elf-bfd.h(elfcore_grok_aarch_sve): New declaration.
132 2018-07-06 Alan Modra <amodra@gmail.com>
134 * elf32-arm.c (elf32_arm_nabi_write_core_note): Don't use
135 DIAGNOTIC_PUSH and DIAGNOSTIC_POP unconditionally.
136 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
137 * elf32-s390.c (elf_s390_write_core_note): Likewise.
138 * elf64-ppc.c (ppc64_elf_write_core_note): Likewise.
139 * elf64-s390.c (elf_s390_write_core_note): Likewise.
140 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
142 2018-07-05 Jim Wilson <jimw@sifive.com>
144 * config.bfd (riscv32*-*-*): Renamed from riscv32-*-*.
145 (riscv64*-*-*): Likewise.
146 (riscv-*-*): Add as an alias for riscv32*-*-*.
148 2018-07-05 H.J. Lu <hongjiu.lu@intel.com>
151 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Remove x86
152 ISA properties with empty bits.
154 2018-07-05 Nick Clifton <nickc@redhat.com>
156 * po/ru.po: Updated Russian translation.
158 2018-07-05 Alan Modra <amodra@gmail.com>
160 * elf-bfd.h (_bfd_elf_ppc_merge_fp_attributes): Update prototype.
161 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Return error
162 on mismatch. Remove "warning: " from messages. Track last bfd
164 (ppc_elf_merge_obj_attributes): Likewise. Handle status from
165 _bfd_elf_ppc_merge_fp_attributes.
166 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data): Handle status
167 from _bfd_elf_ppc_merge_fp_attributes.
169 2018-07-04 H.J. Lu <hongjiu.lu@intel.com>
171 * Makefile.am (bfdinclude_HEADERS): Add $(INCDIR)/diagnostics.h.
172 * Makefile.in: Regenerated.
174 2018-07-03 Alan Modra <amodra@gmail.com>
176 * elflink.c (bfd_elf_final_link): Remove zero size .gnu.attributes
179 2018-07-03 Alan Modra <amodra@gmail.com>
181 * elf-bfd.h (ATTR_TYPE_FLAG_ERROR, ATTR_TYPE_HAS_ERROR): Define.
182 * elf-attrs.c (is_default_attr): Handle ATTR_TYPE_HAS_ERROR.
183 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Use
184 ATTR_TYPE_FLAG_INT_VAL. Set ATTR_TYPE_HAS_ERROR on finding
185 incompatible attribute.
186 (ppc_elf_merge_obj_attributes): Likewise. Return
187 _bfd_elf_merge_object_attributes result.
188 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data): Return
189 _bfd_elf_merge_object_attributes result.
191 2018-07-03 Alan Modra <amodra@gmail.com>
194 * elflink.c (_bfd_elf_fix_symbol_flags): Hide dynamic symbols
195 in discarded sections.
197 2018-07-02 Maciej W. Rozycki <macro@mips.com>
199 * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Set
200 `mark' for symbols created from `mips_elf_dynsym_rtproc_names'
203 2018-07-02 Maciej W. Rozycki <macro@mips.com>
205 * elf64-mips.c (micromips_elf64_howto_table_rel): Add
206 R_MICROMIPS_HI0_LO16, R_MICROMIPS_TLS_GD, R_MICROMIPS_TLS_LDM,
207 R_MICROMIPS_TLS_DTPREL_HI16, R_MICROMIPS_TLS_DTPREL_LO16,
208 R_MICROMIPS_TLS_GOTTPREL, R_MICROMIPS_TLS_TPREL_HI16,
209 R_MICROMIPS_TLS_TPREL_LO16, R_MICROMIPS_GPREL7_S2 and
210 R_MICROMIPS_PC23_S2 relocation entries.
211 (micromips_elf64_howto_table_rela): Likewise.
212 (micromips_reloc_map): Likewise.
213 * elfn32-mips.c (elf_micromips_howto_table_rel): Likewise.
214 (elf_micromips_howto_table_rela): Likewise.
215 (micromips_reloc_map): Likewise.
217 2018-07-02 H.J. Lu <hongjiu.lu@intel.com>
220 * elf64-x86-64.c (elf_x86_64_relocate_section): Clear the
221 R_X86_64_converted_reloc_bit bit.
223 2018-07-02 Jeff Muizelaar <jrmuizel@gmail.com>
224 Tom Tromey <tom@tromey.com>
228 * mach-o.c (bfd_mach_o_fat_close_and_cleanup): New function.
229 (bfd_mach_o_close_and_cleanup): Redefine.
230 * archive.c (_bfd_unlink_from_archive_parent): New function,
232 (_bfd_archive_close_and_cleanup): ..here.
233 (bfd_generic_archive_p): Do not clear archive's format.
234 * libbfd-in.h (_bfd_unlink_from_archive_parent): Declare.
235 * libbfd.h: Regenerate.
237 2018-07-02 Thomas Preud'homme <thomas.preudhomme@arm.com>
239 * archures.c (bfd_mach_arm_5TEJ, bfd_mach_arm_6, bfd_mach_arm_6KZ,
240 bfd_mach_arm_6T2, bfd_mach_arm_6K, bfd_mach_arm_7, bfd_mach_arm_6M,
241 bfd_mach_arm_6SM, bfd_mach_arm_7EM, bfd_mach_arm_8, bfd_mach_arm_8R,
242 bfd_mach_arm_8M_BASE, bfd_mach_arm_8M_MAIN): Define.
243 * bfd-in2.h: Regenerate.
244 * cpu-arm.c (arch_info_struct): Add entries for above new
246 * elf32-arm.c (bfd_arm_get_mach_from_attributes): Add Tag_CPU_arch to
247 bfd_mach_arm mapping logic for pre Armv4 and Armv5TEJ and later
248 architectures. Force assert failure for any new Tag_CPU_arch value.
250 2018-07-02 Thomas Preud'homme <thomas.preudhomme@arm.com>
252 * doc/bfdint.texi: Use command-line consistently when used in a
254 * doc/bfdsumm.texi: Likewise.
256 2018-06-29 Maciej W. Rozycki <macro@mips.com>
258 * elfxx-mips.c (allocate_dynrelocs): Remove extraneous symbol
259 visibility check made for undefined weak symbols.
261 2018-06-26 Nick Clifton <nickc@redhat.com>
263 * po/uk.po: Updated Ukranian translation.
265 2018-06-25 Nick Clifton <nickc@redhat.com>
267 * elfnn-aarch64.c (_bfd_aarch64_erratum_835769_stub_name): Check
268 for malloc returning NULL.
269 (_bfd_aarch64_erratum_843419_fixup): Check for
270 _bfd_aarch64_erratum_835769_stub_name returning NULL.
272 2018-06-24 Nick Clifton <nickc@redhat.com>
274 * po/bfd.pot: Regenerate.
276 2018-06-24 Nick Clifton <nickc@redhat.com>
278 * version.m4: Update version string to 2.31.51.
279 * configure: Regenerate.
281 2018-06-24 Nick Clifton <nickc@redhat.com>
285 2018-06-21 Maciej W. Rozycki <macro@mips.com>
287 * elfxx-mips.c (_bfd_mips_elf_compact_eh_encoding)
288 (_bfd_mips_elf_cant_unwind_opcode): Correct formatting.
290 2018-06-21 Maciej W. Rozycki <macro@mips.com>
292 * elfxx-mips.c (_bfd_mips_post_process_headers): Keep
293 EI_ABIVERSION setting together.
295 2018-06-21 Maciej W. Rozycki <macro@mips.com>
297 * elfxx-mips.c (MIPS_LIBC_ABI_DEFAULT, MIPS_LIBC_ABI_MIPS_PLT)
298 (MIPS_LIBC_ABI_UNIQUE, MIPS_LIBC_ABI_MIPS_O32_FP64)
299 (MIPS_LIBC_ABI_MAX): New enumeration constants.
300 (_bfd_mips_post_process_headers): Use them in place of magic
303 2018-06-21 Jim Wilson <jimw@sifive.com>
305 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Update comment.
306 Use SYMBOL_REFERENCES_LOCAL. Add asserts for h->got.offset.
308 2018-06-21 Alan Modra <amodra@gmail.com>
310 * doc/Makefile.am (AUTOMAKE_OPTIONS): Add "foreign".
311 * doc/Makefile.in: Regenerate.
313 2018-06-20 Renlin Li <renlin.li@arm.com>
315 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use PG_OFFSET
316 to resolve BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC,
317 BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC,
318 BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC,
319 BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC,
320 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
321 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
322 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
323 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
325 2018-06-20 Nick Clifton <nickc@redhat.com>
328 * opncls.c (get_build_id): Check for a negative or excessive data
329 size in the build-id note.
331 2018-06-20 Nick Clifton <nickc@redhat.com>
334 * mach-o.c (cputype): New function.
335 (cpusubtype): New function.
336 (bfd_mach_o_bfd_print_private_data): New function. Dispalys the
337 values in the MACH-O file header.
338 (bfd_mach_o_bfd_copy_private_header_data): Copy the cputype and
339 cpusubtype fields from the input bfd's mach-o header to the output
341 * mach-o-target.c (bfd_mach_o_bfd_print_private_bfd_data):
342 Redefine to bfd_mach_o_bfd_print_private_data.
343 * mach-o.h (bfd_mach_o_bfd_print_private_bfd_data): Prototype.
345 2018-06-19 Maciej W. Rozycki <macro@mips.com>
348 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Verify the
349 `.got.plt' entry referred is in range.
350 (mips_finish_exec_plt): Correct the range check for `.got.plt'
351 start. Replace the assertion used for that with a proper error
354 2018-06-19 Maciej W. Rozycki <macro@mips.com>
356 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Fix
359 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
361 * Makefile.am (AUTOMAKE_OPTIONS): Remove 1.11.
362 (INCLUDES): Rename to ...
363 (AM_CPPFLAGS): ... this.
364 * configure.ac: Remove AC_PREREQ.
365 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove 1.9, cygnus, add
366 info-in-builddir no-texinfo.tex.
367 (info_TEXINFOS): Rename bfd.texinfo to bfd.texi.
368 * doc/bfd.texinfo: Rename to ...
369 * doc/bfd.texi: ... this.
370 * Makefile.in: Re-generate.
371 * aclocal.m4: Re-generate.
372 * config.in: Re-generate.
373 * configure: Re-generate.
374 * doc/Makefile.in: Re-generate.
376 2018-06-18 Mephi <mephi42@gmail.com>
379 * mach-o-x86-64.c (x86_64_howto_table): Add entry for
380 BFD_RELOC_MACH_O_X86_64_RELOC_TLV.
381 (bfd_mach_o_x86_64_canonicalize_one_reloc): Handle the new reloc.
382 (bfd_mach_o_x86_64_swap_reloc_out): Likewise.
383 * reloc.c (BFD_RELOC_MACH_O_X86_64_TV): New entry.
384 * bfd-in2.h: Regenerate.
385 * libbfd.h: Regenerate.
387 2018-06-14 Faraz Shahbazker <Faraz.Shahbazker@mips.com>
389 * elfxx-mips.c (print_mips_ases): Add GINV extension.
391 2018-06-14 H.J. Lu <hongjiu.lu@intel.com>
394 * elf.c (_bfd_elf_get_symbol_version_string): Check if the first
395 symbol version is base version.
397 2018-06-14 Alan Modra <amodra@gmail.com>
399 * elf-bfd.h (struct elf_link_hash_table): Add "dynamic_relocs".
400 * elflink.c (_bfd_elf_init_2_index_sections): Comment fix.
401 (_bfd_elf_add_dynamic_entry): Set "dynamic_relocs".
402 (_bfd_elf_link_renumber_dynsyms): Exclude all section symbols when
403 "dynamic_relocs" is not set.
404 * elfxx-mips.c (count_section_dynsyms): Likewise.
406 2018-06-14 Alan Modra <amodra@gmail.com>
409 * bfdio.c (bfd_seek): Optimize away seeks to current position.
411 2018-06-13 Scott Egerton <scott.egerton@imgtec.com>
412 Faraz Shahbazker <Faraz.Shahbazker@mips.com>
414 * elfxx-mips.c (print_mips_ases): Add CRC.
416 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
419 * elfxx-x86.c (elf_x86_hide_linker_defined): New function.
420 (_bfd_x86_elf_link_check_relocs): Use it to hide hidden
421 __bss_start, _end and _edata in shared libraries.
423 2018-06-07 Alan Modra <amodra@gmail.com>
425 * elf32-tic6x.c (elf32_tic6x_check_relocs): Reference
426 __c6xabi_DSBT_BASE explicitly for R_C6000_SBR_* relocs.
428 2018-06-05 Alan Modra <amodra@gmail.com>
430 * bfd.c (struct bfd): Update comment on "where" usage.
431 * bfdio.c (bfd_bwrite, bfd_stat): Use and update "iovec",
432 "iostream", and "where" from containing archive file. Return
434 (bfd_bread): Similarly, and return error attempted out of
435 bounds archive element access.
436 (bfd_tell, bfd_flush): Use and update "iovec", "iostream", and
437 "where" from containing archive file.
438 (bfd_seek): Likewise. Return error on NULL iovec. Don't
439 attempt to optimize away seeks. Don't paper over errors by
441 (bfd_get_mtime): Call bfd_stat rather than iovec->bstat.
442 (bfd_get_size): Likewise.
443 (bfd_mmap): Operate on and use iovec of containing archive
444 file. Return error on NULL iovec.
445 * cache.c (bfd_cache_lookup_worker): Abort if working on
447 (cache_bread_1): Delete bfd parameter, add FILE* parameter.
448 Don't ignore zero byte reads.
449 (cache_bread): Look up FILE* in cache here. Error on NULL
451 (cache_bwrite): Rename "where" to "from".
452 (cache_bmmap): Don't handle archive elements.
453 * coffcode.h (coff_slurp_line_table): Exit early on zero
455 * bfd-in2.h: Regenerate.
457 2018-06-05 Alan Modra <amodra@gmail.com>
460 * plugin.c (bfd_plugin_open_input): Allow for possibility of
461 nested archives. Open file again for plugin.
462 (try_claim): Don't save and restore file position. Close file
464 * sysdep.h (O_BINARY): Define.
466 2018-06-04 Max Filippov <jcmvbkbc@gmail.com>
468 * elf32-xtensa.c (xtensa_read_table_entries): Make global.
469 (compute_fill_extra_space): Drop declaration. Rename function to
470 xtensa_compute_fill_extra_space.
471 (compute_ebb_actions, remove_dead_literal): Update references to
472 compute_fill_extra_space.
474 2018-06-04 Volodymyr Arbatov <arbatov@cadence.com>
476 * elf32-xtensa.c (elf32xtensa_separate_props): New global
478 (xtensa_add_names): New function.
479 (xtensa_property_section_name): Add new parameter
480 separate_sections, use it to choose property section name.
481 (xtensa_get_separate_property_section): New function.
482 (xtensa_get_property_section): Invoke
483 xtensa_get_separate_property_section to get individual property
484 section if it exists, common property section otherwise.
485 (xtensa_make_property_section): Pass elf32xtensa_separate_props
486 to xtensa_property_section_name.
488 2018-06-04 H.J. Lu <hongjiu.lu@intel.com>
491 * bfd-in.h: Include "diagnostics.h".
492 * bfd-in2.h: Regenerated.
493 * elf32-arm.c (elf32_arm_nabi_write_core_note): Use
494 DIAGNOSTIC_PUSH, DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION and
495 DIAGNOSTIC_POP to silence GCC 8.1 warnings with
496 -Wstringop-truncation.
497 * elf32-ppc.c (ppc_elf_write_core_note): Likewse.
498 * elf32-s390.c (elf_s390_write_core_note): Likewse.
499 * elf64-ppc.c (ppc64_elf_write_core_note): Likewse.
500 * elf64-s390.c (elf_s390_write_core_note): Likewse.
501 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewse.
503 2018-06-03 Jim Wilson <jimw@sifive.com>
506 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Check
507 for and handle an undefined weak with no PLT.
510 * elfnn-riscv.c (riscv_relax_delete_bytes): Add versioned_hidden check
511 to code that ignores duplicate symbols.
513 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
515 * version.m4: Bump version to 2.30.52
516 * configure: Regenerated.
518 2018-06-01 Alan Modra <amodra@gmail.com>
520 * bfd.c (_bfd_error_handler): Arrange for this function to be
521 declared in bfd-in2.h.
522 * libbfd-in.h (_bfd_error_handler): Don't declare.
523 * libbfd.h: Regenerate.
524 * bfd-in2.h: Regenerate.
526 2018-05-30 Amaan Cheval <amaan.cheval@gmail.com>
528 * config.bfd (x86_64-*-*): Add pei-x86-64 target to x86_64-*-rtems*
529 This is needed to generate UEFI application image files from ELFs.
531 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
533 * elf32-i386.c (elf_i386_lazy_plt): Add plt_tlsdesc_entry,
534 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
535 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
536 plt_tlsdesc_got2_insn_end for TLSDESC entry.
537 (elf_i386_lazy_ibt_plt): Likewise.
538 (elf_i386_nacl_plt): Likewise.
539 * elf64-x86-64.c (tlsdesc_plt_entry): Moved and renamed to ...
540 (elf_x86_64_tlsdesc_plt_entry): This.
541 (elf_x86_64_lazy_plt): Add plt_tlsdesc_entry,
542 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
543 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
544 plt_tlsdesc_got2_insn_end for TLSDESC entry.
545 (elf_x86_64_lazy_bnd_plt): Likewise.
546 (elf_x86_64_lazy_ibt_plt): Likewise.
547 (elf_x32_lazy_ibt_plt): Likewise.
548 (elf_x86_64_nacl_plt): Likewise.
549 (elf_x86_64_finish_dynamic_sections): Use plt_tlsdesc_entry,
550 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
551 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
552 plt_tlsdesc_got2_insn_end to update TLSDESC entry.
553 * elfxx-x86.h (elf_x86_lazy_plt_layout): Update comments.
554 Add plt_tlsdesc_entry, plt_tlsdesc_entry_size,
555 plt_tlsdesc_got1_offset, plt_tlsdesc_got2_offset,
556 plt_tlsdesc_got1_insn_end and plt_tlsdesc_got2_insn_end.
557 (elf_x86_non_lazy_plt_layout): Update comments.
558 (elf_x86_plt_layout): Likewise.
560 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
563 * elf-s390-common.c (elf_s390_add_symbol_hook): Removed.
564 * elf32-arc.c (elf_arc_add_symbol_hook): Likewise.
565 (elf_backend_add_symbol_hook): Likewise.
566 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
567 (elf_backend_add_symbol_hook): Likewise.
568 * elf32-s390.c (elf_backend_add_symbol_hook): Likewise.
569 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
570 (elf_backend_add_symbol_hook): Likewise.
571 * elf64-s390.c (elf_backend_add_symbol_hook): Likewise.
572 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
573 * elfxx-aarch64.h (_bfd_aarch64_elf_add_symbol_hook): Likewise.
574 (elf_backend_add_symbol_hook): Likewise.
575 * elf32-arm.c (elf32_arm_add_symbol_hook): Remove STT_GNU_IFUNC
577 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
578 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
579 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
580 * elflink.c (elf_link_add_object_symbols): Set
581 elf_gnu_symbol_ifunc for STT_GNU_IFUNC symbols.
583 2018-05-26 H.J. Lu <hongjiu.lu@intel.com>
586 * elf-bfd.h (_bfd_elf_link_hide_sym_by_version): New.
587 * elflink.c (_bfd_elf_link_hide_versioned_symbol): New function.
588 Extracted from _bfd_elf_link_assign_sym_version.
589 (_bfd_elf_link_hide_sym_by_version): New function.
590 (_bfd_elf_link_assign_sym_version): Use
591 _bfd_elf_link_hide_versioned_symbol.
592 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Call
593 _bfd_elf_link_hide_sym_by_version instead of
594 bfd_hide_sym_by_version. Don't check unversioned symbol.
596 2018-05-25 Alan Modra <amodra@gmail.com>
598 * Makefile.in: Regenerate.
599 * po/SRC-POTFILES.in: Regenerate.
601 2018-05-25 Alan Modra <amodra@gmail.com>
603 * configure.ac (bfd_cv_hidden): Run test with -Werror in CFLAGS.
604 * configure: Regenerate.
606 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
608 * elf64-ppc.c (ppc64_elf_write_core_note): Add ATTRIBUTE_NONSTRING
611 2018-05-22 Alan Modra <amodra@gmail.com>
614 * elf32-hppa.c (hppa_get_stub_entry): Return NULL when link_sec
616 (elf32_hppa_size_stubs): Only create stubs for load, alloc, code
618 (final_link_relocate): Revert last change.
620 2018-05-22 Alan Modra <amodra@gmail.com>
623 * elf32-hppa.c (final_link_relocate): Don't look for plt call
624 stubs in non-alloc sections.
626 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
629 * aout-target.h (MY_bfd_link_hide_symbol): New.
630 * aout-tic30.c (MY_bfd_link_hide_symbol): Likewise.
631 * binary.c (binary_bfd_link_hide_symbol): Likewise.
632 * coff-alpha.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
633 * coff-mips.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
634 * coff-rs6000.c (_bfd_xcoff_bfd_link_hide_symbol): Likewise.
635 * coffcode.h (coff_bfd_link_hide_symbol): Likewise.
636 * elf-bfd.h (_bfd_elf_link_hide_symbol): Likewise.
637 * elfxx-target.h (bfd_elfNN_bfd_link_hide_symbol): Likewise.
638 * i386msdos.c (msdos_bfd_link_hide_symbol): Likewise.
639 * ihex.c (ihex_bfd_link_hide_symbol): Likewise.
640 * libbfd-in.h (_bfd_nolink_bfd_link_hide_symbol): Likewise.
641 * linker.c (_bfd_generic_link_hide_symbol): Likewise.
642 (bfd_link_hide_symbol): Likewise.
643 * mach-o-target.c (bfd_mach_o_bfd_link_hide_symbol): Likewise.
644 * mmo.c (mmo_bfd_link_hide_symbol): Likewise.
645 * pef.c (bfd_pef_bfd_link_hide_symbol): Likewise.
646 * plugin.c (bfd_plugin_bfd_link_hide_symbol): Likewise.
647 * ppcboot.c (ppcboot_bfd_link_hide_symbol): Likewise.
648 * som.c (som_bfd_link_hide_symbol): Likewise.
649 * srec.c (srec_bfd_link_hide_symbol): Likewise.
650 * tekhex.c (tekhex_bfd_link_hide_symbol): Likewise.
651 * vms-alpha.c (vms_bfd_link_hide_symbol): Likewise.
652 (alpha_vms_bfd_link_hide_symbol): Likewise.
653 * xsym.c (bfd_sym_bfd_link_hide_symbol): Likewise.
654 * coff64-rs6000.c (rs6000_xcoff64_vec): Add
655 _bfd_generic_link_hide_symbol.
656 (rs6000_xcoff64_aix_vec): Likewise.
657 * elflink.c (bfd_elf_record_link_assignment): Don't make forced
658 local symbol dynamic.
659 (_bfd_elf_link_hide_symbol): New function.
660 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
661 check root.ldscript_def.
662 * targets.c (bfd_target): Add _bfd_link_hide_symbol.
663 (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_link_hide_symbol.
664 * bfd-in2.h: Regenerated.
665 * libbfd.h: Likewise.
667 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
670 * elf.c (setup_group): Mark section in a section group with
673 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
676 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
677 set eh->local_ref to 1 if a symbol is versioned and there is a
680 2018-05-18 Kito Cheng <kito.cheng@gmail.com>
682 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Handle
685 2018-05-18 Jim Wilson <jimw@sifive.com>
687 * elfnn-riscv.c (allocate_dynrelocs): Discard dynamic relocations if
688 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
689 (riscv_elf_relocate_section): Don't generate dynamic relocation if
690 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
691 (riscv_elf_finish_dynamic_symbol): Likewise.
693 2018-05-18 John Darrington <john@darrington.wattle.id.au>
695 * Makefile.am: Add s12z files.
696 * Makefile.in: Regenerate.
697 * archures.c: Add bfd_s12z_arch.
698 * bfd-in.h: Add exports of bfd_putb24 and bfd_putl24.
699 * bfd-in2.h: Regenerate.
700 * config.bfd: Add s12z target.
701 * configure.ac: Add s12z target.
702 * configure: Regenerate.
703 * cpu-s12z.c: New file.
704 * elf32-s12z.c: New file.
705 * libbfd.c (bfd_putb24): New function.
706 (bfd_putl24): New function.
707 * libbfd.h: Regenerate.
708 * reloc.c: Add s12z relocations.
709 (bfd_get_reloc_size): Handle size 5 relocs.
710 * targets.c: Add s12z_elf32_vec.
712 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
715 * elf32-i386.c (elf_i386_relocate_section): Handle R_386_GOT32X
717 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
718 set eh->local_ref to 1 for linker defined symbols.
720 2018-05-18 Alan Modra <amodra@gmail.com>
723 * elf.c (setup_group): Formatting. Check that SHT_GROUP entries
724 don't point at other SHT_GROUP sections. Set shdr corresponding
725 to invalid entry, to NULL rather than section 0. Identify
726 SHT_GROUP section index when reporting an error. Cope with NULL
729 2018-05-18 Alan Modra <amodra@gmail.com>
731 * libbfd-in.h (ATTRIBUTE_HIDDEN): Define and use throughout.
732 * configure.ac (HAVE_HIDDEN): Check compiler support for hidden
734 * libbfd.h: Regenerate.
735 * configure: Regenerate.
736 * config.in: Regenerate.
738 2018-05-18 Alan Modra <amodra@gmail.com>
740 * libbfd-in.h: Add include guard.
741 * libcoff-in.h: Likewise.
742 * doc/Makefile.am (libbfd.h, libcoff.h): Append another #endif.
743 * doc/Makefile.in: Regenerate.
744 * libbfd.h: Regenerate.
745 * libcoff.h: Regenerate.
747 2018-05-16 Maciej W. Rozycki <macro@mips.com>
749 * elf32-nds32.c (nds32_convert_32_to_16): Preset `insn_type'.
751 2018-05-16 Alan Modra <amodra@gmail.com>
754 * format.c (struct bfd_preserve): Add section_id.
755 (bfd_preserve_save, bfd_preserve_restore): Save and restore
757 (bfd_reinit): Set _bfd_section_id.
758 (bfd_check_format_matches): Put all matches of any priority into
759 matching_vector. Save initial section id and start each attempted
760 match at that section id.
761 * libbfd-in.h (_bfd_section_id): Declare.
762 * section.c (_bfd_section_id): Rename from section_id and make
764 (bfd_get_next_section_id): Delete.
765 * elf64-ppc.c (ppc64_elf_setup_section_lists): Replace use of
766 bfd_get_section_id with _bfd_section_id.
767 * libbfd.h: Regenerate.
768 * bfd-in2.h: Regenerate.
770 2018-05-15 Christophe Guillon <christophe.guillon@st.com>
772 * coffcode.h (coff_bigobj_swap_aux_in): Make sure that all fields
773 of the aux structure are initialised.
775 2018-05-15 Francois H. Theron <francois.theron@netronome.com>
777 * targets.c: Wrap nfp_elf64_vec in BFD64 ifdef.
779 2018-05-15 Nick Clifton <nickc@redhat.com>
781 * po/pt.po: New Portuguese translation.
782 * configure.ac (ALL_LINGUAS): Add pt.
783 * configure: Regenerate.
785 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
788 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Don't issue
789 an error on IFUNC pointer defined in PDE.
790 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Call
791 _bfd_x86_elf_link_fixup_ifunc_symbol.
792 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
793 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): New
795 * elfxx-x86.h (_bfd_x86_elf_link_fixup_ifunc_symbol): New.
797 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
800 * elfxx-x86.c (elf_x86_linker_defined): New function.
801 (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start,
802 _end and _edata locally defined within executables.
804 2018-05-12 Alan Modra <amodra@gmail.com>
807 * elf.c (rewrite_elf_program_header): Use segment_mark only for
808 PT_LOAD headers. Delete first_matching_lma and first_suggested_lma.
809 Instead make matching_lma and suggested_lma pointers to the
810 sections. Align section vma and lma calculated from segment.
811 Don't clear includes_phdrs or includes_filehdr based on p_paddr
812 test. Try to handle alignment padding before first section by
813 adjusting new segment lma down. Adjust PT_PHDR map p_paddr.
815 2018-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
817 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Make LDI32 relocation
818 conformant to TI ABI.
819 (pru_elf32_relax_section): Likewise.
820 (pru_elf_relax_delete_bytes): Fix offsets for new LDI32 code.
821 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Ignore addend.
822 (pru_elf32_pmem_relocate): Trap - should not get here.
823 (pru_elf32_relocate_section): Add support for REL relocations.
824 (elf_info_to_howto_rel): Enable REL.
825 (elf_backend_may_use_rel_p): Likewise.
826 (elf_backend_may_use_rela_p): Likewise.
827 (elf_backend_default_use_rela_p): Likewise.
829 2018-05-09 Alan Modra <amodra@gmail.com>
832 * peXXigen.c (pe_print_edata): Correct minimum size.
834 2018-05-09 Alan Modra <amodra@gmail.com>
837 * peXXigen.c (pe_print_idata): Bound check hint_addr.
839 2018-05-08 Nick Clifton <nickc@redhat.com>
842 * elf.c (bfd_elf_get_str_section): Check for an excessively large
844 * elf-attrs.c (_bfd_elf_parse_attributes): Issue an error if the
845 attribute section is larger than the size of the file.
847 2018-05-07 Alan Modra <amodra@gmail.com>
849 * cofflink.c (_bfd_coff_link_input_bfd): Use memcmp rather than
850 strncmp when checking for ".bf" special symbol.
851 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Make pe_required_section_flags
852 section name a char array, remove sentinal known_sections entry,
853 and adjust loop over known_sections to suit. Use memcmp rather
856 2018-05-04 Alan Modra <amodra@gmail.com>
858 * elf-linux-core.h (struct elf_external_linux_prpsinfo32_ugid32),
859 (struct elf_external_linux_prpsinfo32_ugid16),
860 (struct elf_external_linux_prpsinfo64_ugid32),
861 (struct elf_external_linux_prpsinfo64_ugid16): Add ATTRIBUTE_NONSTRING
862 to pr_fname and pr_psargs fields. Remove GCC diagnostic pragmas.
864 * elf.c (elfcore_write_prpsinfo): ..here. Indent nested preprocessor
866 * elf32-arm.c (elf32_arm_nabi_write_core_note): Add ATTRIBUTE_NONSTRING
868 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
869 * elf32-s390.c (elf_s390_write_core_note): Likewise.
870 * elf64-s390.c (elf_s390_write_core_note): Likewise.
871 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
872 * elf64-x86-64.c (elf_x86_64_write_core_note): Add GCC diagnostic
874 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Use strnlen to avoid
875 false positive gcc-8 warning.
876 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
878 2018-05-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
880 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Fix the order
881 of arguments when warning about different long double types.
883 2018-05-03 Simon Atanasyan <simon@atanasyan.com>
885 * elf32-mips.c: (elf32_mips_fixup_symbol): New function.
886 (elf_backend_fixup_symbol): New macro.
887 * elfxx-mips.c: (mips_elf_output_extsym): Discard _gp_disp
889 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
891 2018-04-30 Francois H. Theron <francois.theron@netronome.com>
893 * Makefile.am: Added NFP files to build.
894 * archures.c: Added bfd_arch_nfp
895 * config.bfd: Added NFP support.
896 * configure.ac: Added NFP support.
897 * cpu-nfp.c: New, for NFP support.
898 * elf-bfd.h: Added elf_section_info()
899 * elf64-nfp.c: New, for NFP support.
900 * po/SRC-POTFILES.in: Added NFP source files.
901 * targets.c: Added nfp_elf64_vec
902 * bfd-in2.h: Regenerate.
903 * Makefile.in: Regenerate.
904 * configure: Regenerate.
906 2018-04-27 Alan Modra <amodra@gmail.com>
908 * bfd-in2.h: Regenerate.
909 * libbfd.h: Regenerate.
911 2018-04-27 Alan Modra <amodra@gmail.com>
915 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't drop plt
917 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Comment fixes.
919 2018-04-26 Pedro Alves <palves@redhat.com>
921 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't consider
922 ifunc and non-ifunc symbols duplicates.
924 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
925 Mickaël Guêné <mickael.guene@st.com>
927 * elf32-arm.c (elf32_arm_fdpic_thumb_plt_entry): New.
928 (elf32_arm_plt_needs_thumb_stub_p): Handle thumb-only case.
929 (elf32_arm_populate_plt_entry): Likewise.
930 (elf32_arm_output_plt_map_1): Likewise.
931 (elf32_arm_output_arch_local_syms): Likewise.
933 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
934 Mickaël Guêné <mickael.guene@st.com>
936 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Handle
937 _GLOBAL_OFFSET_TABLE_ in FDPIC mode.
939 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
940 Mickaël Guêné <mickael.guene@st.com>
942 * elf32-arm.c (bfd_elf32_arm_set_target_params): Handle FDPIC case
945 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
946 Mickaël Guêné <mickael.guene@st.com>
948 * elf32-arm.c (DEFAULT_STACK_SIZE): New.
949 (elf32_arm_always_size_sections): Create stack segment.
951 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
952 Mickaël Guêné <mickael.guene@st.com>
954 * bfd-in2.h (BFD_RELOC_ARM_TLS_GD32_FDPIC)
955 (BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC): New
957 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_TLS_GD32_FDPIC,
958 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC relocations.
959 (elf32_arm_reloc_map): Add R_ARM_TLS_GD32_FDPIC,
960 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC.
961 (struct elf32_arm_link_hash_table): Update comment.
962 (elf32_arm_final_link_relocate): Handle TLS FDPIC relocations.
963 (IS_ARM_TLS_RELOC): Likewise.
964 (elf32_arm_check_relocs): Likewise.
965 (allocate_dynrelocs_for_symbol): Likewise.
966 (elf32_arm_size_dynamic_sections): Update comment.
967 * reloc.c: Add BFD_RELOC_ARM_TLS_GD32_FDPIC,
968 BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC.
970 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
971 Mickaël Guêné <mickael.guene@st.com>
973 * elf32-arm.c (elf32_arm_fdpic_plt_entry): New.
974 (elf32_arm_create_dynamic_sections): Handle FDPIC.
975 (elf32_arm_allocate_plt_entry): Likewise.
976 (elf32_arm_populate_plt_entry): Likewise.
977 (elf32_arm_output_plt_map_1): Likewise.
979 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
980 Mickaël Guêné <mickael.guene@st.com>
982 * elf32-arm.c (struct fdpic_local): New.
983 (elf_arm_obj_tdata): Add local_fdpic_cnts field.
984 (elf32_arm_local_fdpic_cnts): New.
985 (struct fdpic_global): New.
986 (elf32_arm_link_hash_entry): Add fdpic_cnts field.
987 (elf32_arm_link_hash_table): Add srofixup field.
988 (arm_elf_add_rofixup): New.
989 (arm_elf_fill_funcdesc): New.
990 (elf32_arm_link_hash_newfunc): Handle fdpic_cnts.
991 (elf32_arm_allocate_local_sym_info): Likewise.
992 (create_got_section): Create .rofixup section.
993 (elf32_arm_copy_indirect_symbol): Handle fdpic_cnts.
994 (bfd_elf32_arm_set_target_params): Handle FDPIC.
995 (elf32_arm_final_link_relocate): Likewise.
996 (elf32_arm_check_relocs): Likewise.
997 (allocate_dynrelocs_for_symbol): Likewise.
998 (elf32_arm_size_dynamic_sections): Likewise.
999 (elf32_arm_finish_dynamic_sections): Likewise.
1000 (elf32_arm_output_arch_local_syms): Likewise.
1001 (elf32_arm_fdpic_omit_section_dynsym): New.
1003 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1004 Mickaël Guêné <mickael.guene@st.com>
1006 * bfd-in2.c (BFD_RELOC_ARM_GOTFUNCDESC)
1007 (BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC)
1008 (BFD_RELOC_ARM_FUNCDESC_VALUE): New.
1009 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_GOTFUNCDESC,
1010 R_ARM_GOTOFFFUNCDESC, R_ARM_FUNCDESC, R_ARM_FUNCDESC_VALUE.
1011 (elf32_arm_howto_from_type): Take new members of
1012 elf32_arm_howto_table_2 into account.
1013 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_GOTFUNCDESC,
1014 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
1015 BFD_RELOC_ARM_FUNCDESC_VALUE.
1016 * reloc.c: Add BFD_RELOC_ARM_GOTFUNCDESC,
1017 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
1018 BFD_RELOC_ARM_FUNCDESC_VALUE.
1020 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1021 Mickaël Guêné <mickael.guene@st.com>
1023 * elf32-arm.c (elf32_arm_print_private_bfd_data): Support
1024 EF_ARM_PIC and ELFOSABI_ARM_FDPIC.
1025 (elf32_arm_post_process_headers): Support ELFOSABI_ARM_FDPIC.
1026 (ELF_OSABI): Define to ELFOSABI_ARM_FDPIC.
1028 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1029 Mickaël Guêné <mickael.guene@st.com>
1031 * config.bfd (arm*-*-linux-*): Add arm_elf32_fdpic_be_vec and
1032 arm_elf32_fdpic_le_vec to targ_selvecs. Accept
1033 arm*-*-uclinuxfdpiceabi.
1034 * configure.ac: Add support for arm_elf32_fdpic_be_vec and
1035 arm_elf32_fdpic_le_vec.
1036 * configure: Regenerate.
1037 * elf32-arm.c (struct elf32_arm_link_hash_table): Add fdpic_p.
1038 (elf32_arm_link_hash_table_create): Initialize fdpic_p.
1039 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM)
1040 (TARGET_BIG_NAME, elf_match_priority): Define for FDPIC targets.
1041 (elf32_arm_fdpic_link_hash_table_create): New.
1042 * targets.c (_bfd_target_vector): Add arm_elf32_fdpic_be_vec and
1043 arm_elf32_fdpic_le_vec.
1045 2018-04-25 Alan Modra <amodra@gmail.com>
1047 * elf-linux-core.h: Disable gcc-8 string truncation warning.
1048 * elf.c (elfcore_write_prpsinfo): Likewise.
1050 2018-04-25 Alan Modra <amodra@gmail.com>
1052 * Makefile.am: Remove arm-aout and arm-coff support.
1053 * config.bfd: Likewise.
1054 * configure.ac: Likewise.
1055 * targets.c: Likewise.
1056 * aout-arm.c: Delete.
1057 * armnetbsd.c: Delete.
1059 * Makefile.in: Regenerate.
1060 * configure: Regenerate.
1061 * po/SRC-POTFILES.in: Regenerate.
1063 2018-04-24 Nick Clifton <nickc@redhat.com>
1066 * elf.c (ignore_section_sym): Check for the output_section pointer
1067 being NULL before dereferencing it.
1070 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check for
1071 a negative PE_DEBUG_DATA size before iterating over the debug data.
1073 2018-04-23 Alan Modra <amodra@gmail.com>
1075 * elf-linux-core.h: Revert last change.
1078 2018-04-23 Nick Clifton <nickc@redhat.com>
1081 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
1082 the end of the string table, and zero it.
1084 2018-04-23 Alan Modra <amodra@gmail.com>
1086 * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable
1087 gcc-8 string truncation warning.
1088 (swap_linux_prpsinfo32_ugid16_out): Likewise.
1089 (swap_linux_prpsinfo64_ugid32_out): Likewise.
1090 (swap_linux_prpsinfo64_ugid16_out): Likewise.
1091 * elf.c (elfcore_write_prpsinfo): Likewise.
1093 2018-04-23 Nick Clifton <nickc@redhat.com>
1096 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
1097 the end of the string table, and zero it.
1099 2018-04-20 Alan Modra <amodra@gmail.com>
1102 * elf32-hppa.c (got_relocs_needed): Add extra param to special
1103 case both dtprel and tprel relocs.
1104 (allocate_dynrelocs): Adjust conditions for got relocs.
1105 (elf32_hppa_relocate_section): Likewise for local sym got relocs.
1106 Emit dynamic relocs on TLS GOT entries for shared libraries,
1107 not when pic. Omit dynamic reloc on dtprel entry when local,
1108 and on tprel entry when local and executable.
1110 2018-04-19 Alan Modra <amodra@gmail.com>
1113 * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1.
1114 (hppa_type_of_stub): Don't return a long branch stub for
1115 symbols other than those defined statically.
1117 2018-04-19 Alan Modra <amodra@gmail.com>
1119 * Makefile.am: Revert 2018-04-18 coff-mips changes.
1120 * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec
1121 to selvecs for mips targets change 2018-04-18.
1122 * configure.ac: Reinstate mips_ecoff_le_vec, mips_ecoff_be_vec
1123 and mips_ecoff_bele_vec.
1124 * targets.c: Likewise.
1125 * coff-mips.c: Resurrect.
1126 * Makefile.in: Regenerate.
1127 * configure: Regenerate.
1128 * po/SRC-POTFILES.in: Regenerate.
1130 2018-04-18 Alan Modra <amodra@gmail.com>
1132 * Makefile.am: Remove mips aout and coff support.
1133 * config.bfd: Likewise.
1134 * configure.ac: Likewise.
1135 * targets.c: Likewise.
1136 * coff-mips.c: Delete
1139 * pei-mips.c: Delete
1140 * Makefile.in: Regenerate.
1141 * configure: Regenerate.
1142 * po/SRC-POTFILES.in: Regenerate.
1144 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
1146 * elf32-i386.c (elf32_bed): Define before including
1148 * elf64-x86-64.c (elf64_bed): Define before including
1150 (elf32_bed): Define before including "elf32-target.h".
1152 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
1155 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a
1156 normal input file with compatible relocation.
1158 2018-04-18 Alan Modra <amodra@gmail.com>
1160 * Makefile.am: Remove support for assorted i386 aout and coff targets.
1161 * config.bfd: Likewise.
1162 * configure.ac: Likewise.
1163 * doc/bfdint.texi: Likewise.
1164 * targets.c: Likewise.
1165 * freebsd.h: Delete.
1166 * i386dynix.c: Delete.
1167 * i386freebsd.c: Delete.
1168 * i386linux.c: Delete.
1169 * i386mach3.c: Delete.
1170 * i386netbsd.c: Delete.
1171 * i386os9k.c: Delete.
1172 * Makefile.in: Regenerate.
1173 * configure: Regenerate.
1174 * po/SRC-POTFILES.in: Regenerate.
1176 2018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com>
1178 Microblaze Target: PIC data text relative
1180 * bfd/reloc.c (2 new BFD relocations):
1181 BFD_RELOC_MICROBLAZE_64_TEXTPCREL &
1182 BFD_RELOC_MICROBLAZE_64_TEXTPCREL
1183 * bfd/bfd-in2.h: Regenerate
1184 * bfd/libbfd.h: Regenerate
1185 * bfd/elf32-microblaze.c (Handle new relocs): define 'HOWTO' of 3
1186 new relocs and handle them in both relocate and relax functions.
1187 (microblaze_elf_reloc_type_lookup): add mapping between for new
1189 (microblaze_elf_relocate_section): Handle new relocs in case of
1191 (microblaze_elf_relax_section): Handle new relocs for elf relaxation.
1193 2018-04-17 Nick Clifton <nickc@redhat.com>
1196 * aoutx.h (find_nearest_line): Check that the symbol name exists
1197 and is long enough, before attempting to see if it is for a .o
1199 * hash.c (bfd_hash_hash): Add an assertion that the string is not
1201 * linker.c (bfd_link_hash_lookup): Fail if the table or string are
1203 (_bfd_generic_link_add_archive_symbols): Fail if an archive entry
1207 * dwarf2.c (concat_filename): Check for a NULL table pointer.
1209 2018-04-16 Nick Clifton <nickc@redhat.com>
1212 * coffgen.c (coff_pointerize_aux): Check for an out of range
1215 2018-04-16 Alan Modra <amodra@gmail.com>
1217 * Makefile.am: Remove arm-epoc-pe support.
1218 * coff-arm.c: Likewise.
1219 * config.bfd: Likewise.
1220 * configure.ac: Likewise.
1221 * targets.c: Likewise.
1222 * epoc-pe-arm.c: Delete.
1223 * epoc-pei-arm.c: Delete.
1224 * Makefile.in: Regenerate.
1225 * configure: Regenerate.
1226 * po/SRC-POTFILES.in: Regenerate.
1228 2018-04-16 Alan Modra <amodra@gmail.com>
1230 * Makefile.am: Remove sparc-aout and sparc-coff support.
1231 * config.bfd: Likewise.
1232 * configure.ac: Likewise.
1233 * targets.c: Likewise.
1234 * aout-sparcle.c: Delete.
1236 * cf-sparclynx.c: Delete.
1237 * coff-sparc.c: Delete.
1239 * sparclinux.c: Delete.
1240 * sparclynx.c: Delete.
1241 * sparcnetbsd.c: Delete.
1243 * Makefile.in: Regenerate.
1244 * configure: Regenerate.
1245 * po/SRC-POTFILES.in: Regenerate.
1247 2018-04-16 Alan Modra <amodra@gmail.com>
1249 * Makefile.am: Remove m68k-aout and m68k-coff support.
1250 * aoutf1.h: Likewise.
1251 * aoutx.h: Likewise.
1252 * archive.c: Likewise.
1253 * bfd-in.h: Likewise.
1255 * coffcode.h: Likewise.
1256 * coffswap.h: Likewise.
1257 * config.bfd: Likewise.
1258 * configure.ac: Likewise.
1259 * configure.host: Likewise.
1260 * doc/bfd.texinfo: Likewise.
1261 * doc/bfdint.texi: Likewise.
1262 * freebsd.h: Likewise.
1263 * gen-aout.c: Likewise.
1264 * hpux-core.c: Likewise.
1265 * libaout.h: Likewise.
1266 * libbfd-in.h: Likewise.
1267 * pdp11.c: Likewise.
1268 * peicode.h: Likewise.
1269 * riscix.c: Likewise.
1270 * targets.c: Likewise.
1272 * coff-apollo.c: Delete.
1273 * coff-aux.c: Delete.
1274 * coff-m68k.c: Delete.
1275 * coff-svm68k.c: Delete.
1276 * coff-u68k.c: Delete.
1277 * hosts/delta68.h: Delete.
1278 * hosts/hp300bsd.h: Delete.
1279 * hosts/m68kaux.h: Delete.
1280 * hosts/news.h: Delete.
1281 * hp300bsd.c: Delete.
1282 * hp300hpux.c: Delete.
1283 * liboasys.h: Delete.
1284 * m68k4knetbsd.c: Delete.
1285 * m68klinux.c: Delete.
1286 * m68knetbsd.c: Delete.
1288 * versados.c: Delete.
1289 * Makefile.in: Regenerate.
1290 * bfd-in2.h: Regenerate.
1291 * configure: Regenerate.
1292 * libbfd.h: Regenerate.
1293 * po/SRC-POTFILES.in: Regenerate.
1295 2018-04-16 Alan Modra <amodra@gmail.com>
1297 * Makefile.am: Remove sh5 and sh64 support.
1298 * archures.c: Likewise.
1299 * config.bfd: Likewise.
1300 * configure.ac: Likewise.
1301 * cpu-sh.c: Likewise.
1302 * elf32-sh-relocs.h: Likewise.
1303 * elf32-sh.c: Likewise.
1304 * targets.c: Likewise.
1305 * elf32-sh64-com.c: Delete.
1306 * elf32-sh64.c: Delete.
1307 * elf32-sh64.h: Delete.
1308 * elf64-sh64.c: Delete.
1309 * Makefile.in: Regenerate.
1310 * bfd-in2.h: Regenerate.
1311 * configure: Regenerate.
1312 * po/SRC-POTFILES.in: Regenerate.
1314 2018-04-16 Alan Modra <amodra@gmail.com>
1316 * Makefile.am: Remove sh-symbianelf support.
1317 * config.bfd: Likewise.
1318 * configure.ac: Likewise.
1319 * targets.c: Likewise.
1320 * elf32-sh-symbian.c: Delete.
1321 * Makefile.in: Regenerate.
1322 * configure: Regenerate.
1323 * po/SRC-POTFILES.in: Regenerate.
1325 2018-04-16 Alan Modra <amodra@gmail.com>
1327 * Makefile.am: Remove vax-bsd and vax-ultrix support.
1328 * config.bfd: Likewise.
1329 * configure.ac: Likewise.
1330 * targets.c: Likewise.
1332 * Makefile.in: Regenerate.
1333 * configure: Regenerate.
1334 * po/SRC-POTFILES.in: Regenerate.
1336 2018-04-16 Alan Modra <amodra@gmail.com>
1338 * Makefile.am: Remove w65 support.
1339 * archures.c: Likewise.
1340 * coffcode.h: Likewise.
1341 * config.bfd: Likewise.
1342 * configure.ac: Likewise.
1343 * targets.c: Likewise.
1344 * coff-w65.c: Delete.
1345 * cpu-w65.c: Delete.
1346 * Makefile.in: Regenerate.
1347 * bfd-in2.h: Regenerate.
1348 * configure: Regenerate.
1349 * po/SRC-POTFILES.in: Regenerate.
1351 2018-04-16 Alan Modra <amodra@gmail.com>
1353 * Makefile.am: Remove we32k support.
1354 * archures.c: Likewise.
1355 * coffcode.h: Likewise.
1356 * config.bfd: Likewise.
1357 * configure.ac: Likewise.
1358 * targets.c: Likewise.
1359 * coff-we32k.c: Delete.
1360 * cpu-we32k.c: Delete.
1361 * Makefile.in: Regenerate.
1362 * bfd-in2.h: Regenerate.
1363 * configure: Regenerate.
1364 * po/SRC-POTFILES.in: Regenerate.
1366 2018-04-16 Alan Modra <amodra@gmail.com>
1368 * Makefile.am: Remove m88k support.
1369 * aoutx.h: Likewise.
1370 * archures.c: Likewise.
1371 * coffcode.h: Likewise.
1372 * coffswap.h: Likewise.
1373 * config.bfd: Likewise.
1374 * configure.ac: Likewise.
1375 * cpu-ns32k.c: Likewise.
1376 * elf32-nds32.c: Likewise.
1377 * mach-o.c: Likewise.
1378 * netbsd-core.c: Likewise.
1379 * reloc.c: Likewise.
1380 * targets.c: Likewise.
1381 * coff-m88k.c: Delete.
1382 * cpu-m88k.c: Delete.
1383 * elf32-m88k.c: Delete.
1384 * hosts/m88kmach3.h: Delete.
1385 * m88kmach3.c: Delete.
1386 * m88kopenbsd.c: Delete.
1387 * Makefile.in: Regenerate.
1388 * bfd-in2.h: Regenerate.
1389 * configure: Regenerate.
1390 * po/SRC-POTFILES.in: Regenerate.
1392 2018-04-16 Alan Modra <amodra@gmail.com>
1394 * Makefile.am: Remove i370 support.
1395 * archures.c: Likewise.
1396 * config.bfd: Likewise.
1397 * configure.ac: Likewise.
1398 * targets.c: Likewise.
1399 * cpu-i370.c: Delete.
1400 * elf32-i370.c: Delete.
1401 * Makefile.in: Regenerate.
1402 * bfd-in2.h: Regenerate.
1403 * configure: Regenerate.
1404 * po/SRC-POTFILES.in: Regenerate.
1406 2018-04-16 Alan Modra <amodra@gmail.com>
1408 * Makefile.am: Remove h8500 support.
1409 * archures.c: Likewise.
1410 * coffcode.h: Likewise.
1411 * config.bfd: Likewise.
1412 * configure.ac: Likewise.
1413 * targets.c: Likewise.
1414 * coff-h8500.c: Delete.
1415 * cpu-h8500.c: Delete.
1416 * Makefile.in: Regenerate.
1417 * bfd-in2.h: Regenerate.
1418 * configure: Regenerate.
1419 * po/SRC-POTFILES.in: Regenerate.
1421 2018-04-16 Alan Modra <amodra@gmail.com>
1423 * Makefile.am: Remove h8300-coff support.
1424 * coffcode.h: Likewise.
1425 * config.bfd: Likewise.
1426 * configure.ac: Likewise.
1427 * reloc16.c: Likewise.
1428 * targets.c: Likewise.
1429 * coff-h8300.c: Delete.
1430 * Makefile.in: Regenerate.
1431 * configure: Regenerate.
1432 * po/SRC-POTFILES.in: Regenerate.
1434 2018-04-16 Alan Modra <amodra@gmail.com>
1436 * Makefile.am: Remove IEEE 695 support.
1437 * archures.c: Likewise.
1439 * config.bfd: Likewise.
1440 * configure.ac: Likewise.
1441 * doc/bfd.texinfo: Likewise.
1442 * doc/bfdint.texi: Likewise.
1443 * doc/bfdsumm.texi: Likewise.
1444 * section.c: Likewise.
1445 * targets.c: Likewise.
1447 * libieee.h: Delete.
1448 * Makefile.in: Regenerate.
1449 * bfd-in2.h: Regenerate.
1450 * configure: Regenerate.
1451 * po/SRC-POTFILES.in: Regenerate.
1453 2018-04-16 Alan Modra <amodra@gmail.com>
1455 * config.bfd: Remove tandem support.
1457 2018-04-16 Alan Modra <amodra@gmail.com>
1459 * Makefile.am: Remove newsos3 support.
1460 * aoutx.h: Likewise.
1461 * config.bfd: Likewise.
1462 * configure.ac: Likewise.
1463 * targets.c: Likewise.
1464 * newsos3.c: Delete.
1465 * Makefile.in: Regenerate.
1466 * configure: Regenerate.
1467 * po/SRC-POTFILES.in: Regenerate.
1469 2018-04-16 Alan Modra <amodra@gmail.com>
1471 * Makefile.am: Remove netware support.
1472 * bfd-in.h: Likewise.
1474 * config.bfd: Likewise.
1475 * configure.ac: Likewise.
1476 * doc/bfdint.texi: Likewise.
1477 * ecoff.c: Likewise.
1478 * targets.c: Likewise.
1480 * nlm-target.h: Delete.
1482 * nlm32-alpha.c: Delete.
1483 * nlm32-i386.c: Delete.
1484 * nlm32-ppc.c: Delete.
1485 * nlm32-sparc.c: Delete.
1488 * nlmcode.h: Delete.
1489 * nlmswap.h: Delete.
1490 * Makefile.in: Regenerate.
1491 * bfd-in2.h: Regenerate.
1492 * configure: Regenerate.
1493 * po/SRC-POTFILES.in: Regenerate.
1495 2018-04-16 Alan Modra <amodra@gmail.com>
1497 * archures.c: Remove tahoe support.
1498 * config.bfd: Likewise.
1499 * configure.ac: Likewise.
1500 * hosts/tahoe.h: Delete.
1501 * bfd-in2.h: Regenerate.
1502 * configure: Regenerate.
1504 2018-04-14 Alan Modra <amodra@gmail.com>
1506 * elf-bfd.h (struct elf_backend_data): Add relropagesize.
1507 * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and
1509 (elfNN_bed): Init relropagesize.
1510 * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to
1511 select relropagesize.
1512 * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1513 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1514 (ELF_MINPAGESIZE): Don't define.
1515 * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1516 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1517 * bfd-in2.h: Regenerate.
1519 2018-04-14 Alan Modra <amodra@gmail.com>
1521 * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend
1522 on __QNXTARGET__ define.
1524 2018-04-14 Alan Modra <amodra@gmail.com>
1526 * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
1529 2018-04-11 Alan Modra <amodra@gmail.com>
1531 * aout-adobe.c: Delete.
1533 * coff-i860.c: Delete.
1534 * coff-i960.c: Delete.
1535 * cpu-i860.c: Delete.
1536 * cpu-i960.c: Delete.
1537 * elf32-i860.c: Delete.
1538 * elf32-i960.c: Delete.
1539 * hosts/i860mach3.h: Delete.
1540 * Makefile.am: Remove i860, i960, bout, and adobe support.
1541 * archures.c: Remove i860 and i960 support.
1542 * coffcode.h: Likewise.
1543 * reloc.c: Likewise.
1544 * aoutx.h: Comment updates.
1545 * archive.c: Remove BOUT and i960 support.
1546 * bfd.c: Remove BOUT support.
1547 * coffswap.h: Remove i960 support.
1548 * config.bfd: Remove i860, i960 and adobe targets.
1549 * configure.ac: Remove adode, bout, i860, i960, icoff targets.
1550 * targets.c: Likewise.
1551 * ieee.c: Remove i960 support.
1552 * mach-o.c: Remove i860 support.
1553 * Makefile.in: Regenerate.
1554 * bfd-in2.h: Regenerate.
1555 * configure: Regenerate.
1556 * libbfd.h: Regenerate.
1557 * po/SRC-POTFILES.in: Regenerate.
1559 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1561 * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer
1562 in the BFD symbol referred by the relocation.
1563 (mips_elf64_write_rela): Likewise.
1565 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1567 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an
1568 error for out-of-range `r_sym' values.
1570 2018-04-09 Alan Modra <amodra@gmail.com>
1572 * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field.
1573 (struct ppc_link_hash_table): Add can_convert_all_inline_plt.
1574 (ppc64_elf_check_relocs): Set has_pltcall.
1575 (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries.
1576 (ppc64_elf_inline_plt): New function.
1577 (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals.
1578 * elf64-ppc.h (ppc64_elf_inline_plt): Declare.
1579 * elf32-ppc.c (has_pltcall): Define.
1580 (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt.
1581 (ppc_elf_check_relocs): Set has_pltcall.
1582 (ppc_elf_inline_plt): New function.
1583 (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries.
1584 (ppc_elf_size_dynamic_sections): Likewise.
1585 * elf32-ppc.h (ppc_elf_inline_plt): Declare.
1587 2018-04-09 Alan Modra <amodra@gmail.com>
1589 * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos.
1590 (is_plt_seq_reloc): New function.
1591 (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs.
1592 (ppc_elf_tls_optimize): Handle inline plt call sequence.
1593 (ppc_elf_relax_section): Handle PLTCALL reloc.
1594 (ppc_elf_relocate_section): Nop out inline plt call sequence when
1596 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and
1597 R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE.
1598 (has_tls_get_addr_call): Correct comment.
1599 (is_branch_reloc): Add PLTCALL.
1600 (is_plt_seq_reloc): New function.
1601 (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set
1602 has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt
1603 entry for R_PPC64_PLTCALL.
1604 (ppc64_elf_tls_optimize): Handle inline plt call sequence.
1605 (ppc_type_of_stub): Handle PLTCALL reloc.
1606 (toc_adjusting_stub_needed): Likewise.
1607 (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL
1608 reloc insn. Nop out inline plt call sequence when resolving
1609 locally. Handle __tls_get_addr inline plt call optimization.
1611 2018-04-09 Alan Modra <amodra@gmail.com>
1613 * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define.
1614 (struct ppc_stub_hash_entry): Add symtype field.
1616 (struct ppc_link_hash_table): Add pltlocal and relpltlocal.
1617 (create_linkage_sections): Create pltlocal and relpltlocal.
1618 (ppc64_elf_check_relocs): Allow PLT relocs on local symbols.
1620 (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1621 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1622 (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1623 Keep PLT entries for inline calls against locals.
1624 (ppc_build_one_stub): Use pltlocal as appropriate.
1625 (ppc_size_one_stub): Likewise.
1626 (ppc64_elf_size_stubs): Set symtype.
1627 (build_global_entry_stubs_and_plt): Init pltlocal and write
1628 relpltlocal for globals.
1629 (write_plt_relocs_for_local_syms): Likewise for local syms.
1630 (ppc64_elf_relocate_section): Support PLT for local syms.
1631 * elf32-ppc.c (PLT_KEEP): Define.
1632 (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal.
1633 (ppc_elf_create_glink): Create pltlocal and relpltlocal.
1634 (ppc_elf_check_relocs): Allow PLT relocs on local symbols.
1635 Set PLT_KEEP. Adjust update_local_sym_info call.
1636 (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1637 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1638 (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1639 (ppc_elf_relocate_section): Support PLT16 relocs for local syms.
1640 (write_global_sym_plt): Init pltlocal and write relpltlocal.
1641 (ppc_finish_symbols): Likewise for locals.
1643 2018-04-09 Alan Modra <amodra@gmail.com>
1645 * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs
1646 for local symbols to..
1647 (write_plt_relocs_for_local_syms): ..here. New function.
1648 (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for
1650 (build_global_entry_stubs_and_plt): ..here. Rename from
1651 build_global_entry_stubs.
1652 (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt.
1653 Call write_plt_relocs_for_local_syms.
1654 * elf32-ppc.c (get_sym_h): New function.
1655 (ppc_elf_relax_section): Use get_sym_h.
1656 (ppc_elf_relocate_section): Move output of PLT relocs and glink
1657 stubs for local symbols to..
1658 (ppc_finish_symbols): ..here. New function.
1659 (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for
1661 (write_global_sym_plt): ..here. New function.
1662 * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute.
1663 (ppc_finish_symbols): Declare.
1665 2018-04-09 Alan Modra <amodra@gmail.com>
1667 * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs.
1668 (ppc_elf_relocate_section): Likewise.
1669 * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS.
1670 (ppc64_elf_relocate_section): Likewise. Correct PLT16
1671 resolution to plt entry relative to toc pointer.
1673 2018-04-09 Alan Modra <amodra@gmail.com>
1675 * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1676 TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout
1677 file when other TLS flags are tested in a mask.
1678 (TLS_MARK, NON_GOT): Define.
1679 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1680 (update_local_sym_info): Don't create got entry when NON_GOT.
1681 (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1683 (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK.
1684 (ppc64_elf_relocate_section): Likewise.
1685 (ppc64_elf_tls_optimize): Don't attempt to optimize indirect
1686 __tls_get_addr calls lacking a marker reloc.
1687 * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1688 TLS_TPRELGD): Renumber. Update comment.
1689 (TLS_MARK, NON_GOT): Define.
1690 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1691 (update_local_sym_info): Don't create got entry when NON_GOT.
1692 (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1694 (ppc_elf_tls_optimize): Don't attempt to optimize indirect
1695 __tls_get_addr calls lacking a marker reloc.
1697 2018-04-06 H.J. Lu <hongjiu.lu@intel.com>
1699 * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out
1700 R_X86_64_converted_reloc_bit.
1702 2018-04-05 H.J. Lu <hongjiu.lu@intel.com>
1705 * configure: Regenerated.
1707 2018-04-05 Alan Modra <amodra@gmail.com>
1709 * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
1710 (elf_hppa_info_to_howto_rel): Likewise.
1712 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1714 * elf-hppa.h (elf_hppa_info_to_howto): Also return
1715 unsuccessfully for unimplemented relocations.
1716 (elf_hppa_info_to_howto_rel): Likewise.
1718 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1720 * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the
1721 `bfd_error_bad_value' error and call `_bfd_error_handler' on a
1722 howto lookup failure.
1723 (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call
1725 (elf32_i860_info_to_howto_rela): Likewise.
1726 (elf32_i860_relocate_splitn): Likewise.
1727 (elf32_i860_relocate_pc16): Likewise.
1728 (elf32_i860_relocate_pc26): Likewise.
1729 (elf32_i860_relocate_section): Likewise.
1731 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1733 * elf32-visium.c (visium_info_to_howto_rela): Correct the range
1734 check for `visium_elf_howto_table' table access.
1736 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1738 * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range
1739 check for `iq2000_elf_howto_table' table access.
1741 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1743 * elf32-frv.c (frv_info_to_howto_rela): Correct the range check
1744 for `elf32_frv_howto_table' table access.
1746 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1748 * elf32-mips.c (mips_elf32_rtype_to_howto): Also return
1749 unsuccessfully for placeholder howtos.
1750 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
1751 * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise.
1753 2018-03-29 Maciej W. Rozycki <macro@mips.com>
1755 * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to
1756 `_bfd_error_handler' and to set the `bfd_error_bad_value' error.
1758 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1760 * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
1761 ATTRIBUTE_UNUSED from `abfd'.
1763 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1765 * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct
1766 `_bfd_error_handler' call formatting.
1768 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1770 * elf32-mips.c (mips_info_to_howto_rel): Call
1771 `mips_elf32_rtype_to_howto' directly rather than via
1772 `->elf_backend_mips_rtype_to_howto'.
1774 2018-03-28 Renlin Li <renlin.li@arm.com>
1777 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for
1778 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1779 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1780 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1781 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1782 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1783 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1784 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1785 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1786 (elfNN_aarch64_final_link_relocate): Support new relocations.
1787 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new
1789 (_bfd_aarch64_elf_resolve_relocation): Support new relocations.
1791 2018-03-28 Renlin Li <renlin.li@arm.com>
1794 * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12
1795 BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC,
1796 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1797 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1798 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1799 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1800 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1801 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1802 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1803 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1804 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for
1805 TLSLE_LDST16_TPREL_LO12,
1806 TLSLE_LDST16_TPREL_LO12_NC,
1807 TLSLE_LDST32_TPREL_LO12,
1808 TLSLE_LDST32_TPREL_LO12_NC,
1809 TLSLE_LDST64_TPREL_LO12,
1810 TLSLE_LDST64_TPREL_LO12_NC,
1811 TLSLE_LDST8_TPREL_LO12,
1812 TLSLE_LDST8_TPREL_LO12_NC.
1813 * bfd-in2.h: Regenerated.
1814 * libbfd.h: Regenerated.
1816 2018-03-28 Eric Botcazou <ebotcazou@adacore.com>
1819 * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
1820 has_old_style_got_reloc.
1821 (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
1822 relocations. Fix a couple of long lines.
1823 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
1824 a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style
1827 2018-03-25 H.J. Lu <hongjiu.lu@intel.com>
1830 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
1831 ENDBR64 to the TLSDESC PLT entry.
1833 2018-03-21 Alan Modra <amodra@gmail.com>
1835 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting
1836 symbols. Use size_t counts. Delete redundant opd test.
1838 2018-03-21 Alan Modra <amodra@gmail.com>
1840 * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms.
1842 2018-03-21 Alan Modra <amodra@gmail.com>
1844 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask
1846 (update_local_sym_info): Likewise for local_got_tls_masks.
1847 (ppc_elf_tls_optimize): Likewise for lgot_masks.
1849 2018-03-21 Alan Modra <amodra@gmail.com>
1851 * elf64-ppc.c (ppc_size_one_stub): Fix comment typo.
1852 (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we
1853 do in size_dynamic_sections.
1855 2018-03-21 Alan Modra <amodra@gmail.com>
1857 * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1]
1858 without first checking array bounds.
1859 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1861 2018-03-20 H.J. Lu <hongjiu.lu@intel.com>
1864 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
1865 non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.
1867 2018-03-19 Nick Clifton <nickc@redhat.com>
1869 * po/es.po: Updated Spanish translation.
1871 2018-03-15 Max Filippov <jcmvbkbc@gmail.com>
1873 * elf32-xtensa.c (xlate_map_entry): Change types of address
1874 fields from 'unsigned' to 'bfd_vma'.
1875 (xlate_offset_with_removed_text): Use struct xlate_map_entry as
1876 the key argument to bsearch. Allow offsets past the end of a
1877 section, use the last map entry for translation of such offsets.
1879 2018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1881 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed.
1882 Not support the target feature.
1883 (nds32_elf_ex9_itb_base): Likewise.
1884 (nds32_elf_ex9_import_table): Likewise.
1885 (nds32_elf_ex9_finish): Likewise.
1886 (nds32_elf_ex9_reloc_jmp): Likewise.
1887 (nds32_elf_get_insn_with_reg): Likewise.
1888 (nds32_get_local_syms): Likewise.
1889 (nds32_elf_ex9_replace_instruction): Likewise.
1890 (nds32_elf_ifc_calc): Likewise.
1891 (nds32_elf_ifc_finish): Likewise.
1892 (nds32_elf_ifc_replace): Likewise.
1893 (nds32_elf_ifc_reloc): Likewise.
1895 2018-03-14 Alan Modra <amodra@gmail.com>
1897 * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
1898 sfpr size added before defining alias symbols.
1899 (ppc64_elf_build_stubs): Add stub section padding before
1900 copying sfpr contents and defining save/restore alias symbols.
1902 2018-03-14 H.J. Lu <hongjiu.lu@intel.com>
1905 * elflink.c (elf_gc_mark_debug_section): Also check the local
1906 debug definition section.
1908 2018-03-13 Nick Clifton <nickc@redhat.com>
1911 * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean
1912 function. Add an end address parameter. Check access of the data
1913 pointer to make sure that they do not extend beyond the end
1914 address. Return FALSE if any check fails. Add the end address
1915 pointer to the ui structure.
1916 (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind
1917 codes to make sure that they do not extend beyond the end address
1918 pointer. Print an error message and return immediately if any
1921 2018-03-09 Nick Clifton <nickc@redhat.com>
1923 * elf64-s390.c (elf_s390_relocate_section): Move check for
1924 relocations against non-allocated sections to before the code that
1925 handles ifunc relocations.
1926 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1927 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat
1928 relocs against IFUNC symbols in non-allocated sections as relocs
1929 against FUNC symbols.
1930 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1932 2018-03-08 H.J. Lu <hongjiu.lu@intel.com>
1935 * elf32-i386.c (elf_i386_relocate_section): Treat relocation
1936 against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as
1937 relocation against FUNC symbol.
1938 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1940 2018-03-07 Renlin Li <renlin.li@arm.com>
1943 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute
1944 symbol, and don't emit relocation in specific case.
1946 2018-03-07 Alan Modra <amodra@gmail.com>
1948 * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error.
1949 (mips_elf64_slurp_one_reloc_table): Pass on error.
1951 2018-03-03 James Cowgill <james.cowgill@mips.com>
1952 Maciej W. Rozycki <macro@mips.com>
1955 * elfxx-mips.c (mips_elf_calculate_relocation): Only return
1956 after calling `undefined_symbol' hook if this is an error
1957 condition. Assume the value of 0 for the symbol requested
1960 2018-03-02 Jim Wilson <jimw@sifive.com>
1963 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch
1964 and nop instead of 4.
1965 (elfNN_arch64_build_stubs): Add nop after branch. Increase size by
1968 2018-03-01 Jim Wilson <jimw@sifive.com>
1971 * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use
1972 else if instead of if.
1974 2018-03-01 Alan Modra <amodra@gmail.com>
1976 * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
1978 2018-02-28 Alan Modra <amodra@gmail.com>
1981 * aoutx.h (swap_std_reloc_in): Correct r_index bound check.
1983 2018-02-28 Nick Clifton <nickc@redhat.com>
1987 * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block
1988 pointer. Drop unused abfd parameter. Check the size of the block
1989 before initialising the data field. Return the end pointer if the
1991 (read_attribute_value): Adjust invocations of read_n_bytes.
1994 * dwarf1.c (parse_die): Check the length of form blocks before
1995 advancing the data pointer.
1997 2018-02-28 Alan Modra <amodra@gmail.com>
2000 * aoutx.h (translate_symbol_table): Print an error message and set
2001 bfd_error on finding an invalid name string offset.
2003 2018-02-27 H.J. Lu <hongjiu.lu@intel.com>
2005 * config.in: Regenerated.
2006 * configure: Likewise.
2007 * configure.ac: Add --enable-separate-code.
2008 (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default
2009 to 1 for Linux/x86 targets,
2010 * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if
2011 DEFAULT_LD_Z_SEPARATE_CODE is 1.
2013 2018-02-27 Nick Clifton <nickc@redhat.com>
2015 * aout-cris.c (swap_ext_reloc_out): Standadize error/warning
2017 * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise.
2018 * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise.
2019 * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise.
2020 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise.
2021 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
2022 * elf64-sh64.c (sh_elf64_info_to_howto): Likewise.
2023 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
2024 * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise.
2025 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
2028 * elf-bfd.h (struct elf_backend_data): Change the return type of
2029 the elf_info_to_howto and elf_info_to_howto_rel function pointers
2031 * elfcode.h (elf_slurp_reloc_table_from_section): Check the return
2032 value from the info_to_howto function and fail if that function
2034 * elf32-h8300.c (elf32_h8_relocate_section): Check return value
2035 from the info_to_howto function.
2036 (elf32_h8_relax_section): Likewise.
2037 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
2038 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
2039 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
2040 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
2041 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
2042 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
2043 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise.
2044 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
2045 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
2046 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
2047 (riscv_elf_relocate_section): Likewise.
2048 * elf-hppa.h (elf_hppa_info_to_howto): Change return type to
2049 bfd_boolean. Issue an error message, set an error value and
2050 return FALSE if the reloc is not recognized.
2051 (elf_hppa_info_to_howto_rel): Likewise.
2052 * elf-m10200.c (mn10200_info_to_howto): Likewise.
2053 * elf-m10300.c (mn10300_info_to_howto): Likewise.
2054 * elf.c (_bfd_elf_no_info_to_howto): Likewise.
2055 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
2056 * elf32-arm.c (elf32_arm_info_to_howto): Likewise.
2057 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
2058 * elf32-bfin.c (bfin_info_to_howto): Likewise.
2059 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
2060 * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise.
2061 * elf32-cris.c (elf_cr16c_info_to_howto_rel)
2062 (cris_info_to_howto_rela): Likewise.
2063 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
2064 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
2065 * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela):
2067 * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto)
2068 (elf32_dlx_info_to_howto_rel): Likewise.
2069 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
2070 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
2071 * elf32-frv.c (frv_info_to_howto_rela)
2072 (frvfdpic_info_to_howto_rel): Likewise.
2073 * elf32-ft32.c (ft32_info_to_howto_rela): Likewise.
2074 * elf32-gen.c (elf_generic_info_to_howto)
2075 (elf_generic_info_to_howto_rel): Likewise.
2076 * elf32-h8300.c (elf32_h8_info_to_howto)
2077 (elf32_h8_info_to_howto_rel): Likewise.
2078 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
2079 * elf32-i386.c (elf_i386_reloc_type_lookup)
2080 (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise.
2081 * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela):
2083 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
2084 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
2085 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
2086 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
2087 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
2088 * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto):
2090 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
2091 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
2092 * elf32-m68k.c (rtype_to_howto): Likewise.
2093 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
2094 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
2095 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
2096 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
2097 * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
2099 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
2100 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
2101 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
2102 * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto):
2104 * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise.
2105 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
2106 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
2107 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
2108 * elf32-pru.c (pru_elf32_info_to_howto): Likewise.
2109 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
2110 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
2111 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
2112 * elf32-score.c (s3_bfd_score_info_to_howto)
2113 (_bfd_score_info_to_howto): Likewise.
2114 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
2115 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
2116 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
2117 * elf32-tic6x.c (elf32_tic6x_info_to_howto)
2118 (elf32_tic6x_info_to_howto_rel): Likewise.
2119 * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise.
2120 * elf32-v850.c (v850_elf_info_to_howto_rel)
2121 (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise.
2122 * elf32-vax.c (rtype_to_howto): Likewise.
2123 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
2124 * elf32-wasm32.c (elf32_wasm32_rtype_to_howto)
2125 (elf32_wasm32_info_to_howto_rela): Likewise.
2126 * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise.
2127 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
2128 * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise.
2129 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
2130 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
2131 * elf64-gen.c (elf_generic_info_to_howto)
2132 (elf_generic_info_to_howto_rel): Likewise.
2133 * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise.
2134 * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise.
2135 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
2136 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
2137 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
2138 * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto):
2140 * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise.
2141 * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
2143 * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise.
2144 * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise.
2145 * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise.
2146 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
2147 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise.
2148 * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise.
2149 * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype.
2150 * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype.
2151 * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype.
2152 * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel):
2155 2018-02-26 Jim Wilson <jimw@sifive.com>
2156 Stephan Schreiber <info@fs-driver.org>
2159 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
2160 call, set changed_contents and changed_relocs. Likewise after
2161 successful ia64_elf_relax_br call.
2163 2018-02-26 Alan Modra <amodra@gmail.com>
2165 * elf.c (assign_file_positions_except_relocs): Don't segfault
2166 when actual number of phdrs is less than allocated. Delete
2167 outdated comment. Formatting.
2169 2018-02-26 Alan Modra <amodra@gmail.com>
2171 * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
2172 * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
2173 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
2174 * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
2175 * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
2176 * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
2177 * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
2178 * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
2179 * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
2180 * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
2181 error/warning messages.
2183 2018-02-26 Alan Modra <amodra@gmail.com>
2185 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
2186 * syms.c: Standardize error/warning messages.
2188 2018-02-26 Alan Modra <amodra@gmail.com>
2190 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c,
2191 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c,
2192 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c,
2193 * peXXigen.c, * peicode.h: Standardize error/warning messages.
2195 2018-02-26 Alan Modra <amodra@gmail.com>
2197 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
2199 2018-02-26 Alan Modra <amodra@gmail.com>
2201 * elfxx-mips.c: Standardize error/warning messages.
2203 2018-02-26 Alan Modra <amodra@gmail.com>
2205 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c,
2206 * elflink.c: Standardize error/warning messages. Replace use of
2207 linker callback einfo with _bfd_error_handler when possible.
2209 2018-02-26 Alan Modra <amodra@gmail.com>
2211 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c,
2212 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
2213 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c,
2214 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c,
2215 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
2216 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
2217 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c,
2218 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
2219 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
2220 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
2221 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
2222 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c,
2223 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c,
2224 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
2225 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
2226 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c,
2227 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
2228 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
2229 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
2230 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h,
2231 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize
2232 unrecognized/unsupported reloc message.
2234 2018-02-26 Alan Modra <amodra@gmail.com>
2236 * elf32-ppc.c: Standardize error/warning messages. Use
2237 _bfd_error_handler rather than einfo when einfo features not used.
2238 * elf64-ppc.c: Likewise.
2240 2018-02-23 Alan Modra <amodra@gmail.com>
2243 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO
2244 segment if no matching LOAD segment.
2246 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
2248 * elf32-nds32.h: Define mask for ict_model.
2250 2018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
2252 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
2254 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2257 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
2259 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
2260 .reginfo section has wrong size.
2262 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2264 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
2265 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and
2266 `.MIPS.abiflags' sections.
2267 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo'
2270 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2272 * section.c (SEC_FIXED_SIZE): New macro.
2273 * bfd-in2.h: Regenerate.
2275 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2277 * section.c (SEC_HAS_GOT_REF): Remove macro.
2278 * bfd-in2.h: Regenerate.
2280 2018-02-19 Alan Modra <amodra@gmail.com>
2282 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
2284 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
2285 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
2286 (_bfd_riscv_relax_pc): Likewise and fix typos.
2287 * libbfd-in.h (_bfd_error_handler): Add attribute printf.
2288 * libbfd.h: Regenerate.
2290 2018-02-19 Alan Modra <amodra@gmail.com>
2292 * dwarf2.c (read_section): Don't use 'll' format modifier.
2293 (find_abstract_instance): Likewise.
2294 * elfcore.h (elf_core_file_p): Likewise.
2296 2018-02-19 Alan Modra <amodra@gmail.com>
2298 * bfd-in.h: Include inttypes.h or if not available define
2299 PRId64, PRIu64 and PRIx64.
2300 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
2301 modifier to print bfd_vma.
2302 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
2303 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
2304 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
2305 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
2306 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
2307 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
2308 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
2309 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
2310 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
2311 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
2312 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
2313 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
2314 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
2315 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
2316 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
2317 and cast input to uint64_t, and similarly for Ld and Lu.
2318 * bfd-in2.h: Regenerate.
2320 2018-02-19 Alan Modra <amodra@gmail.com>
2322 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c,
2323 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c,
2324 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c,
2325 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c,
2326 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c,
2327 * reloc.c: Replace use of %R and %T in format strings passed to
2328 einfo and friends by %pR and %pT.
2330 2018-02-19 Alan Modra <amodra@gmail.com>
2332 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place
2334 * aout-adobe.c: Update all messages using %A and %B.
2335 * aout-cris.c: Likewise.
2336 * aoutx.h: Likewise.
2337 * archive.c: Likewise.
2338 * binary.c: Likewise.
2339 * cache.c: Likewise.
2340 * coff-alpha.c: Likewise.
2341 * coff-arm.c: Likewise.
2342 * coff-i860.c: Likewise.
2343 * coff-mcore.c: Likewise.
2344 * coff-ppc.c: Likewise.
2345 * coff-rs6000.c: Likewise.
2346 * coff-sh.c: Likewise.
2347 * coff-tic4x.c: Likewise.
2348 * coff-tic54x.c: Likewise.
2349 * coff-tic80.c: Likewise.
2350 * coff64-rs6000.c: Likewise.
2351 * coffcode.h: Likewise.
2352 * coffgen.c: Likewise.
2353 * cofflink.c: Likewise.
2354 * coffswap.h: Likewise.
2355 * compress.c: Likewise.
2356 * cpu-arm.c: Likewise.
2357 * ecoff.c: Likewise.
2358 * elf-attrs.c: Likewise.
2359 * elf-eh-frame.c: Likewise.
2360 * elf-ifunc.c: Likewise.
2361 * elf-m10300.c: Likewise.
2362 * elf-properties.c: Likewise.
2363 * elf-s390-common.c: Likewise.
2365 * elf32-arc.c: Likewise.
2366 * elf32-arm.c: Likewise.
2367 * elf32-avr.c: Likewise.
2368 * elf32-bfin.c: Likewise.
2369 * elf32-cr16.c: Likewise.
2370 * elf32-cr16c.c: Likewise.
2371 * elf32-cris.c: Likewise.
2372 * elf32-crx.c: Likewise.
2373 * elf32-d10v.c: Likewise.
2374 * elf32-d30v.c: Likewise.
2375 * elf32-epiphany.c: Likewise.
2376 * elf32-fr30.c: Likewise.
2377 * elf32-frv.c: Likewise.
2378 * elf32-gen.c: Likewise.
2379 * elf32-hppa.c: Likewise.
2380 * elf32-i370.c: Likewise.
2381 * elf32-i386.c: Likewise.
2382 * elf32-i960.c: Likewise.
2383 * elf32-ip2k.c: Likewise.
2384 * elf32-iq2000.c: Likewise.
2385 * elf32-lm32.c: Likewise.
2386 * elf32-m32c.c: Likewise.
2387 * elf32-m32r.c: Likewise.
2388 * elf32-m68hc11.c: Likewise.
2389 * elf32-m68hc12.c: Likewise.
2390 * elf32-m68hc1x.c: Likewise.
2391 * elf32-m68k.c: Likewise.
2392 * elf32-mcore.c: Likewise.
2393 * elf32-mep.c: Likewise.
2394 * elf32-metag.c: Likewise.
2395 * elf32-microblaze.c: Likewise.
2396 * elf32-moxie.c: Likewise.
2397 * elf32-msp430.c: Likewise.
2398 * elf32-mt.c: Likewise.
2399 * elf32-nds32.c: Likewise.
2400 * elf32-nios2.c: Likewise.
2401 * elf32-or1k.c: Likewise.
2402 * elf32-pj.c: Likewise.
2403 * elf32-ppc.c: Likewise.
2404 * elf32-rl78.c: Likewise.
2405 * elf32-rx.c: Likewise.
2406 * elf32-s390.c: Likewise.
2407 * elf32-score.c: Likewise.
2408 * elf32-score7.c: Likewise.
2409 * elf32-sh-symbian.c: Likewise.
2410 * elf32-sh.c: Likewise.
2411 * elf32-sh64.c: Likewise.
2412 * elf32-sparc.c: Likewise.
2413 * elf32-spu.c: Likewise.
2414 * elf32-tic6x.c: Likewise.
2415 * elf32-tilepro.c: Likewise.
2416 * elf32-v850.c: Likewise.
2417 * elf32-vax.c: Likewise.
2418 * elf32-visium.c: Likewise.
2419 * elf32-wasm32.c: Likewise.
2420 * elf32-xgate.c: Likewise.
2421 * elf32-xtensa.c: Likewise.
2422 * elf64-alpha.c: Likewise.
2423 * elf64-gen.c: Likewise.
2424 * elf64-hppa.c: Likewise.
2425 * elf64-ia64-vms.c: Likewise.
2426 * elf64-mmix.c: Likewise.
2427 * elf64-ppc.c: Likewise.
2428 * elf64-s390.c: Likewise.
2429 * elf64-sh64.c: Likewise.
2430 * elf64-sparc.c: Likewise.
2431 * elf64-x86-64.c: Likewise.
2432 * elfcode.h: Likewise.
2433 * elfcore.h: Likewise.
2434 * elflink.c: Likewise.
2435 * elfnn-aarch64.c: Likewise.
2436 * elfnn-ia64.c: Likewise.
2437 * elfnn-riscv.c: Likewise.
2438 * elfxx-mips.c: Likewise.
2439 * elfxx-sparc.c: Likewise.
2440 * elfxx-tilegx.c: Likewise.
2441 * elfxx-x86.c: Likewise.
2442 * hpux-core.c: Likewise.
2445 * libbfd.c: Likewise.
2446 * linker.c: Likewise.
2447 * mach-o.c: Likewise.
2448 * merge.c: Likewise.
2450 * oasys.c: Likewise.
2451 * pdp11.c: Likewise.
2452 * pe-mips.c: Likewise.
2453 * peXXigen.c: Likewise.
2454 * peicode.h: Likewise.
2455 * reloc.c: Likewise.
2456 * rs6000-core.c: Likewise.
2458 * stabs.c: Likewise.
2459 * vms-alpha.c: Likewise.
2460 * xcofflink.c: Likewise.
2462 2018-02-19 Alan Modra <amodra@gmail.com>
2465 * elf.c (IS_TBSS): Define.
2466 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
2467 (assign_file_positions_for_non_load_sections): Revert last change.
2468 Properly calculate load segment limits to compare against relro limits.
2470 2018-02-17 Alan Modra <amodra@gmail.com>
2473 * elf.c (assign_file_positions_for_non_load_sections): Ignore
2474 degenerate zero size PT_LOAD segments when finding one overlapping
2475 the PT_GNU_RELRO segment.
2477 2018-02-16 Alan Modra <amodra@gmail.com>
2479 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
2480 (_bfd_bool_bfd_true): Rename from bfd_true.
2481 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
2482 (_bfd_int_bfd_0): Rename from bfd_0.
2483 (_bfd_uint_bfd_0): Rename from bfd_0u.
2484 (_bfd_long_bfd_0): Rename from bfd_0l.
2485 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
2486 (_bfd_void_bfd): Rename from bfd_void.
2487 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
2488 (_bfd_bool_bfd_link_false_error),
2489 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
2490 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
2491 (_bfd_bool_bfd_asection_bfd_asection_true),
2492 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
2493 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
2494 * archive.c (_bfd_noarchive_get_elt_at_index),
2495 (_bfd_noarchive_openr_next_archived_file),
2496 (_bfd_noarchive_construct_extended_name_table),
2497 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
2498 (_bfd_noarchive_write_armap): New functions.
2499 * archures.c (_bfd_nowrite_set_arch_mach): New function.
2500 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
2501 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
2502 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
2503 (alpha_ecoff_swap_coff_lineno_out),
2504 (alpha_ecoff_swap_coff_reloc_out): New functions.
2505 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
2506 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
2507 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
2508 (mips_ecoff_swap_coff_lineno_out),
2509 (mips_ecoff_swap_coff_reloc_out): New functions.
2510 * coffcode.h (coff_set_alignment_hook): Replace define with
2512 (symname_in_debug_hook): Likewise.
2513 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
2514 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
2515 * elf.c (assign_file_positions_except_relocs): Test
2516 elf_backend_allow_non_load_phdr for NULL.
2517 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
2518 _bfd_elf_link_omit_section_dynsym. Update uses.
2519 (_bfd_elf_omit_section_dynsym_all): New function.
2520 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
2521 (_bfd_elf_omit_section_dynsym_default): Declare.
2522 (_bfd_elf_omit_section_dynsym_all): Declare.
2523 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
2524 (_bfd_nolink_bfd_get_relocated_section_contents),
2525 (_bfd_nolink_bfd_lookup_section_flags),
2526 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
2527 (_bfd_nolink_bfd_link_hash_table_create),
2528 (_bfd_nolink_bfd_link_just_syms),
2529 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
2530 (_bfd_nolink_bfd_link_split_section),
2531 (_bfd_nolink_section_already_linked),
2532 (_bfd_nolink_bfd_define_common_symbol),
2533 (_bfd_nolink_bfd_define_start_stop): New functions.
2534 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
2535 (_bfd_norelocs_bfd_reloc_name_lookup),
2536 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
2537 * section.c (_bfd_nowrite_set_section_contents): New function.
2538 * syms.c (_bfd_nosymbols_canonicalize_symtab),
2539 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
2540 (_bfd_nosymbols_get_symbol_version_string),
2541 (_bfd_nosymbols_bfd_is_local_label_name),
2542 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
2543 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
2544 (_bfd_nosymbols_bfd_make_debug_symbol),
2545 ( _bfd_nosymbols_read_minisymbols),
2546 ( _bfd_nosymbols_minisymbol_to_symbol),
2547 (_bfd_nodynamic_get_synthetic_symtab): New functions.
2548 * libbfd-in.h: Declare new functions. Update existing defines,
2550 * aix386-core.c: Update to use new hooks. Formatting.
2551 * aout-adobe.c: Likewise.
2552 * aout-arm.c: Likewise.
2553 * aout-target.h: Likewise.
2554 * aout-tic30.c: Likewise.
2555 * aoutf1.h: Likewise.
2556 * binary.c: Likewise.
2558 * cisco-core.c: Likewise.
2559 * coff-alpha.c: Likewise.
2560 * coff-i386.c: Likewise.
2561 * coff-i860.c: Likewise.
2562 * coff-i960.c: Likewise.
2563 * coff-ia64.c: Likewise.
2564 * coff-mips.c: Likewise.
2565 * coff-ppc.c: Likewise.
2566 * coff-rs6000.c: Likewise.
2567 * coff-sh.c: Likewise.
2568 * coff-tic30.c: Likewise.
2569 * coff-tic54x.c: Likewise.
2570 * coff-x86_64.c: Likewise.
2571 * coff64-rs6000.c: Likewise.
2572 * coffcode.h: Likewise.
2573 * elf-m10300.c: Likewise.
2574 * elf32-cr16.c: Likewise.
2575 * elf32-lm32.c: Likewise.
2576 * elf32-m32r.c: Likewise.
2577 * elf32-metag.c: Likewise.
2578 * elf32-score.c: Likewise.
2579 * elf32-score7.c: Likewise.
2580 * elf32-tilepro.c: Likewise.
2581 * elf32-xstormy16.c: Likewise.
2582 * elf32-xtensa.c: Likewise.
2583 * elf64-alpha.c: Likewise.
2584 * elf64-hppa.c: Likewise.
2585 * elf64-ia64-vms.c: Likewise.
2586 * elf64-mmix.c: Likewise.
2587 * elf64-sh64.c: Likewise.
2588 * elfnn-ia64.c: Likewise.
2589 * elfxx-sparc.c: Likewise.
2590 * elfxx-target.h: Likewise.
2591 * elfxx-tilegx.c: Likewise.
2592 * elfxx-x86.h: Likewise.
2593 * hp300hpux.c: Likewise.
2594 * hppabsd-core.c: Likewise.
2595 * hpux-core.c: Likewise.
2596 * i386msdos.c: Likewise.
2597 * i386os9k.c: Likewise.
2600 * irix-core.c: Likewise.
2601 * libaout.h: Likewise.
2602 * libecoff.h: Likewise.
2603 * mach-o-target.c: Likewise.
2604 * mach-o.c: Likewise.
2605 * mipsbsd.c: Likewise.
2607 * netbsd-core.c: Likewise.
2608 * nlm-target.h: Likewise.
2609 * oasys.c: Likewise.
2610 * osf-core.c: Likewise.
2611 * pdp11.c: Likewise.
2612 * pe-mips.c: Likewise.
2613 * pe-x86_64.c: Likewise.
2615 * plugin.c: Likewise.
2616 * ppcboot.c: Likewise.
2617 * ptrace-core.c: Likewise.
2618 * sco5-core.c: Likewise.
2620 * sparclynx.c: Likewise.
2622 * tekhex.c: Likewise.
2623 * trad-core.c: Likewise.
2624 * verilog.c: Likewise.
2625 * versados.c: Likewise.
2626 * vms-alpha.c: Likewise.
2627 * vms-lib.c: Likewise.
2628 * wasm-module.c: Likewise.
2630 * libbfd.h: Regenerate.
2632 2018-02-15 Jim Wilson <jimw@sifive.com>
2634 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
2635 symbols whose section address is zero.
2637 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
2638 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
2639 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
2640 Add %X%P to error messages.
2642 2018-02-15 Eric Botcazou <ebotcazou@adacore.com>
2645 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2646 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
2647 and assert that the result of the call is not NULL.
2649 2018-02-14 Nick Clifton <nickc@redhat.com>
2652 Revert previous delta. Add extra casts to avoid compile time
2654 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
2655 cast to avoid warning from gcc v8 compiler.
2656 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2657 (_bfd_generic_bfd_set_private_flags): Likewise.
2658 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2659 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2660 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2661 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2662 (_bfd_noarchive_construct_extended_name_table): Likewise.
2663 (_bfd_noarchive_truncate_arname): Likewise.
2664 (_bfd_noarchive_write_ar_hdr): Likewise.
2665 (_bfd_noarchive_get_elt_at_index): Likewise.
2666 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2667 (_bfd_nosymbols_print_symbol): Likewise.
2668 (_bfd_nosymbols_get_symbol_info): Likewise.
2669 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2670 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2671 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2672 (_bfd_nosymbols_get_lineno): Likewise.
2673 (_bfd_nosymbols_find_nearest_line): Likewise.
2674 (_bfd_nosymbols_find_line): Likewise.
2675 (_bfd_nosymbols_find_inliner_info): Likewise.
2676 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2677 (_bfd_nosymbols_read_minisymbols): Likewise.
2678 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2679 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2680 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2681 (_bfd_nowrite_set_arch_mach): Likewise.
2682 (_bfd_nowrite_set_section_contents): Likewise.
2683 (_bfd_nolink_sizeof_headers): Likewise.
2684 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2685 (_bfd_nolink_bfd_relax_section): Likewise.
2686 (_bfd_nolink_bfd_gc_sections): Likewise.
2687 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2688 (_bfd_nolink_bfd_merge_sections): Likewise.
2689 (_bfd_nolink_bfd_is_group_section): Likewise.
2690 (_bfd_nolink_bfd_discard_group): Likewise.
2691 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2692 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2693 (_bfd_nolink_bfd_link_just_syms): Likewise.
2694 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2695 (_bfd_nolink_bfd_final_link): Likewise.
2696 (_bfd_nolink_bfd_link_split_section): Likewise.
2697 (_bfd_nolink_section_already_linked): Likewise.
2698 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2699 (_bfd_nolink_bfd_define_start_stop): Likewise.
2700 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2701 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2702 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2703 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2704 * libbfd.c (bfd_false_any): Delete.
2705 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
2706 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
2707 * libbfd.h (extern): Regenerate
2708 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
2709 cast to avoid warning from gcc v8 compiler.
2710 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2711 * binary.c (binary_get_symbol_info): Likewise.
2712 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2713 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2714 * coffcode.h (coff_set_alignment_hook): Likewise.
2715 (symname_in_debug_hook): Likewise.
2716 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2717 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2718 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2719 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2720 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2721 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2722 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2723 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2724 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2725 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2726 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2727 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2728 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2729 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2730 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2731 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2732 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2733 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2734 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2735 (bfd_elfNN_bfd_set_private_flags): Likewise.
2736 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2737 (elf_backend_init_index_section): Likewise.
2738 (elf_backend_allow_non_load_phdr): Likewise.
2739 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2740 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2741 * ieee.c (ieee_construct_extended_name_table): Likewise.
2742 (ieee_write_armap): Likewise.
2743 (ieee_write_ar_hdr): Likewise.
2744 (ieee_bfd_is_target_special_symbol): Likewise.
2745 * ihex.c (ihex_canonicalize_symtab): Likewise.
2746 (ihex_bfd_is_target_special_symbol): Likewise.
2747 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2748 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2749 (_bfd_ecoff_set_alignment_hook): Likewise.
2750 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2751 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2752 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2753 * oasys.c (oasys_construct_extended_name_table): Likewise.
2754 (oasys_write_armap): Likewise.
2755 (oasys_write_ar_hdr): Likewise.
2756 (oasys_bfd_is_target_special_symbol): Likewise.
2757 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2758 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2759 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2760 * som.c (som_bfd_is_target_special_symbol): Likewise.
2761 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2762 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2763 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2764 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2765 (versados_bfd_reloc_name_lookup): Likewise.
2766 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2767 (vms_bfd_define_start_stop): Likewise.
2768 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2769 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2770 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2772 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
2775 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
2776 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2777 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
2778 R_X86_64_PC32 reloc against dynamic function in data section.
2779 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2780 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
2781 against dynamic function in data section.
2782 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
2783 function address only if pcrel_plt is true.
2784 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
2785 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
2786 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
2787 PC-relative relocation against a function definition in data
2788 secton in PIE. Remove the obsolete comments.
2789 (elf_x86_link_hash_table): Add pcrel_plt.
2791 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2793 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
2794 instead of bfd_link_pic, for building shared library.
2796 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2799 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
2800 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
2801 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
2802 against protected function in shared object.
2804 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
2807 * po/ru.po: Fix typo in Russian translation.
2809 2018-02-13 Maciej W. Rozycki <macro@mips.com>
2811 * wasm-module.c (wasm_scan_name_function_section): Rename
2812 `index' local variable to `idx'.
2814 2018-02-13 Nick Clifton <nickc@redhat.com>
2817 Fix compile time warnings generated by gcc version 8.
2818 * libbfd-in.h: Remove extraneous text from prototypes.
2819 Add prototypes for bfd_false_any, bfd_true_any,
2820 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
2821 bfd_n1_any, bfd_void_any.
2822 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
2824 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2825 (_bfd_generic_bfd_set_private_flags): Likewise.
2826 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2827 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2828 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2829 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2830 (_bfd_noarchive_construct_extended_name_table): Likewise.
2831 (_bfd_noarchive_truncate_arname): Likewise.
2832 (_bfd_noarchive_write_ar_hdr): Likewise.
2833 (_bfd_noarchive_get_elt_at_index): Likewise.
2834 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2835 (_bfd_nosymbols_print_symbol): Likewise.
2836 (_bfd_nosymbols_get_symbol_info): Likewise.
2837 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2838 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2839 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2840 (_bfd_nosymbols_get_lineno): Likewise.
2841 (_bfd_nosymbols_find_nearest_line): Likewise.
2842 (_bfd_nosymbols_find_line): Likewise.
2843 (_bfd_nosymbols_find_inliner_info): Likewise.
2844 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2845 (_bfd_nosymbols_read_minisymbols): Likewise.
2846 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2847 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2848 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2849 (_bfd_nowrite_set_arch_mach): Likewise.
2850 (_bfd_nowrite_set_section_contents): Likewise.
2851 (_bfd_nolink_sizeof_headers): Likewise.
2852 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2853 (_bfd_nolink_bfd_relax_section): Likewise.
2854 (_bfd_nolink_bfd_gc_sections): Likewise.
2855 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2856 (_bfd_nolink_bfd_merge_sections): Likewise.
2857 (_bfd_nolink_bfd_is_group_section): Likewise.
2858 (_bfd_nolink_bfd_discard_group): Likewise.
2859 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2860 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2861 (_bfd_nolink_bfd_link_just_syms): Likewise.
2862 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2863 (_bfd_nolink_bfd_final_link): Likewise.
2864 (_bfd_nolink_bfd_link_split_section): Likewise.
2865 (_bfd_nolink_section_already_linked): Likewise.
2866 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2867 (_bfd_nolink_bfd_define_start_stop): Likewise.
2868 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2869 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2870 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2871 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2872 * libbfd.c (bfd_false_any): New function. Like bfd_false but
2873 accepts one or more arguments.
2874 (bfd_true_any): Likewise.
2875 (bfd_nullvoidptr_any): Likewise.
2876 (bfd_0_any): Likewise.
2877 (bfd_0u_any): Likewise.
2878 (bfd_0l_any): Likewise.
2879 (_bfd_n1_any): Likewise.
2880 (bfd_void_any): Likewise.
2881 * libbfd.h (extern): Regenerate
2882 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
2883 based dummy function.
2884 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2885 * binary.c (binary_get_symbol_info): Likewise.
2886 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2887 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2888 * coffcode.h (coff_set_alignment_hook): Likewise.
2889 (symname_in_debug_hook): Likewise.
2890 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2891 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2892 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2893 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2894 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2895 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2896 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2897 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2898 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2899 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2900 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2901 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2902 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2903 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2904 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2905 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2906 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2907 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2908 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2909 (bfd_elfNN_bfd_set_private_flags): Likewise.
2910 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2911 (elf_backend_init_index_section): Likewise.
2912 (elf_backend_allow_non_load_phdr): Likewise.
2913 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2914 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2915 * ieee.c (ieee_construct_extended_name_table): Likewise.
2916 (ieee_write_armap): Likewise.
2917 (ieee_write_ar_hdr): Likewise.
2918 (ieee_bfd_is_target_special_symbol): Likewise.
2919 * ihex.c (ihex_canonicalize_symtab): Likewise.
2920 (ihex_bfd_is_target_special_symbol): Likewise.
2921 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2922 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2923 (_bfd_ecoff_set_alignment_hook): Likewise.
2924 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2925 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2926 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2927 * oasys.c (oasys_construct_extended_name_table): Likewise.
2928 (oasys_write_armap): Likewise.
2929 (oasys_write_ar_hdr): Likewise.
2930 (oasys_bfd_is_target_special_symbol): Likewise.
2931 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2932 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2933 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2934 * som.c (som_bfd_is_target_special_symbol): Likewise.
2935 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2936 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2937 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2938 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2939 (versados_bfd_reloc_name_lookup): Likewise.
2940 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2941 (vms_bfd_define_start_stop): Likewise.
2942 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2943 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2944 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2945 * elf32-arc.c (get_replace_function): Assign replacement function
2947 * elf32-i370.c (i370_noop): Update prototype.
2949 2018-02-13 Alan Modra <amodra@gmail.com>
2952 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
2953 relocation sections. If size reduces to just the flag word,
2954 remove that too and mark with SEC_EXCLUDE.
2955 * elflink.c (bfd_elf_final_link): Strip empty group sections.
2957 2018-02-13 Alan Modra <amodra@gmail.com>
2960 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
2963 2018-02-12 Zebediah Figura <z.figura12@gmail.com>
2965 * i386msdos.c (msdos_mkobject); New function.
2966 (msdos_object_p): New function.
2967 (i386_msdos_vec): Use msdos_object_p as the check_format
2969 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
2970 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
2972 * peXXigen.c: Likewise.
2973 * coff-ia64.c: Likewise.
2975 2018-02-12 Nick Clifton <nickc@redhat.com>
2977 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
2979 * elf32-arc.c (elf_arc_relocate_section): Likewise.
2981 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
2983 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
2984 (sparc_elf_append_rela): Assert that there is enough room in section.
2985 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
2986 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
2987 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
2988 For a symbol subject to a GOT relocation, reserve a slot in the
2989 relocation section if the symbol isn't dynamic and we are in PIC mode.
2990 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
2991 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
2992 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
2993 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
2994 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
2995 resolved_to_zero. Do not generate a dynamic GOT relocation for an
2996 undefined weak symbol with non-default visibility. Remove superfluous
2997 'else' and fix formatting.
2999 2018-02-09 H.J. Lu <hongjiu.lu@intel.com>
3001 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
3003 (i386_elf32_sol2_vec): Don't declare.
3004 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
3005 Don't set need_global_offset_table.
3006 (elf_i386_solaris_arch_bed): New.
3007 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
3009 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
3010 target_os != is_nacl instead of target_os == is_normal.
3011 (x86_64_elf64_sol2_vec): Don't declare.
3012 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
3013 is_nacl instead of target_os == is_normal. Don't set
3014 need_global_offset_table.
3015 (elf_x86_64_solaris_arch_bed): New.
3016 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
3018 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
3019 _GLOBAL_OFFSET_TABLE_ for Solaris.
3020 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
3021 need_global_offset_table.
3022 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
3023 (elf_x86_link_hash_table): Remove need_global_offset_table.
3024 (elf_x86_init_table): Likewise.
3026 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
3028 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
3030 (i386_elf32_sol2_vec): Declared.
3031 (elf_i386_link_setup_gnu_properties): Set
3032 need_global_offset_table with info->output_bfd->xvec.
3033 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
3035 (x86_64_elf64_sol2_vec): Declared.
3036 (elf_x86_64_link_setup_gnu_properties): Set
3037 need_global_offset_table with info->output_bfd->xvec.
3039 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
3041 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
3043 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
3045 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
3047 (elf_x86_64_link_setup_gnu_properties): Set
3048 need_global_offset_table for Solaris.
3049 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
3050 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
3051 (_bfd_x86_elf_link_setup_gnu_properties): Copy
3052 need_global_offset_table.
3053 * elfxx-x86.h (elf_x86_link_hash_table): Add
3054 need_global_offset_table.
3055 (elf_x86_init_table): Likewise.
3057 2018-02-08 Jim Wilson <jimw@sifive.com>
3059 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
3062 2018-02-08 Nick Clifton <nickc@redhat.com>
3065 * elf.c (elf_parse_notes): Reject notes with excessuively large
3068 2018-02-07 Alan Modra <amodra@gmail.com>
3070 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
3071 * elf32-ppc.c: Remove speculation barrier support.
3072 * elf32-ppc.h: Likewise.
3073 * elf64-ppc.c: Likewise.
3074 * elf64-ppc.h: Likewise.
3076 2018-02-06 Jim Wilson <jimw@sifive.com>
3078 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
3079 callback to report an error.
3081 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
3084 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
3085 into call to !bfd_link_executable and tidy up.
3086 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
3087 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
3088 !bfd_link_executable.
3089 <R_SPARC_TLS_IE_HI22>: Likewise.
3090 <GOT relocations>: Remove useless code, tidy and merge related blocks.
3091 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
3092 !bfd_link_executable.
3093 <R_SPARC_WPLT30>: Tidy up.
3094 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
3095 !bfd_link_executable.
3096 (allocate_dynrelocs): Likewise.
3097 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
3098 <R_SPARC_TLS_GD_HI22>: Merge into...
3099 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
3100 sparc_elf_tls_transition and remove redundant code.
3101 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
3102 !bfd_link_executable.
3103 <R_SPARC_TLS_LDO_HIX22>: Likewise.
3104 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
3105 <R_SPARC_TLS_LDM_CALL>: Likewise.
3106 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
3107 <R_SPARC_TLS_GD_ADD>: Likewise.
3108 <R_SPARC_TLS_LDM_ADD>: Likewise.
3109 <R_SPARC_TLS_LDO_ADD>: Likewise.
3110 <R_SPARC_TLS_IE_LD>: Likewise.
3112 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
3115 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
3116 functions failed to find the function name, try the generic elf
3117 find function instead.
3119 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
3121 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
3122 'memcpy' instead of 'strncpy' when writing the magic number.
3124 2018-02-06 Nick Clifton <nickc@redhat.com>
3127 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
3128 section before attempting to read it in.
3129 (bfd_get_alt_debug_link_info): Likewise.
3131 2018-02-06 Paul Carroll <pcarroll@codesourcery.com>
3133 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
3134 line information in addition to name, if they can be found.
3136 2018-02-05 Renlin Li <renlin.li@arm.com>
3139 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
3140 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
3141 check for writeable section as well.
3143 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
3146 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
3147 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
3148 undefined weak symbol to 0.
3149 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
3150 if _GLOBAL_OFFSET_TABLE_ is referenced.
3151 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
3152 got_referenced instead of ref_regular_nonweak. Remove the
3153 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
3154 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
3156 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3158 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
3159 initialize `hi_reloc'.
3161 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3163 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
3164 SHT_MIPS_REGINFO sections don't assert the correct size and
3165 report an error instead.
3167 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3169 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
3170 status from `->elf_backend_section_processing'.
3172 2018-02-02 Jim Wilson <jimw@sifive.com>
3175 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
3176 If link_info->wrap_hash, check for a duplicate symbol and ignore.
3177 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
3178 Pass new argument to riscv_relax_delete_bytes.
3179 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
3180 ATTRIBUTE_UNUSED from link_info parameter.
3182 2018-02-02 Alan Modra <amodra@gmail.com>
3184 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
3185 emitted for toc sequence optimization. Set and use "howto" later.
3187 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
3189 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
3190 arithmetic on NULL pointer.
3191 * elflink.c (_bfd_elf_archive_symbol_lookup,
3192 elf_link_add_archive_symbols): Likewise.
3194 2018-01-31 Michael Matz <matz@suse.de>
3196 * elflink.c (bfd_elf_define_start_stop): Fix check of
3199 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
3202 * elflink.c (bfd_elf_define_start_stop): Check if __start and
3203 __stop symbols are referenced by shared objects.
3205 2018-01-30 Alan Modra <amodra@gmail.com>
3208 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
3209 segment when demand paged with lma on the same page. Test this
3210 before load/non-load, executable/non-executable,
3211 writable/non-writable tests and simplify. Delete bogus relro
3212 condition in writable/non-writable test. Delete outdated
3213 comment. Formatting.
3215 2018-01-30 Alan Modra <amodra@gmail.com>
3217 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
3220 2018-01-29 Alan Modra <amodra@gmail.com>
3223 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
3224 range before converting to a symbol table pointer.
3226 2018-01-27 Nick Clifton <nickc@redhat.com>
3228 * po/ru.po: Updated Russian translation.
3230 2018-01-26 Alan Modra <amodra@gmail.com>
3232 * elflink.c (bfd_elf_define_start_stop): Override symbols when
3233 they are defined dynamically.
3235 2018-01-26 Alan Modra <amodra@gmail.com>
3237 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
3238 .branch_lt changes size.
3240 2018-01-25 Alan Modra <amodra@gmail.com>
3243 * elfcode.h (elf_object_p): Avoid integer overflow.
3245 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
3248 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
3249 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
3252 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
3255 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
3256 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
3257 bfd_link_executable for TLS check.
3258 (_bfd_sparc_elf_check_relocs): Likewise.
3259 (allocate_dynrelocs): Likewise.
3260 (_bfd_sparc_elf_relocate_section): Likewise.
3262 2018-01-24 Renlin Li <renlin.li@arm.com>
3264 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
3265 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
3266 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
3267 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
3268 BFD_RELOC_AARCH64_MOVW_PREL_G3.
3269 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
3270 (_bfd_aarch64_elf_resolve_relocation): Likewise.
3272 2018-01-24 Renlin Li <renlin.li@arm.com>
3274 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
3275 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
3276 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
3277 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
3278 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
3279 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
3280 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
3281 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
3282 BFD_RELOC_AARCH64_MOVW_PREL_G3.
3283 * bfd-in2.h: Regenerate.
3284 * libbfd.h: Regenerate.
3286 2018-01-23 Maciej W. Rozycki <macro@mips.com>
3288 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
3289 `mips_elf32_section_processing' comment reference.
3291 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
3294 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
3295 versioned __tls_get_addr symbol.
3297 2018-01-19 Nick Clifton <nickc@redhat.com>
3299 * po/fr.po: Updated French translation.
3301 2018-01-18 Alan Modra <amodra@gmail.com>
3303 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
3304 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
3305 (ppc64_elf_build_stubs): Likewise.
3307 2018-01-17 Nick Clifton <nickc@redhat.com>
3309 * po/ru.po: Updated Russian translation.
3310 * po/uk/po: Updated Ukranian translation.
3312 2018-01-17 Alan Modra <amodra@gmail.com>
3314 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
3316 2018-01-17 Alan Modra <amodra@gmail.com>
3318 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
3319 (CRSETEQ, BEQCTRM): Define.
3320 (is_nonpic_glink_stub): Don't check bctr.
3321 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
3322 (ppc_elf_relax_section): Size speculation barrier.
3323 (output_bctr): New function.
3324 (write_glink_stub): Use output_bctr.
3325 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
3326 (ppc_elf_finish_dynamic_symbol): Likewise.
3327 (ppc_elf_finish_dynamic_sections): Use output_bctr.
3328 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
3329 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
3330 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
3331 (size_global_entry_stubs): Handle speculation barrier sizing.
3332 (plt_stub_size): Likewise.
3333 (output_bctr): New function.
3334 (build_plt_stub, build_tls_get_addr_stub): Output speculation
3336 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
3337 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
3338 (build_global_entry_stubs): Output speculation barrier.
3339 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
3340 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
3342 2018-01-17 Alan Modra <amodra@gmail.com>
3344 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
3345 __tls_get_addr_opt, and alignment sizing.
3346 (TLS_GET_ADDR_GLINK_SIZE): Delete.
3347 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
3348 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
3350 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
3351 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
3352 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
3354 (write_glink_stub): Handle __tls_get_addr_opt stub.
3355 Pad out to size given by GLINK_ENTRY_SIZE.
3356 (ppc_elf_relocate_section): Adjust write_glink_stub call.
3357 (ppc_elf_finish_dynamic_symbol): Likewise.
3358 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
3359 insn array since so many need rewriting.
3360 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
3361 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
3362 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
3363 nops. Adjust all uses.
3364 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
3365 in glink_vma calculation.
3366 (struct ppc_link_hash_table): Add global_entry section pointer.
3367 (create_linkage_sections): Create separate section for global
3369 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
3370 (size_global_entry_stubs): Handle sizing for aligned stubs.
3371 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
3372 and don't stash end of glink branch table in rawsize.
3373 (ppc_build_one_stub): Rewrite stub size calculations.
3374 (build_global_entry_stubs): Use new section.
3375 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
3376 Build lazy link stubs out to end of section. Build global entry
3377 stubs in new section.
3379 2018-01-15 Nick Clifton <nickc@redhat.com>
3381 * po/uk.po: Updated Ukranian translation.
3383 2018-01-13 Nick Clifton <nickc@redhat.com>
3385 * po/bfd.pot: Regenerated.
3387 2018-01-13 Nick Clifton <nickc@redhat.com>
3389 * version.m4: Bump version to 2.30.51
3390 * configure: Regenerate.
3392 2018-01-13 Nick Clifton <nickc@redhat.com>
3394 2.30 branch created.
3396 2018-01-12 Jens Widell <jl@opera.com>
3398 * elf.c (setup_group): Optimize search for group by remembering
3399 last found group and restarting search at that index.
3400 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
3402 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
3404 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
3405 bfd_link_common_skip_none in switch.
3407 2018-01-12 Alan Modra <amodra@gmail.com>
3410 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
3411 references on forced local symbols.
3413 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
3415 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
3416 .reginfo section has wrong size.
3418 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3421 * elf.c (_bfd_elf_map_sections_to_segments): When generating
3422 separate code and read-only data LOAD segments, create a new
3423 LOAD segment if the previous section contains text and the
3424 current section doesn't or vice versa. Don't put a writable
3425 section in a read-only segment if there is a RELRO segment.
3427 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3430 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
3431 references on forced local symbols.
3433 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3436 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
3437 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
3439 2018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com>
3442 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
3444 2018-01-03 John Baldwin <jhb@FreeBSD.org>
3446 * elf.c (elfcore_grok_freebsd_note): Handle
3447 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
3448 NT_FREEBSD_PROCSTAT_VMMAP.
3450 2018-01-03 Alan Modra <amodra@gmail.com>
3452 Update year range in copyright notice of all files.
3454 For older changes see ChangeLog-2017
3456 Copyright (C) 2018 Free Software Foundation, Inc.
3458 Copying and distribution of this file, with or without modification,
3459 are permitted in any medium without royalty provided the copyright
3460 notice and this notice are preserved.
3466 version-control: never