1 2018-07-21 Eric Botcazou <ebotcazou@adacore.com>
3 * elf32-arm.c (elf32_arm_final_link_relocate) <R_ARM_GOT32>: Small
4 cleanup for the case of a global symbol that binds locally. Also
5 install a value in the GOT slot in the case of a local symbol in
8 2018-07-20 H.J. Lu <hongjiu.lu@intel.com>
11 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): If the
12 separate code program header is needed, make sure that the first
13 read-only PT_LOAD segment has no code by adding a
14 GNU_PROPERTY_X86_ISA_1_USED note.
16 2018-07-20 Chenghua Xu <paul.hua.gm@gmail.com>
17 Maciej W. Rozycki <macro@mips.com>
19 * elfxx-mips.c (print_mips_ases): Add MMI extension.
21 2018-07-20 Maciej W. Rozycki <macro@mips.com>
23 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Do not
24 create DT_REL, DT_RELSZ or DT_RELENT dynamic entries if the
25 dynamic relocation section will be discarded from output.
26 (_bfd_mips_elf_finish_dynamic_sections) <DT_RELSZ>: Assert that
27 the dynamic relocation section will be retained in output.
29 2018-07-18 Maciej W. Rozycki <macro@mips.com>
31 * xcofflink.c (xcoff_write_global_symbol): Fix symbol type
32 checks for defined weak symbols.
34 2018-07-17 Maciej W. Rozycki <macro@mips.com>
36 * elf32-nds32.c (nds32_elf_relax_loadstore): Use
37 `bfd_is_abs_symbol' rather than `bfd_is_abs_section' in checking
38 whether the symbol is absolute.
39 (nds32_elf_relax_lo12): Likewise.
40 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise.
41 (elfNN_aarch64_check_relocs): Likewise.
42 * xcofflink.c (xcoff_need_ldrel_p): Likewise.
43 (bfd_xcoff_import_symbol): Likewise.
44 (xcoff_write_global_symbol): Likewise.
46 2018-07-17 Maciej W. Rozycki <macro@mips.com>
48 * linker.c (bfd_is_abs_symbol): New macro.
49 * bfd-in2.h: Regenerate.
51 2018-07-16 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
53 * elf-bfd.h (elfcore_write_ppc_tar): Add prototype.
54 (elfcore_write_ppc_ppr): Likewise.
55 (elfcore_write_ppc_dscr): Likewise.
56 (elfcore_write_ppc_ebb): Likewise.
57 (elfcore_write_ppc_pmu): Likewise.
58 (elfcore_write_ppc_tm_cgpr): Likewise.
59 (elfcore_write_ppc_tm_cfpr): Likewise.
60 (elfcore_write_ppc_tm_cvmx): Likewise.
61 (elfcore_write_ppc_tm_cvsx): Likewise.
62 (elfcore_write_ppc_tm_spr): Likewise.
63 (elfcore_write_ppc_tm_ctar): Likewise.
64 (elfcore_write_ppc_tm_cppr): Likewise.
65 (elfcore_write_ppc_tm_cdscr): Likewise.
66 * elf.c (elfcore_write_ppc_tar): New function.
67 (elfcore_write_ppc_ppr): Likewise.
68 (elfcore_write_ppc_dscr): Likewise.
69 (elfcore_write_ppc_ebb): Likewise.
70 (elfcore_write_ppc_pmu): Likewise.
71 (elfcore_write_ppc_tm_cgpr): Likewise.
72 (elfcore_write_ppc_tm_cfpr): Likewise.
73 (elfcore_write_ppc_tm_cvmx): Likewise.
74 (elfcore_write_ppc_tm_cvsx): Likewise.
75 (elfcore_write_ppc_tm_spr): Likewise.
76 (elfcore_write_ppc_tm_ctar): Likewise.
77 (elfcore_write_ppc_tm_cppr): Likewise.
78 (elfcore_write_ppc_tm_cdscr): Likewise.
79 (elfcore_write_register_note): Call them.
80 (elfcore_grok_ppc_tar): New function.
81 (elfcore_grok_ppc_ppr): Likewise.
82 (elfcore_grok_ppc_dscr): Likewise.
83 (elfcore_grok_ppc_ebb): Likewise.
84 (elfcore_grok_ppc_pmu): Likewise.
85 (elfcore_grok_ppc_tm_cgpr): Likewise.
86 (elfcore_grok_ppc_tm_cfpr): Likewise.
87 (elfcore_grok_ppc_tm_cvmx): Likewise.
88 (elfcore_grok_ppc_tm_cvsx): Likewise.
89 (elfcore_grok_ppc_tm_spr): Likewise.
90 (elfcore_grok_ppc_tm_ctar): Likewise.
91 (elfcore_grok_ppc_tm_cppr): Likewise.
92 (elfcore_grok_ppc_tm_cdscr): Likewise.
93 (elfcore_grok_note): Call them.
95 2018-07-11 Maciej W. Rozycki <macro@mips.com>
97 * elfxx-mips.c (mips_tls_got_relocs): Use `bfd_link_dll' rather
98 than `!bfd_link_pic' in determining the dynamic symbol index.
99 Avoid the index of -1.
100 (mips_elf_initialize_tls_slots): Likewise. Flatten code by
101 moving `dyn' to the beginning of the function block.
103 2018-07-11 Maciej W. Rozycki <macro@mips.com>
104 Rich Felker <bugdal@aerifal.cx>
107 * elfxx-mips.c (mips_tls_got_relocs): Use `bfd_link_dll' rather
108 than `bfd_link_pic' to determine whether dynamic relocations are
110 (mips_elf_initialize_tls_slots): Likewise.
112 2018-07-10 Maciej W. Rozycki <macro@mips.com>
114 * elflink.c (bfd_elf_final_link): Rename `remove' local variable
117 2018-07-10 Alan Modra <amodra@gmail.com>
119 * elf32-xgate.h: Delete.
120 * elf32-xgate.c: Delete unnecessary forward declarations, add two
122 (xgate_elf_bfd_link_hash_table_create)
123 (xgate_elf_bfd_link_hash_table_free)
124 (xgate_elf_set_mach_from_flags, struct xgate_scan_param)
125 (stub_hash_newfunc, elf32_xgate_add_symbol_hook)
126 (elf32_xgate_setup_section_lists, elf32_xgate_size_stubs)
127 (elf32_xgate_build_stubs, elf32_xgate_check_relocs)
128 (elf32_xgate_relocate_section, _bfd_xgate_elf_set_private_flags)
129 (elf32_xgate_post_process_headers): Delete.
130 (elf32_xgate_backend_symbol_processing): New function.
131 (xgate_elf_ignore_reloc, xgate_elf_special_reloc)
132 (_bfd_xgate_elf_print_private_bfd_data): Make static.
133 (ELF_TARGET_ID, elf_info_to_howto, elf_backend_check_relocs)
134 (elf_backend_relocate_section, elf_backend_object_p)
135 (elf_backend_final_write_processing, elf_backend_can_gc_sections)
136 (elf_backend_post_process_headers, elf_backend_add_symbol_hook)
137 (bfd_elf32_bfd_link_hash_table_create)
138 (bfd_elf32_bfd_set_private_flags)
139 (xgate_stub_hash_lookup): Don't define.
140 (elf_backend_symbol_processing): Define.
141 * elf-bfd.h (elf_target_id): Delete XGATE_ELF_DATA.
143 2018-07-09 Maciej W. Rozycki <macro@mips.com>
145 * elfxx-mips.c (_bfd_mips_elf_adjust_dynamic_symbol): Don't set
146 `->needs_lazy_stub' if the stubs output section is the absolute
149 2018-07-09 H.J. Lu <hongjiu.lu@intel.com>
152 * configure.ac: Use changequote for "i[3-7]86-*-linux-*".
153 * configure: Regenerated.
155 2018-07-09 Alan Modra <amodra@gmail.com>
157 * elf32-m68hc1x.c (elf32_m68hc11_post_process_headers): Call
158 _bfd_elf_post_process_headers.
160 2018-07-06 Max Filippov <jcmvbkbc@gmail.com>
162 * elf32-xtensa.c (elf_xtensa_allocate_dynrelocs): Don't allocate
163 space for dynamic relocation for undefined weak symbol.
164 (elf_xtensa_relocate_section): Don't emit R_XTENSA_RELATIVE
165 relocation for undefined weak symbols.
166 (shrink_dynamic_reloc_sections): Don't shrink dynamic relocation
167 section for relocations against undefined weak symbols.
169 2018-07-06 Alan Hayward <alan.hayward@arm.com>
171 * elf.c (elfcore_grok_aarch_sve): New function.
172 (elfcore_grok_note): Check for Aarch64 SVE.
173 (elfcore_write_aarch_sve): New function.
174 (elfcore_write_register_note): Check for Aarch64 SVE.
175 * elf-bfd.h(elfcore_grok_aarch_sve): New declaration.
177 2018-07-06 Alan Modra <amodra@gmail.com>
179 * elf32-arm.c (elf32_arm_nabi_write_core_note): Don't use
180 DIAGNOTIC_PUSH and DIAGNOSTIC_POP unconditionally.
181 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
182 * elf32-s390.c (elf_s390_write_core_note): Likewise.
183 * elf64-ppc.c (ppc64_elf_write_core_note): Likewise.
184 * elf64-s390.c (elf_s390_write_core_note): Likewise.
185 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
187 2018-07-05 Jim Wilson <jimw@sifive.com>
189 * config.bfd (riscv32*-*-*): Renamed from riscv32-*-*.
190 (riscv64*-*-*): Likewise.
191 (riscv-*-*): Add as an alias for riscv32*-*-*.
193 2018-07-05 H.J. Lu <hongjiu.lu@intel.com>
196 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Remove x86
197 ISA properties with empty bits.
199 2018-07-05 Nick Clifton <nickc@redhat.com>
201 * po/ru.po: Updated Russian translation.
203 2018-07-05 Alan Modra <amodra@gmail.com>
205 * elf-bfd.h (_bfd_elf_ppc_merge_fp_attributes): Update prototype.
206 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Return error
207 on mismatch. Remove "warning: " from messages. Track last bfd
209 (ppc_elf_merge_obj_attributes): Likewise. Handle status from
210 _bfd_elf_ppc_merge_fp_attributes.
211 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data): Handle status
212 from _bfd_elf_ppc_merge_fp_attributes.
214 2018-07-04 H.J. Lu <hongjiu.lu@intel.com>
216 * Makefile.am (bfdinclude_HEADERS): Add $(INCDIR)/diagnostics.h.
217 * Makefile.in: Regenerated.
219 2018-07-03 Alan Modra <amodra@gmail.com>
221 * elflink.c (bfd_elf_final_link): Remove zero size .gnu.attributes
224 2018-07-03 Alan Modra <amodra@gmail.com>
226 * elf-bfd.h (ATTR_TYPE_FLAG_ERROR, ATTR_TYPE_HAS_ERROR): Define.
227 * elf-attrs.c (is_default_attr): Handle ATTR_TYPE_HAS_ERROR.
228 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Use
229 ATTR_TYPE_FLAG_INT_VAL. Set ATTR_TYPE_HAS_ERROR on finding
230 incompatible attribute.
231 (ppc_elf_merge_obj_attributes): Likewise. Return
232 _bfd_elf_merge_object_attributes result.
233 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data): Return
234 _bfd_elf_merge_object_attributes result.
236 2018-07-03 Alan Modra <amodra@gmail.com>
239 * elflink.c (_bfd_elf_fix_symbol_flags): Hide dynamic symbols
240 in discarded sections.
242 2018-07-02 Maciej W. Rozycki <macro@mips.com>
244 * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Set
245 `mark' for symbols created from `mips_elf_dynsym_rtproc_names'
248 2018-07-02 Maciej W. Rozycki <macro@mips.com>
250 * elf64-mips.c (micromips_elf64_howto_table_rel): Add
251 R_MICROMIPS_HI0_LO16, R_MICROMIPS_TLS_GD, R_MICROMIPS_TLS_LDM,
252 R_MICROMIPS_TLS_DTPREL_HI16, R_MICROMIPS_TLS_DTPREL_LO16,
253 R_MICROMIPS_TLS_GOTTPREL, R_MICROMIPS_TLS_TPREL_HI16,
254 R_MICROMIPS_TLS_TPREL_LO16, R_MICROMIPS_GPREL7_S2 and
255 R_MICROMIPS_PC23_S2 relocation entries.
256 (micromips_elf64_howto_table_rela): Likewise.
257 (micromips_reloc_map): Likewise.
258 * elfn32-mips.c (elf_micromips_howto_table_rel): Likewise.
259 (elf_micromips_howto_table_rela): Likewise.
260 (micromips_reloc_map): Likewise.
262 2018-07-02 H.J. Lu <hongjiu.lu@intel.com>
265 * elf64-x86-64.c (elf_x86_64_relocate_section): Clear the
266 R_X86_64_converted_reloc_bit bit.
268 2018-07-02 Jeff Muizelaar <jrmuizel@gmail.com>
269 Tom Tromey <tom@tromey.com>
273 * mach-o.c (bfd_mach_o_fat_close_and_cleanup): New function.
274 (bfd_mach_o_close_and_cleanup): Redefine.
275 * archive.c (_bfd_unlink_from_archive_parent): New function,
277 (_bfd_archive_close_and_cleanup): ..here.
278 (bfd_generic_archive_p): Do not clear archive's format.
279 * libbfd-in.h (_bfd_unlink_from_archive_parent): Declare.
280 * libbfd.h: Regenerate.
282 2018-07-02 Thomas Preud'homme <thomas.preudhomme@arm.com>
284 * archures.c (bfd_mach_arm_5TEJ, bfd_mach_arm_6, bfd_mach_arm_6KZ,
285 bfd_mach_arm_6T2, bfd_mach_arm_6K, bfd_mach_arm_7, bfd_mach_arm_6M,
286 bfd_mach_arm_6SM, bfd_mach_arm_7EM, bfd_mach_arm_8, bfd_mach_arm_8R,
287 bfd_mach_arm_8M_BASE, bfd_mach_arm_8M_MAIN): Define.
288 * bfd-in2.h: Regenerate.
289 * cpu-arm.c (arch_info_struct): Add entries for above new
291 * elf32-arm.c (bfd_arm_get_mach_from_attributes): Add Tag_CPU_arch to
292 bfd_mach_arm mapping logic for pre Armv4 and Armv5TEJ and later
293 architectures. Force assert failure for any new Tag_CPU_arch value.
295 2018-07-02 Thomas Preud'homme <thomas.preudhomme@arm.com>
297 * doc/bfdint.texi: Use command-line consistently when used in a
299 * doc/bfdsumm.texi: Likewise.
301 2018-06-29 Maciej W. Rozycki <macro@mips.com>
303 * elfxx-mips.c (allocate_dynrelocs): Remove extraneous symbol
304 visibility check made for undefined weak symbols.
306 2018-06-26 Nick Clifton <nickc@redhat.com>
308 * po/uk.po: Updated Ukranian translation.
310 2018-06-25 Nick Clifton <nickc@redhat.com>
312 * elfnn-aarch64.c (_bfd_aarch64_erratum_835769_stub_name): Check
313 for malloc returning NULL.
314 (_bfd_aarch64_erratum_843419_fixup): Check for
315 _bfd_aarch64_erratum_835769_stub_name returning NULL.
317 2018-06-24 Nick Clifton <nickc@redhat.com>
319 * po/bfd.pot: Regenerate.
321 2018-06-24 Nick Clifton <nickc@redhat.com>
323 * version.m4: Update version string to 2.31.51.
324 * configure: Regenerate.
326 2018-06-24 Nick Clifton <nickc@redhat.com>
330 2018-06-21 Maciej W. Rozycki <macro@mips.com>
332 * elfxx-mips.c (_bfd_mips_elf_compact_eh_encoding)
333 (_bfd_mips_elf_cant_unwind_opcode): Correct formatting.
335 2018-06-21 Maciej W. Rozycki <macro@mips.com>
337 * elfxx-mips.c (_bfd_mips_post_process_headers): Keep
338 EI_ABIVERSION setting together.
340 2018-06-21 Maciej W. Rozycki <macro@mips.com>
342 * elfxx-mips.c (MIPS_LIBC_ABI_DEFAULT, MIPS_LIBC_ABI_MIPS_PLT)
343 (MIPS_LIBC_ABI_UNIQUE, MIPS_LIBC_ABI_MIPS_O32_FP64)
344 (MIPS_LIBC_ABI_MAX): New enumeration constants.
345 (_bfd_mips_post_process_headers): Use them in place of magic
348 2018-06-21 Jim Wilson <jimw@sifive.com>
350 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Update comment.
351 Use SYMBOL_REFERENCES_LOCAL. Add asserts for h->got.offset.
353 2018-06-21 Alan Modra <amodra@gmail.com>
355 * doc/Makefile.am (AUTOMAKE_OPTIONS): Add "foreign".
356 * doc/Makefile.in: Regenerate.
358 2018-06-20 Renlin Li <renlin.li@arm.com>
360 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use PG_OFFSET
361 to resolve BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC,
362 BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC,
363 BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC,
364 BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC,
365 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
366 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
367 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
368 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
370 2018-06-20 Nick Clifton <nickc@redhat.com>
373 * opncls.c (get_build_id): Check for a negative or excessive data
374 size in the build-id note.
376 2018-06-20 Nick Clifton <nickc@redhat.com>
379 * mach-o.c (cputype): New function.
380 (cpusubtype): New function.
381 (bfd_mach_o_bfd_print_private_data): New function. Dispalys the
382 values in the MACH-O file header.
383 (bfd_mach_o_bfd_copy_private_header_data): Copy the cputype and
384 cpusubtype fields from the input bfd's mach-o header to the output
386 * mach-o-target.c (bfd_mach_o_bfd_print_private_bfd_data):
387 Redefine to bfd_mach_o_bfd_print_private_data.
388 * mach-o.h (bfd_mach_o_bfd_print_private_bfd_data): Prototype.
390 2018-06-19 Maciej W. Rozycki <macro@mips.com>
393 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Verify the
394 `.got.plt' entry referred is in range.
395 (mips_finish_exec_plt): Correct the range check for `.got.plt'
396 start. Replace the assertion used for that with a proper error
399 2018-06-19 Maciej W. Rozycki <macro@mips.com>
401 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Fix
404 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
406 * Makefile.am (AUTOMAKE_OPTIONS): Remove 1.11.
407 (INCLUDES): Rename to ...
408 (AM_CPPFLAGS): ... this.
409 * configure.ac: Remove AC_PREREQ.
410 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove 1.9, cygnus, add
411 info-in-builddir no-texinfo.tex.
412 (info_TEXINFOS): Rename bfd.texinfo to bfd.texi.
413 * doc/bfd.texinfo: Rename to ...
414 * doc/bfd.texi: ... this.
415 * Makefile.in: Re-generate.
416 * aclocal.m4: Re-generate.
417 * config.in: Re-generate.
418 * configure: Re-generate.
419 * doc/Makefile.in: Re-generate.
421 2018-06-18 Mephi <mephi42@gmail.com>
424 * mach-o-x86-64.c (x86_64_howto_table): Add entry for
425 BFD_RELOC_MACH_O_X86_64_RELOC_TLV.
426 (bfd_mach_o_x86_64_canonicalize_one_reloc): Handle the new reloc.
427 (bfd_mach_o_x86_64_swap_reloc_out): Likewise.
428 * reloc.c (BFD_RELOC_MACH_O_X86_64_TV): New entry.
429 * bfd-in2.h: Regenerate.
430 * libbfd.h: Regenerate.
432 2018-06-14 Faraz Shahbazker <Faraz.Shahbazker@mips.com>
434 * elfxx-mips.c (print_mips_ases): Add GINV extension.
436 2018-06-14 H.J. Lu <hongjiu.lu@intel.com>
439 * elf.c (_bfd_elf_get_symbol_version_string): Check if the first
440 symbol version is base version.
442 2018-06-14 Alan Modra <amodra@gmail.com>
444 * elf-bfd.h (struct elf_link_hash_table): Add "dynamic_relocs".
445 * elflink.c (_bfd_elf_init_2_index_sections): Comment fix.
446 (_bfd_elf_add_dynamic_entry): Set "dynamic_relocs".
447 (_bfd_elf_link_renumber_dynsyms): Exclude all section symbols when
448 "dynamic_relocs" is not set.
449 * elfxx-mips.c (count_section_dynsyms): Likewise.
451 2018-06-14 Alan Modra <amodra@gmail.com>
454 * bfdio.c (bfd_seek): Optimize away seeks to current position.
456 2018-06-13 Scott Egerton <scott.egerton@imgtec.com>
457 Faraz Shahbazker <Faraz.Shahbazker@mips.com>
459 * elfxx-mips.c (print_mips_ases): Add CRC.
461 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
464 * elfxx-x86.c (elf_x86_hide_linker_defined): New function.
465 (_bfd_x86_elf_link_check_relocs): Use it to hide hidden
466 __bss_start, _end and _edata in shared libraries.
468 2018-06-07 Alan Modra <amodra@gmail.com>
470 * elf32-tic6x.c (elf32_tic6x_check_relocs): Reference
471 __c6xabi_DSBT_BASE explicitly for R_C6000_SBR_* relocs.
473 2018-06-05 Alan Modra <amodra@gmail.com>
475 * bfd.c (struct bfd): Update comment on "where" usage.
476 * bfdio.c (bfd_bwrite, bfd_stat): Use and update "iovec",
477 "iostream", and "where" from containing archive file. Return
479 (bfd_bread): Similarly, and return error attempted out of
480 bounds archive element access.
481 (bfd_tell, bfd_flush): Use and update "iovec", "iostream", and
482 "where" from containing archive file.
483 (bfd_seek): Likewise. Return error on NULL iovec. Don't
484 attempt to optimize away seeks. Don't paper over errors by
486 (bfd_get_mtime): Call bfd_stat rather than iovec->bstat.
487 (bfd_get_size): Likewise.
488 (bfd_mmap): Operate on and use iovec of containing archive
489 file. Return error on NULL iovec.
490 * cache.c (bfd_cache_lookup_worker): Abort if working on
492 (cache_bread_1): Delete bfd parameter, add FILE* parameter.
493 Don't ignore zero byte reads.
494 (cache_bread): Look up FILE* in cache here. Error on NULL
496 (cache_bwrite): Rename "where" to "from".
497 (cache_bmmap): Don't handle archive elements.
498 * coffcode.h (coff_slurp_line_table): Exit early on zero
500 * bfd-in2.h: Regenerate.
502 2018-06-05 Alan Modra <amodra@gmail.com>
505 * plugin.c (bfd_plugin_open_input): Allow for possibility of
506 nested archives. Open file again for plugin.
507 (try_claim): Don't save and restore file position. Close file
509 * sysdep.h (O_BINARY): Define.
511 2018-06-04 Max Filippov <jcmvbkbc@gmail.com>
513 * elf32-xtensa.c (xtensa_read_table_entries): Make global.
514 (compute_fill_extra_space): Drop declaration. Rename function to
515 xtensa_compute_fill_extra_space.
516 (compute_ebb_actions, remove_dead_literal): Update references to
517 compute_fill_extra_space.
519 2018-06-04 Volodymyr Arbatov <arbatov@cadence.com>
521 * elf32-xtensa.c (elf32xtensa_separate_props): New global
523 (xtensa_add_names): New function.
524 (xtensa_property_section_name): Add new parameter
525 separate_sections, use it to choose property section name.
526 (xtensa_get_separate_property_section): New function.
527 (xtensa_get_property_section): Invoke
528 xtensa_get_separate_property_section to get individual property
529 section if it exists, common property section otherwise.
530 (xtensa_make_property_section): Pass elf32xtensa_separate_props
531 to xtensa_property_section_name.
533 2018-06-04 H.J. Lu <hongjiu.lu@intel.com>
536 * bfd-in.h: Include "diagnostics.h".
537 * bfd-in2.h: Regenerated.
538 * elf32-arm.c (elf32_arm_nabi_write_core_note): Use
539 DIAGNOSTIC_PUSH, DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION and
540 DIAGNOSTIC_POP to silence GCC 8.1 warnings with
541 -Wstringop-truncation.
542 * elf32-ppc.c (ppc_elf_write_core_note): Likewse.
543 * elf32-s390.c (elf_s390_write_core_note): Likewse.
544 * elf64-ppc.c (ppc64_elf_write_core_note): Likewse.
545 * elf64-s390.c (elf_s390_write_core_note): Likewse.
546 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewse.
548 2018-06-03 Jim Wilson <jimw@sifive.com>
551 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Check
552 for and handle an undefined weak with no PLT.
555 * elfnn-riscv.c (riscv_relax_delete_bytes): Add versioned_hidden check
556 to code that ignores duplicate symbols.
558 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
560 * version.m4: Bump version to 2.30.52
561 * configure: Regenerated.
563 2018-06-01 Alan Modra <amodra@gmail.com>
565 * bfd.c (_bfd_error_handler): Arrange for this function to be
566 declared in bfd-in2.h.
567 * libbfd-in.h (_bfd_error_handler): Don't declare.
568 * libbfd.h: Regenerate.
569 * bfd-in2.h: Regenerate.
571 2018-05-30 Amaan Cheval <amaan.cheval@gmail.com>
573 * config.bfd (x86_64-*-*): Add pei-x86-64 target to x86_64-*-rtems*
574 This is needed to generate UEFI application image files from ELFs.
576 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
578 * elf32-i386.c (elf_i386_lazy_plt): Add plt_tlsdesc_entry,
579 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
580 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
581 plt_tlsdesc_got2_insn_end for TLSDESC entry.
582 (elf_i386_lazy_ibt_plt): Likewise.
583 (elf_i386_nacl_plt): Likewise.
584 * elf64-x86-64.c (tlsdesc_plt_entry): Moved and renamed to ...
585 (elf_x86_64_tlsdesc_plt_entry): This.
586 (elf_x86_64_lazy_plt): Add plt_tlsdesc_entry,
587 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
588 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
589 plt_tlsdesc_got2_insn_end for TLSDESC entry.
590 (elf_x86_64_lazy_bnd_plt): Likewise.
591 (elf_x86_64_lazy_ibt_plt): Likewise.
592 (elf_x32_lazy_ibt_plt): Likewise.
593 (elf_x86_64_nacl_plt): Likewise.
594 (elf_x86_64_finish_dynamic_sections): Use plt_tlsdesc_entry,
595 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
596 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
597 plt_tlsdesc_got2_insn_end to update TLSDESC entry.
598 * elfxx-x86.h (elf_x86_lazy_plt_layout): Update comments.
599 Add plt_tlsdesc_entry, plt_tlsdesc_entry_size,
600 plt_tlsdesc_got1_offset, plt_tlsdesc_got2_offset,
601 plt_tlsdesc_got1_insn_end and plt_tlsdesc_got2_insn_end.
602 (elf_x86_non_lazy_plt_layout): Update comments.
603 (elf_x86_plt_layout): Likewise.
605 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
608 * elf-s390-common.c (elf_s390_add_symbol_hook): Removed.
609 * elf32-arc.c (elf_arc_add_symbol_hook): Likewise.
610 (elf_backend_add_symbol_hook): Likewise.
611 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
612 (elf_backend_add_symbol_hook): Likewise.
613 * elf32-s390.c (elf_backend_add_symbol_hook): Likewise.
614 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
615 (elf_backend_add_symbol_hook): Likewise.
616 * elf64-s390.c (elf_backend_add_symbol_hook): Likewise.
617 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
618 * elfxx-aarch64.h (_bfd_aarch64_elf_add_symbol_hook): Likewise.
619 (elf_backend_add_symbol_hook): Likewise.
620 * elf32-arm.c (elf32_arm_add_symbol_hook): Remove STT_GNU_IFUNC
622 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
623 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
624 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
625 * elflink.c (elf_link_add_object_symbols): Set
626 elf_gnu_symbol_ifunc for STT_GNU_IFUNC symbols.
628 2018-05-26 H.J. Lu <hongjiu.lu@intel.com>
631 * elf-bfd.h (_bfd_elf_link_hide_sym_by_version): New.
632 * elflink.c (_bfd_elf_link_hide_versioned_symbol): New function.
633 Extracted from _bfd_elf_link_assign_sym_version.
634 (_bfd_elf_link_hide_sym_by_version): New function.
635 (_bfd_elf_link_assign_sym_version): Use
636 _bfd_elf_link_hide_versioned_symbol.
637 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Call
638 _bfd_elf_link_hide_sym_by_version instead of
639 bfd_hide_sym_by_version. Don't check unversioned symbol.
641 2018-05-25 Alan Modra <amodra@gmail.com>
643 * Makefile.in: Regenerate.
644 * po/SRC-POTFILES.in: Regenerate.
646 2018-05-25 Alan Modra <amodra@gmail.com>
648 * configure.ac (bfd_cv_hidden): Run test with -Werror in CFLAGS.
649 * configure: Regenerate.
651 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
653 * elf64-ppc.c (ppc64_elf_write_core_note): Add ATTRIBUTE_NONSTRING
656 2018-05-22 Alan Modra <amodra@gmail.com>
659 * elf32-hppa.c (hppa_get_stub_entry): Return NULL when link_sec
661 (elf32_hppa_size_stubs): Only create stubs for load, alloc, code
663 (final_link_relocate): Revert last change.
665 2018-05-22 Alan Modra <amodra@gmail.com>
668 * elf32-hppa.c (final_link_relocate): Don't look for plt call
669 stubs in non-alloc sections.
671 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
674 * aout-target.h (MY_bfd_link_hide_symbol): New.
675 * aout-tic30.c (MY_bfd_link_hide_symbol): Likewise.
676 * binary.c (binary_bfd_link_hide_symbol): Likewise.
677 * coff-alpha.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
678 * coff-mips.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
679 * coff-rs6000.c (_bfd_xcoff_bfd_link_hide_symbol): Likewise.
680 * coffcode.h (coff_bfd_link_hide_symbol): Likewise.
681 * elf-bfd.h (_bfd_elf_link_hide_symbol): Likewise.
682 * elfxx-target.h (bfd_elfNN_bfd_link_hide_symbol): Likewise.
683 * i386msdos.c (msdos_bfd_link_hide_symbol): Likewise.
684 * ihex.c (ihex_bfd_link_hide_symbol): Likewise.
685 * libbfd-in.h (_bfd_nolink_bfd_link_hide_symbol): Likewise.
686 * linker.c (_bfd_generic_link_hide_symbol): Likewise.
687 (bfd_link_hide_symbol): Likewise.
688 * mach-o-target.c (bfd_mach_o_bfd_link_hide_symbol): Likewise.
689 * mmo.c (mmo_bfd_link_hide_symbol): Likewise.
690 * pef.c (bfd_pef_bfd_link_hide_symbol): Likewise.
691 * plugin.c (bfd_plugin_bfd_link_hide_symbol): Likewise.
692 * ppcboot.c (ppcboot_bfd_link_hide_symbol): Likewise.
693 * som.c (som_bfd_link_hide_symbol): Likewise.
694 * srec.c (srec_bfd_link_hide_symbol): Likewise.
695 * tekhex.c (tekhex_bfd_link_hide_symbol): Likewise.
696 * vms-alpha.c (vms_bfd_link_hide_symbol): Likewise.
697 (alpha_vms_bfd_link_hide_symbol): Likewise.
698 * xsym.c (bfd_sym_bfd_link_hide_symbol): Likewise.
699 * coff64-rs6000.c (rs6000_xcoff64_vec): Add
700 _bfd_generic_link_hide_symbol.
701 (rs6000_xcoff64_aix_vec): Likewise.
702 * elflink.c (bfd_elf_record_link_assignment): Don't make forced
703 local symbol dynamic.
704 (_bfd_elf_link_hide_symbol): New function.
705 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
706 check root.ldscript_def.
707 * targets.c (bfd_target): Add _bfd_link_hide_symbol.
708 (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_link_hide_symbol.
709 * bfd-in2.h: Regenerated.
710 * libbfd.h: Likewise.
712 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
715 * elf.c (setup_group): Mark section in a section group with
718 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
721 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
722 set eh->local_ref to 1 if a symbol is versioned and there is a
725 2018-05-18 Kito Cheng <kito.cheng@gmail.com>
727 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Handle
730 2018-05-18 Jim Wilson <jimw@sifive.com>
732 * elfnn-riscv.c (allocate_dynrelocs): Discard dynamic relocations if
733 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
734 (riscv_elf_relocate_section): Don't generate dynamic relocation if
735 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
736 (riscv_elf_finish_dynamic_symbol): Likewise.
738 2018-05-18 John Darrington <john@darrington.wattle.id.au>
740 * Makefile.am: Add s12z files.
741 * Makefile.in: Regenerate.
742 * archures.c: Add bfd_s12z_arch.
743 * bfd-in.h: Add exports of bfd_putb24 and bfd_putl24.
744 * bfd-in2.h: Regenerate.
745 * config.bfd: Add s12z target.
746 * configure.ac: Add s12z target.
747 * configure: Regenerate.
748 * cpu-s12z.c: New file.
749 * elf32-s12z.c: New file.
750 * libbfd.c (bfd_putb24): New function.
751 (bfd_putl24): New function.
752 * libbfd.h: Regenerate.
753 * reloc.c: Add s12z relocations.
754 (bfd_get_reloc_size): Handle size 5 relocs.
755 * targets.c: Add s12z_elf32_vec.
757 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
760 * elf32-i386.c (elf_i386_relocate_section): Handle R_386_GOT32X
762 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
763 set eh->local_ref to 1 for linker defined symbols.
765 2018-05-18 Alan Modra <amodra@gmail.com>
768 * elf.c (setup_group): Formatting. Check that SHT_GROUP entries
769 don't point at other SHT_GROUP sections. Set shdr corresponding
770 to invalid entry, to NULL rather than section 0. Identify
771 SHT_GROUP section index when reporting an error. Cope with NULL
774 2018-05-18 Alan Modra <amodra@gmail.com>
776 * libbfd-in.h (ATTRIBUTE_HIDDEN): Define and use throughout.
777 * configure.ac (HAVE_HIDDEN): Check compiler support for hidden
779 * libbfd.h: Regenerate.
780 * configure: Regenerate.
781 * config.in: Regenerate.
783 2018-05-18 Alan Modra <amodra@gmail.com>
785 * libbfd-in.h: Add include guard.
786 * libcoff-in.h: Likewise.
787 * doc/Makefile.am (libbfd.h, libcoff.h): Append another #endif.
788 * doc/Makefile.in: Regenerate.
789 * libbfd.h: Regenerate.
790 * libcoff.h: Regenerate.
792 2018-05-16 Maciej W. Rozycki <macro@mips.com>
794 * elf32-nds32.c (nds32_convert_32_to_16): Preset `insn_type'.
796 2018-05-16 Alan Modra <amodra@gmail.com>
799 * format.c (struct bfd_preserve): Add section_id.
800 (bfd_preserve_save, bfd_preserve_restore): Save and restore
802 (bfd_reinit): Set _bfd_section_id.
803 (bfd_check_format_matches): Put all matches of any priority into
804 matching_vector. Save initial section id and start each attempted
805 match at that section id.
806 * libbfd-in.h (_bfd_section_id): Declare.
807 * section.c (_bfd_section_id): Rename from section_id and make
809 (bfd_get_next_section_id): Delete.
810 * elf64-ppc.c (ppc64_elf_setup_section_lists): Replace use of
811 bfd_get_section_id with _bfd_section_id.
812 * libbfd.h: Regenerate.
813 * bfd-in2.h: Regenerate.
815 2018-05-15 Christophe Guillon <christophe.guillon@st.com>
817 * coffcode.h (coff_bigobj_swap_aux_in): Make sure that all fields
818 of the aux structure are initialised.
820 2018-05-15 Francois H. Theron <francois.theron@netronome.com>
822 * targets.c: Wrap nfp_elf64_vec in BFD64 ifdef.
824 2018-05-15 Nick Clifton <nickc@redhat.com>
826 * po/pt.po: New Portuguese translation.
827 * configure.ac (ALL_LINGUAS): Add pt.
828 * configure: Regenerate.
830 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
833 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Don't issue
834 an error on IFUNC pointer defined in PDE.
835 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Call
836 _bfd_x86_elf_link_fixup_ifunc_symbol.
837 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
838 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): New
840 * elfxx-x86.h (_bfd_x86_elf_link_fixup_ifunc_symbol): New.
842 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
845 * elfxx-x86.c (elf_x86_linker_defined): New function.
846 (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start,
847 _end and _edata locally defined within executables.
849 2018-05-12 Alan Modra <amodra@gmail.com>
852 * elf.c (rewrite_elf_program_header): Use segment_mark only for
853 PT_LOAD headers. Delete first_matching_lma and first_suggested_lma.
854 Instead make matching_lma and suggested_lma pointers to the
855 sections. Align section vma and lma calculated from segment.
856 Don't clear includes_phdrs or includes_filehdr based on p_paddr
857 test. Try to handle alignment padding before first section by
858 adjusting new segment lma down. Adjust PT_PHDR map p_paddr.
860 2018-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
862 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Make LDI32 relocation
863 conformant to TI ABI.
864 (pru_elf32_relax_section): Likewise.
865 (pru_elf_relax_delete_bytes): Fix offsets for new LDI32 code.
866 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Ignore addend.
867 (pru_elf32_pmem_relocate): Trap - should not get here.
868 (pru_elf32_relocate_section): Add support for REL relocations.
869 (elf_info_to_howto_rel): Enable REL.
870 (elf_backend_may_use_rel_p): Likewise.
871 (elf_backend_may_use_rela_p): Likewise.
872 (elf_backend_default_use_rela_p): Likewise.
874 2018-05-09 Alan Modra <amodra@gmail.com>
877 * peXXigen.c (pe_print_edata): Correct minimum size.
879 2018-05-09 Alan Modra <amodra@gmail.com>
882 * peXXigen.c (pe_print_idata): Bound check hint_addr.
884 2018-05-08 Nick Clifton <nickc@redhat.com>
887 * elf.c (bfd_elf_get_str_section): Check for an excessively large
889 * elf-attrs.c (_bfd_elf_parse_attributes): Issue an error if the
890 attribute section is larger than the size of the file.
892 2018-05-07 Alan Modra <amodra@gmail.com>
894 * cofflink.c (_bfd_coff_link_input_bfd): Use memcmp rather than
895 strncmp when checking for ".bf" special symbol.
896 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Make pe_required_section_flags
897 section name a char array, remove sentinal known_sections entry,
898 and adjust loop over known_sections to suit. Use memcmp rather
901 2018-05-04 Alan Modra <amodra@gmail.com>
903 * elf-linux-core.h (struct elf_external_linux_prpsinfo32_ugid32),
904 (struct elf_external_linux_prpsinfo32_ugid16),
905 (struct elf_external_linux_prpsinfo64_ugid32),
906 (struct elf_external_linux_prpsinfo64_ugid16): Add ATTRIBUTE_NONSTRING
907 to pr_fname and pr_psargs fields. Remove GCC diagnostic pragmas.
909 * elf.c (elfcore_write_prpsinfo): ..here. Indent nested preprocessor
911 * elf32-arm.c (elf32_arm_nabi_write_core_note): Add ATTRIBUTE_NONSTRING
913 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
914 * elf32-s390.c (elf_s390_write_core_note): Likewise.
915 * elf64-s390.c (elf_s390_write_core_note): Likewise.
916 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
917 * elf64-x86-64.c (elf_x86_64_write_core_note): Add GCC diagnostic
919 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Use strnlen to avoid
920 false positive gcc-8 warning.
921 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
923 2018-05-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
925 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Fix the order
926 of arguments when warning about different long double types.
928 2018-05-03 Simon Atanasyan <simon@atanasyan.com>
930 * elf32-mips.c: (elf32_mips_fixup_symbol): New function.
931 (elf_backend_fixup_symbol): New macro.
932 * elfxx-mips.c: (mips_elf_output_extsym): Discard _gp_disp
934 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
936 2018-04-30 Francois H. Theron <francois.theron@netronome.com>
938 * Makefile.am: Added NFP files to build.
939 * archures.c: Added bfd_arch_nfp
940 * config.bfd: Added NFP support.
941 * configure.ac: Added NFP support.
942 * cpu-nfp.c: New, for NFP support.
943 * elf-bfd.h: Added elf_section_info()
944 * elf64-nfp.c: New, for NFP support.
945 * po/SRC-POTFILES.in: Added NFP source files.
946 * targets.c: Added nfp_elf64_vec
947 * bfd-in2.h: Regenerate.
948 * Makefile.in: Regenerate.
949 * configure: Regenerate.
951 2018-04-27 Alan Modra <amodra@gmail.com>
953 * bfd-in2.h: Regenerate.
954 * libbfd.h: Regenerate.
956 2018-04-27 Alan Modra <amodra@gmail.com>
960 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't drop plt
962 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Comment fixes.
964 2018-04-26 Pedro Alves <palves@redhat.com>
966 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't consider
967 ifunc and non-ifunc symbols duplicates.
969 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
970 Mickaël Guêné <mickael.guene@st.com>
972 * elf32-arm.c (elf32_arm_fdpic_thumb_plt_entry): New.
973 (elf32_arm_plt_needs_thumb_stub_p): Handle thumb-only case.
974 (elf32_arm_populate_plt_entry): Likewise.
975 (elf32_arm_output_plt_map_1): Likewise.
976 (elf32_arm_output_arch_local_syms): Likewise.
978 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
979 Mickaël Guêné <mickael.guene@st.com>
981 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Handle
982 _GLOBAL_OFFSET_TABLE_ in FDPIC mode.
984 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
985 Mickaël Guêné <mickael.guene@st.com>
987 * elf32-arm.c (bfd_elf32_arm_set_target_params): Handle FDPIC case
990 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
991 Mickaël Guêné <mickael.guene@st.com>
993 * elf32-arm.c (DEFAULT_STACK_SIZE): New.
994 (elf32_arm_always_size_sections): Create stack segment.
996 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
997 Mickaël Guêné <mickael.guene@st.com>
999 * bfd-in2.h (BFD_RELOC_ARM_TLS_GD32_FDPIC)
1000 (BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC): New
1002 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_TLS_GD32_FDPIC,
1003 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC relocations.
1004 (elf32_arm_reloc_map): Add R_ARM_TLS_GD32_FDPIC,
1005 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC.
1006 (struct elf32_arm_link_hash_table): Update comment.
1007 (elf32_arm_final_link_relocate): Handle TLS FDPIC relocations.
1008 (IS_ARM_TLS_RELOC): Likewise.
1009 (elf32_arm_check_relocs): Likewise.
1010 (allocate_dynrelocs_for_symbol): Likewise.
1011 (elf32_arm_size_dynamic_sections): Update comment.
1012 * reloc.c: Add BFD_RELOC_ARM_TLS_GD32_FDPIC,
1013 BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC.
1015 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1016 Mickaël Guêné <mickael.guene@st.com>
1018 * elf32-arm.c (elf32_arm_fdpic_plt_entry): New.
1019 (elf32_arm_create_dynamic_sections): Handle FDPIC.
1020 (elf32_arm_allocate_plt_entry): Likewise.
1021 (elf32_arm_populate_plt_entry): Likewise.
1022 (elf32_arm_output_plt_map_1): Likewise.
1024 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1025 Mickaël Guêné <mickael.guene@st.com>
1027 * elf32-arm.c (struct fdpic_local): New.
1028 (elf_arm_obj_tdata): Add local_fdpic_cnts field.
1029 (elf32_arm_local_fdpic_cnts): New.
1030 (struct fdpic_global): New.
1031 (elf32_arm_link_hash_entry): Add fdpic_cnts field.
1032 (elf32_arm_link_hash_table): Add srofixup field.
1033 (arm_elf_add_rofixup): New.
1034 (arm_elf_fill_funcdesc): New.
1035 (elf32_arm_link_hash_newfunc): Handle fdpic_cnts.
1036 (elf32_arm_allocate_local_sym_info): Likewise.
1037 (create_got_section): Create .rofixup section.
1038 (elf32_arm_copy_indirect_symbol): Handle fdpic_cnts.
1039 (bfd_elf32_arm_set_target_params): Handle FDPIC.
1040 (elf32_arm_final_link_relocate): Likewise.
1041 (elf32_arm_check_relocs): Likewise.
1042 (allocate_dynrelocs_for_symbol): Likewise.
1043 (elf32_arm_size_dynamic_sections): Likewise.
1044 (elf32_arm_finish_dynamic_sections): Likewise.
1045 (elf32_arm_output_arch_local_syms): Likewise.
1046 (elf32_arm_fdpic_omit_section_dynsym): New.
1048 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1049 Mickaël Guêné <mickael.guene@st.com>
1051 * bfd-in2.c (BFD_RELOC_ARM_GOTFUNCDESC)
1052 (BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC)
1053 (BFD_RELOC_ARM_FUNCDESC_VALUE): New.
1054 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_GOTFUNCDESC,
1055 R_ARM_GOTOFFFUNCDESC, R_ARM_FUNCDESC, R_ARM_FUNCDESC_VALUE.
1056 (elf32_arm_howto_from_type): Take new members of
1057 elf32_arm_howto_table_2 into account.
1058 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_GOTFUNCDESC,
1059 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
1060 BFD_RELOC_ARM_FUNCDESC_VALUE.
1061 * reloc.c: Add BFD_RELOC_ARM_GOTFUNCDESC,
1062 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
1063 BFD_RELOC_ARM_FUNCDESC_VALUE.
1065 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1066 Mickaël Guêné <mickael.guene@st.com>
1068 * elf32-arm.c (elf32_arm_print_private_bfd_data): Support
1069 EF_ARM_PIC and ELFOSABI_ARM_FDPIC.
1070 (elf32_arm_post_process_headers): Support ELFOSABI_ARM_FDPIC.
1071 (ELF_OSABI): Define to ELFOSABI_ARM_FDPIC.
1073 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1074 Mickaël Guêné <mickael.guene@st.com>
1076 * config.bfd (arm*-*-linux-*): Add arm_elf32_fdpic_be_vec and
1077 arm_elf32_fdpic_le_vec to targ_selvecs. Accept
1078 arm*-*-uclinuxfdpiceabi.
1079 * configure.ac: Add support for arm_elf32_fdpic_be_vec and
1080 arm_elf32_fdpic_le_vec.
1081 * configure: Regenerate.
1082 * elf32-arm.c (struct elf32_arm_link_hash_table): Add fdpic_p.
1083 (elf32_arm_link_hash_table_create): Initialize fdpic_p.
1084 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM)
1085 (TARGET_BIG_NAME, elf_match_priority): Define for FDPIC targets.
1086 (elf32_arm_fdpic_link_hash_table_create): New.
1087 * targets.c (_bfd_target_vector): Add arm_elf32_fdpic_be_vec and
1088 arm_elf32_fdpic_le_vec.
1090 2018-04-25 Alan Modra <amodra@gmail.com>
1092 * elf-linux-core.h: Disable gcc-8 string truncation warning.
1093 * elf.c (elfcore_write_prpsinfo): Likewise.
1095 2018-04-25 Alan Modra <amodra@gmail.com>
1097 * Makefile.am: Remove arm-aout and arm-coff support.
1098 * config.bfd: Likewise.
1099 * configure.ac: Likewise.
1100 * targets.c: Likewise.
1101 * aout-arm.c: Delete.
1102 * armnetbsd.c: Delete.
1104 * Makefile.in: Regenerate.
1105 * configure: Regenerate.
1106 * po/SRC-POTFILES.in: Regenerate.
1108 2018-04-24 Nick Clifton <nickc@redhat.com>
1111 * elf.c (ignore_section_sym): Check for the output_section pointer
1112 being NULL before dereferencing it.
1115 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check for
1116 a negative PE_DEBUG_DATA size before iterating over the debug data.
1118 2018-04-23 Alan Modra <amodra@gmail.com>
1120 * elf-linux-core.h: Revert last change.
1123 2018-04-23 Nick Clifton <nickc@redhat.com>
1126 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
1127 the end of the string table, and zero it.
1129 2018-04-23 Alan Modra <amodra@gmail.com>
1131 * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable
1132 gcc-8 string truncation warning.
1133 (swap_linux_prpsinfo32_ugid16_out): Likewise.
1134 (swap_linux_prpsinfo64_ugid32_out): Likewise.
1135 (swap_linux_prpsinfo64_ugid16_out): Likewise.
1136 * elf.c (elfcore_write_prpsinfo): Likewise.
1138 2018-04-23 Nick Clifton <nickc@redhat.com>
1141 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
1142 the end of the string table, and zero it.
1144 2018-04-20 Alan Modra <amodra@gmail.com>
1147 * elf32-hppa.c (got_relocs_needed): Add extra param to special
1148 case both dtprel and tprel relocs.
1149 (allocate_dynrelocs): Adjust conditions for got relocs.
1150 (elf32_hppa_relocate_section): Likewise for local sym got relocs.
1151 Emit dynamic relocs on TLS GOT entries for shared libraries,
1152 not when pic. Omit dynamic reloc on dtprel entry when local,
1153 and on tprel entry when local and executable.
1155 2018-04-19 Alan Modra <amodra@gmail.com>
1158 * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1.
1159 (hppa_type_of_stub): Don't return a long branch stub for
1160 symbols other than those defined statically.
1162 2018-04-19 Alan Modra <amodra@gmail.com>
1164 * Makefile.am: Revert 2018-04-18 coff-mips changes.
1165 * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec
1166 to selvecs for mips targets change 2018-04-18.
1167 * configure.ac: Reinstate mips_ecoff_le_vec, mips_ecoff_be_vec
1168 and mips_ecoff_bele_vec.
1169 * targets.c: Likewise.
1170 * coff-mips.c: Resurrect.
1171 * Makefile.in: Regenerate.
1172 * configure: Regenerate.
1173 * po/SRC-POTFILES.in: Regenerate.
1175 2018-04-18 Alan Modra <amodra@gmail.com>
1177 * Makefile.am: Remove mips aout and coff support.
1178 * config.bfd: Likewise.
1179 * configure.ac: Likewise.
1180 * targets.c: Likewise.
1181 * coff-mips.c: Delete
1184 * pei-mips.c: Delete
1185 * Makefile.in: Regenerate.
1186 * configure: Regenerate.
1187 * po/SRC-POTFILES.in: Regenerate.
1189 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
1191 * elf32-i386.c (elf32_bed): Define before including
1193 * elf64-x86-64.c (elf64_bed): Define before including
1195 (elf32_bed): Define before including "elf32-target.h".
1197 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
1200 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a
1201 normal input file with compatible relocation.
1203 2018-04-18 Alan Modra <amodra@gmail.com>
1205 * Makefile.am: Remove support for assorted i386 aout and coff targets.
1206 * config.bfd: Likewise.
1207 * configure.ac: Likewise.
1208 * doc/bfdint.texi: Likewise.
1209 * targets.c: Likewise.
1210 * freebsd.h: Delete.
1211 * i386dynix.c: Delete.
1212 * i386freebsd.c: Delete.
1213 * i386linux.c: Delete.
1214 * i386mach3.c: Delete.
1215 * i386netbsd.c: Delete.
1216 * i386os9k.c: Delete.
1217 * Makefile.in: Regenerate.
1218 * configure: Regenerate.
1219 * po/SRC-POTFILES.in: Regenerate.
1221 2018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com>
1223 Microblaze Target: PIC data text relative
1225 * bfd/reloc.c (2 new BFD relocations):
1226 BFD_RELOC_MICROBLAZE_64_TEXTPCREL &
1227 BFD_RELOC_MICROBLAZE_64_TEXTPCREL
1228 * bfd/bfd-in2.h: Regenerate
1229 * bfd/libbfd.h: Regenerate
1230 * bfd/elf32-microblaze.c (Handle new relocs): define 'HOWTO' of 3
1231 new relocs and handle them in both relocate and relax functions.
1232 (microblaze_elf_reloc_type_lookup): add mapping between for new
1234 (microblaze_elf_relocate_section): Handle new relocs in case of
1236 (microblaze_elf_relax_section): Handle new relocs for elf relaxation.
1238 2018-04-17 Nick Clifton <nickc@redhat.com>
1241 * aoutx.h (find_nearest_line): Check that the symbol name exists
1242 and is long enough, before attempting to see if it is for a .o
1244 * hash.c (bfd_hash_hash): Add an assertion that the string is not
1246 * linker.c (bfd_link_hash_lookup): Fail if the table or string are
1248 (_bfd_generic_link_add_archive_symbols): Fail if an archive entry
1252 * dwarf2.c (concat_filename): Check for a NULL table pointer.
1254 2018-04-16 Nick Clifton <nickc@redhat.com>
1257 * coffgen.c (coff_pointerize_aux): Check for an out of range
1260 2018-04-16 Alan Modra <amodra@gmail.com>
1262 * Makefile.am: Remove arm-epoc-pe support.
1263 * coff-arm.c: Likewise.
1264 * config.bfd: Likewise.
1265 * configure.ac: Likewise.
1266 * targets.c: Likewise.
1267 * epoc-pe-arm.c: Delete.
1268 * epoc-pei-arm.c: Delete.
1269 * Makefile.in: Regenerate.
1270 * configure: Regenerate.
1271 * po/SRC-POTFILES.in: Regenerate.
1273 2018-04-16 Alan Modra <amodra@gmail.com>
1275 * Makefile.am: Remove sparc-aout and sparc-coff support.
1276 * config.bfd: Likewise.
1277 * configure.ac: Likewise.
1278 * targets.c: Likewise.
1279 * aout-sparcle.c: Delete.
1281 * cf-sparclynx.c: Delete.
1282 * coff-sparc.c: Delete.
1284 * sparclinux.c: Delete.
1285 * sparclynx.c: Delete.
1286 * sparcnetbsd.c: Delete.
1288 * Makefile.in: Regenerate.
1289 * configure: Regenerate.
1290 * po/SRC-POTFILES.in: Regenerate.
1292 2018-04-16 Alan Modra <amodra@gmail.com>
1294 * Makefile.am: Remove m68k-aout and m68k-coff support.
1295 * aoutf1.h: Likewise.
1296 * aoutx.h: Likewise.
1297 * archive.c: Likewise.
1298 * bfd-in.h: Likewise.
1300 * coffcode.h: Likewise.
1301 * coffswap.h: Likewise.
1302 * config.bfd: Likewise.
1303 * configure.ac: Likewise.
1304 * configure.host: Likewise.
1305 * doc/bfd.texinfo: Likewise.
1306 * doc/bfdint.texi: Likewise.
1307 * freebsd.h: Likewise.
1308 * gen-aout.c: Likewise.
1309 * hpux-core.c: Likewise.
1310 * libaout.h: Likewise.
1311 * libbfd-in.h: Likewise.
1312 * pdp11.c: Likewise.
1313 * peicode.h: Likewise.
1314 * riscix.c: Likewise.
1315 * targets.c: Likewise.
1317 * coff-apollo.c: Delete.
1318 * coff-aux.c: Delete.
1319 * coff-m68k.c: Delete.
1320 * coff-svm68k.c: Delete.
1321 * coff-u68k.c: Delete.
1322 * hosts/delta68.h: Delete.
1323 * hosts/hp300bsd.h: Delete.
1324 * hosts/m68kaux.h: Delete.
1325 * hosts/news.h: Delete.
1326 * hp300bsd.c: Delete.
1327 * hp300hpux.c: Delete.
1328 * liboasys.h: Delete.
1329 * m68k4knetbsd.c: Delete.
1330 * m68klinux.c: Delete.
1331 * m68knetbsd.c: Delete.
1333 * versados.c: Delete.
1334 * Makefile.in: Regenerate.
1335 * bfd-in2.h: Regenerate.
1336 * configure: Regenerate.
1337 * libbfd.h: Regenerate.
1338 * po/SRC-POTFILES.in: Regenerate.
1340 2018-04-16 Alan Modra <amodra@gmail.com>
1342 * Makefile.am: Remove sh5 and sh64 support.
1343 * archures.c: Likewise.
1344 * config.bfd: Likewise.
1345 * configure.ac: Likewise.
1346 * cpu-sh.c: Likewise.
1347 * elf32-sh-relocs.h: Likewise.
1348 * elf32-sh.c: Likewise.
1349 * targets.c: Likewise.
1350 * elf32-sh64-com.c: Delete.
1351 * elf32-sh64.c: Delete.
1352 * elf32-sh64.h: Delete.
1353 * elf64-sh64.c: Delete.
1354 * Makefile.in: Regenerate.
1355 * bfd-in2.h: Regenerate.
1356 * configure: Regenerate.
1357 * po/SRC-POTFILES.in: Regenerate.
1359 2018-04-16 Alan Modra <amodra@gmail.com>
1361 * Makefile.am: Remove sh-symbianelf support.
1362 * config.bfd: Likewise.
1363 * configure.ac: Likewise.
1364 * targets.c: Likewise.
1365 * elf32-sh-symbian.c: Delete.
1366 * Makefile.in: Regenerate.
1367 * configure: Regenerate.
1368 * po/SRC-POTFILES.in: Regenerate.
1370 2018-04-16 Alan Modra <amodra@gmail.com>
1372 * Makefile.am: Remove vax-bsd and vax-ultrix support.
1373 * config.bfd: Likewise.
1374 * configure.ac: Likewise.
1375 * targets.c: Likewise.
1377 * Makefile.in: Regenerate.
1378 * configure: Regenerate.
1379 * po/SRC-POTFILES.in: Regenerate.
1381 2018-04-16 Alan Modra <amodra@gmail.com>
1383 * Makefile.am: Remove w65 support.
1384 * archures.c: Likewise.
1385 * coffcode.h: Likewise.
1386 * config.bfd: Likewise.
1387 * configure.ac: Likewise.
1388 * targets.c: Likewise.
1389 * coff-w65.c: Delete.
1390 * cpu-w65.c: Delete.
1391 * Makefile.in: Regenerate.
1392 * bfd-in2.h: Regenerate.
1393 * configure: Regenerate.
1394 * po/SRC-POTFILES.in: Regenerate.
1396 2018-04-16 Alan Modra <amodra@gmail.com>
1398 * Makefile.am: Remove we32k support.
1399 * archures.c: Likewise.
1400 * coffcode.h: Likewise.
1401 * config.bfd: Likewise.
1402 * configure.ac: Likewise.
1403 * targets.c: Likewise.
1404 * coff-we32k.c: Delete.
1405 * cpu-we32k.c: Delete.
1406 * Makefile.in: Regenerate.
1407 * bfd-in2.h: Regenerate.
1408 * configure: Regenerate.
1409 * po/SRC-POTFILES.in: Regenerate.
1411 2018-04-16 Alan Modra <amodra@gmail.com>
1413 * Makefile.am: Remove m88k support.
1414 * aoutx.h: Likewise.
1415 * archures.c: Likewise.
1416 * coffcode.h: Likewise.
1417 * coffswap.h: Likewise.
1418 * config.bfd: Likewise.
1419 * configure.ac: Likewise.
1420 * cpu-ns32k.c: Likewise.
1421 * elf32-nds32.c: Likewise.
1422 * mach-o.c: Likewise.
1423 * netbsd-core.c: Likewise.
1424 * reloc.c: Likewise.
1425 * targets.c: Likewise.
1426 * coff-m88k.c: Delete.
1427 * cpu-m88k.c: Delete.
1428 * elf32-m88k.c: Delete.
1429 * hosts/m88kmach3.h: Delete.
1430 * m88kmach3.c: Delete.
1431 * m88kopenbsd.c: Delete.
1432 * Makefile.in: Regenerate.
1433 * bfd-in2.h: Regenerate.
1434 * configure: Regenerate.
1435 * po/SRC-POTFILES.in: Regenerate.
1437 2018-04-16 Alan Modra <amodra@gmail.com>
1439 * Makefile.am: Remove i370 support.
1440 * archures.c: Likewise.
1441 * config.bfd: Likewise.
1442 * configure.ac: Likewise.
1443 * targets.c: Likewise.
1444 * cpu-i370.c: Delete.
1445 * elf32-i370.c: Delete.
1446 * Makefile.in: Regenerate.
1447 * bfd-in2.h: Regenerate.
1448 * configure: Regenerate.
1449 * po/SRC-POTFILES.in: Regenerate.
1451 2018-04-16 Alan Modra <amodra@gmail.com>
1453 * Makefile.am: Remove h8500 support.
1454 * archures.c: Likewise.
1455 * coffcode.h: Likewise.
1456 * config.bfd: Likewise.
1457 * configure.ac: Likewise.
1458 * targets.c: Likewise.
1459 * coff-h8500.c: Delete.
1460 * cpu-h8500.c: Delete.
1461 * Makefile.in: Regenerate.
1462 * bfd-in2.h: Regenerate.
1463 * configure: Regenerate.
1464 * po/SRC-POTFILES.in: Regenerate.
1466 2018-04-16 Alan Modra <amodra@gmail.com>
1468 * Makefile.am: Remove h8300-coff support.
1469 * coffcode.h: Likewise.
1470 * config.bfd: Likewise.
1471 * configure.ac: Likewise.
1472 * reloc16.c: Likewise.
1473 * targets.c: Likewise.
1474 * coff-h8300.c: Delete.
1475 * Makefile.in: Regenerate.
1476 * configure: Regenerate.
1477 * po/SRC-POTFILES.in: Regenerate.
1479 2018-04-16 Alan Modra <amodra@gmail.com>
1481 * Makefile.am: Remove IEEE 695 support.
1482 * archures.c: Likewise.
1484 * config.bfd: Likewise.
1485 * configure.ac: Likewise.
1486 * doc/bfd.texinfo: Likewise.
1487 * doc/bfdint.texi: Likewise.
1488 * doc/bfdsumm.texi: Likewise.
1489 * section.c: Likewise.
1490 * targets.c: Likewise.
1492 * libieee.h: Delete.
1493 * Makefile.in: Regenerate.
1494 * bfd-in2.h: Regenerate.
1495 * configure: Regenerate.
1496 * po/SRC-POTFILES.in: Regenerate.
1498 2018-04-16 Alan Modra <amodra@gmail.com>
1500 * config.bfd: Remove tandem support.
1502 2018-04-16 Alan Modra <amodra@gmail.com>
1504 * Makefile.am: Remove newsos3 support.
1505 * aoutx.h: Likewise.
1506 * config.bfd: Likewise.
1507 * configure.ac: Likewise.
1508 * targets.c: Likewise.
1509 * newsos3.c: Delete.
1510 * Makefile.in: Regenerate.
1511 * configure: Regenerate.
1512 * po/SRC-POTFILES.in: Regenerate.
1514 2018-04-16 Alan Modra <amodra@gmail.com>
1516 * Makefile.am: Remove netware support.
1517 * bfd-in.h: Likewise.
1519 * config.bfd: Likewise.
1520 * configure.ac: Likewise.
1521 * doc/bfdint.texi: Likewise.
1522 * ecoff.c: Likewise.
1523 * targets.c: Likewise.
1525 * nlm-target.h: Delete.
1527 * nlm32-alpha.c: Delete.
1528 * nlm32-i386.c: Delete.
1529 * nlm32-ppc.c: Delete.
1530 * nlm32-sparc.c: Delete.
1533 * nlmcode.h: Delete.
1534 * nlmswap.h: Delete.
1535 * Makefile.in: Regenerate.
1536 * bfd-in2.h: Regenerate.
1537 * configure: Regenerate.
1538 * po/SRC-POTFILES.in: Regenerate.
1540 2018-04-16 Alan Modra <amodra@gmail.com>
1542 * archures.c: Remove tahoe support.
1543 * config.bfd: Likewise.
1544 * configure.ac: Likewise.
1545 * hosts/tahoe.h: Delete.
1546 * bfd-in2.h: Regenerate.
1547 * configure: Regenerate.
1549 2018-04-14 Alan Modra <amodra@gmail.com>
1551 * elf-bfd.h (struct elf_backend_data): Add relropagesize.
1552 * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and
1554 (elfNN_bed): Init relropagesize.
1555 * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to
1556 select relropagesize.
1557 * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1558 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1559 (ELF_MINPAGESIZE): Don't define.
1560 * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1561 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1562 * bfd-in2.h: Regenerate.
1564 2018-04-14 Alan Modra <amodra@gmail.com>
1566 * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend
1567 on __QNXTARGET__ define.
1569 2018-04-14 Alan Modra <amodra@gmail.com>
1571 * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
1574 2018-04-11 Alan Modra <amodra@gmail.com>
1576 * aout-adobe.c: Delete.
1578 * coff-i860.c: Delete.
1579 * coff-i960.c: Delete.
1580 * cpu-i860.c: Delete.
1581 * cpu-i960.c: Delete.
1582 * elf32-i860.c: Delete.
1583 * elf32-i960.c: Delete.
1584 * hosts/i860mach3.h: Delete.
1585 * Makefile.am: Remove i860, i960, bout, and adobe support.
1586 * archures.c: Remove i860 and i960 support.
1587 * coffcode.h: Likewise.
1588 * reloc.c: Likewise.
1589 * aoutx.h: Comment updates.
1590 * archive.c: Remove BOUT and i960 support.
1591 * bfd.c: Remove BOUT support.
1592 * coffswap.h: Remove i960 support.
1593 * config.bfd: Remove i860, i960 and adobe targets.
1594 * configure.ac: Remove adode, bout, i860, i960, icoff targets.
1595 * targets.c: Likewise.
1596 * ieee.c: Remove i960 support.
1597 * mach-o.c: Remove i860 support.
1598 * Makefile.in: Regenerate.
1599 * bfd-in2.h: Regenerate.
1600 * configure: Regenerate.
1601 * libbfd.h: Regenerate.
1602 * po/SRC-POTFILES.in: Regenerate.
1604 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1606 * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer
1607 in the BFD symbol referred by the relocation.
1608 (mips_elf64_write_rela): Likewise.
1610 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1612 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an
1613 error for out-of-range `r_sym' values.
1615 2018-04-09 Alan Modra <amodra@gmail.com>
1617 * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field.
1618 (struct ppc_link_hash_table): Add can_convert_all_inline_plt.
1619 (ppc64_elf_check_relocs): Set has_pltcall.
1620 (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries.
1621 (ppc64_elf_inline_plt): New function.
1622 (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals.
1623 * elf64-ppc.h (ppc64_elf_inline_plt): Declare.
1624 * elf32-ppc.c (has_pltcall): Define.
1625 (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt.
1626 (ppc_elf_check_relocs): Set has_pltcall.
1627 (ppc_elf_inline_plt): New function.
1628 (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries.
1629 (ppc_elf_size_dynamic_sections): Likewise.
1630 * elf32-ppc.h (ppc_elf_inline_plt): Declare.
1632 2018-04-09 Alan Modra <amodra@gmail.com>
1634 * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos.
1635 (is_plt_seq_reloc): New function.
1636 (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs.
1637 (ppc_elf_tls_optimize): Handle inline plt call sequence.
1638 (ppc_elf_relax_section): Handle PLTCALL reloc.
1639 (ppc_elf_relocate_section): Nop out inline plt call sequence when
1641 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and
1642 R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE.
1643 (has_tls_get_addr_call): Correct comment.
1644 (is_branch_reloc): Add PLTCALL.
1645 (is_plt_seq_reloc): New function.
1646 (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set
1647 has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt
1648 entry for R_PPC64_PLTCALL.
1649 (ppc64_elf_tls_optimize): Handle inline plt call sequence.
1650 (ppc_type_of_stub): Handle PLTCALL reloc.
1651 (toc_adjusting_stub_needed): Likewise.
1652 (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL
1653 reloc insn. Nop out inline plt call sequence when resolving
1654 locally. Handle __tls_get_addr inline plt call optimization.
1656 2018-04-09 Alan Modra <amodra@gmail.com>
1658 * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define.
1659 (struct ppc_stub_hash_entry): Add symtype field.
1661 (struct ppc_link_hash_table): Add pltlocal and relpltlocal.
1662 (create_linkage_sections): Create pltlocal and relpltlocal.
1663 (ppc64_elf_check_relocs): Allow PLT relocs on local symbols.
1665 (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1666 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1667 (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1668 Keep PLT entries for inline calls against locals.
1669 (ppc_build_one_stub): Use pltlocal as appropriate.
1670 (ppc_size_one_stub): Likewise.
1671 (ppc64_elf_size_stubs): Set symtype.
1672 (build_global_entry_stubs_and_plt): Init pltlocal and write
1673 relpltlocal for globals.
1674 (write_plt_relocs_for_local_syms): Likewise for local syms.
1675 (ppc64_elf_relocate_section): Support PLT for local syms.
1676 * elf32-ppc.c (PLT_KEEP): Define.
1677 (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal.
1678 (ppc_elf_create_glink): Create pltlocal and relpltlocal.
1679 (ppc_elf_check_relocs): Allow PLT relocs on local symbols.
1680 Set PLT_KEEP. Adjust update_local_sym_info call.
1681 (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1682 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1683 (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1684 (ppc_elf_relocate_section): Support PLT16 relocs for local syms.
1685 (write_global_sym_plt): Init pltlocal and write relpltlocal.
1686 (ppc_finish_symbols): Likewise for locals.
1688 2018-04-09 Alan Modra <amodra@gmail.com>
1690 * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs
1691 for local symbols to..
1692 (write_plt_relocs_for_local_syms): ..here. New function.
1693 (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for
1695 (build_global_entry_stubs_and_plt): ..here. Rename from
1696 build_global_entry_stubs.
1697 (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt.
1698 Call write_plt_relocs_for_local_syms.
1699 * elf32-ppc.c (get_sym_h): New function.
1700 (ppc_elf_relax_section): Use get_sym_h.
1701 (ppc_elf_relocate_section): Move output of PLT relocs and glink
1702 stubs for local symbols to..
1703 (ppc_finish_symbols): ..here. New function.
1704 (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for
1706 (write_global_sym_plt): ..here. New function.
1707 * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute.
1708 (ppc_finish_symbols): Declare.
1710 2018-04-09 Alan Modra <amodra@gmail.com>
1712 * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs.
1713 (ppc_elf_relocate_section): Likewise.
1714 * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS.
1715 (ppc64_elf_relocate_section): Likewise. Correct PLT16
1716 resolution to plt entry relative to toc pointer.
1718 2018-04-09 Alan Modra <amodra@gmail.com>
1720 * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1721 TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout
1722 file when other TLS flags are tested in a mask.
1723 (TLS_MARK, NON_GOT): Define.
1724 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1725 (update_local_sym_info): Don't create got entry when NON_GOT.
1726 (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1728 (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK.
1729 (ppc64_elf_relocate_section): Likewise.
1730 (ppc64_elf_tls_optimize): Don't attempt to optimize indirect
1731 __tls_get_addr calls lacking a marker reloc.
1732 * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1733 TLS_TPRELGD): Renumber. Update comment.
1734 (TLS_MARK, NON_GOT): Define.
1735 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1736 (update_local_sym_info): Don't create got entry when NON_GOT.
1737 (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1739 (ppc_elf_tls_optimize): Don't attempt to optimize indirect
1740 __tls_get_addr calls lacking a marker reloc.
1742 2018-04-06 H.J. Lu <hongjiu.lu@intel.com>
1744 * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out
1745 R_X86_64_converted_reloc_bit.
1747 2018-04-05 H.J. Lu <hongjiu.lu@intel.com>
1750 * configure: Regenerated.
1752 2018-04-05 Alan Modra <amodra@gmail.com>
1754 * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
1755 (elf_hppa_info_to_howto_rel): Likewise.
1757 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1759 * elf-hppa.h (elf_hppa_info_to_howto): Also return
1760 unsuccessfully for unimplemented relocations.
1761 (elf_hppa_info_to_howto_rel): Likewise.
1763 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1765 * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the
1766 `bfd_error_bad_value' error and call `_bfd_error_handler' on a
1767 howto lookup failure.
1768 (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call
1770 (elf32_i860_info_to_howto_rela): Likewise.
1771 (elf32_i860_relocate_splitn): Likewise.
1772 (elf32_i860_relocate_pc16): Likewise.
1773 (elf32_i860_relocate_pc26): Likewise.
1774 (elf32_i860_relocate_section): Likewise.
1776 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1778 * elf32-visium.c (visium_info_to_howto_rela): Correct the range
1779 check for `visium_elf_howto_table' table access.
1781 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1783 * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range
1784 check for `iq2000_elf_howto_table' table access.
1786 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1788 * elf32-frv.c (frv_info_to_howto_rela): Correct the range check
1789 for `elf32_frv_howto_table' table access.
1791 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1793 * elf32-mips.c (mips_elf32_rtype_to_howto): Also return
1794 unsuccessfully for placeholder howtos.
1795 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
1796 * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise.
1798 2018-03-29 Maciej W. Rozycki <macro@mips.com>
1800 * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to
1801 `_bfd_error_handler' and to set the `bfd_error_bad_value' error.
1803 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1805 * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
1806 ATTRIBUTE_UNUSED from `abfd'.
1808 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1810 * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct
1811 `_bfd_error_handler' call formatting.
1813 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1815 * elf32-mips.c (mips_info_to_howto_rel): Call
1816 `mips_elf32_rtype_to_howto' directly rather than via
1817 `->elf_backend_mips_rtype_to_howto'.
1819 2018-03-28 Renlin Li <renlin.li@arm.com>
1822 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for
1823 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1824 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1825 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1826 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1827 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1828 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1829 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1830 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1831 (elfNN_aarch64_final_link_relocate): Support new relocations.
1832 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new
1834 (_bfd_aarch64_elf_resolve_relocation): Support new relocations.
1836 2018-03-28 Renlin Li <renlin.li@arm.com>
1839 * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12
1840 BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC,
1841 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1842 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1843 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1844 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1845 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1846 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1847 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1848 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1849 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for
1850 TLSLE_LDST16_TPREL_LO12,
1851 TLSLE_LDST16_TPREL_LO12_NC,
1852 TLSLE_LDST32_TPREL_LO12,
1853 TLSLE_LDST32_TPREL_LO12_NC,
1854 TLSLE_LDST64_TPREL_LO12,
1855 TLSLE_LDST64_TPREL_LO12_NC,
1856 TLSLE_LDST8_TPREL_LO12,
1857 TLSLE_LDST8_TPREL_LO12_NC.
1858 * bfd-in2.h: Regenerated.
1859 * libbfd.h: Regenerated.
1861 2018-03-28 Eric Botcazou <ebotcazou@adacore.com>
1864 * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
1865 has_old_style_got_reloc.
1866 (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
1867 relocations. Fix a couple of long lines.
1868 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
1869 a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style
1872 2018-03-25 H.J. Lu <hongjiu.lu@intel.com>
1875 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
1876 ENDBR64 to the TLSDESC PLT entry.
1878 2018-03-21 Alan Modra <amodra@gmail.com>
1880 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting
1881 symbols. Use size_t counts. Delete redundant opd test.
1883 2018-03-21 Alan Modra <amodra@gmail.com>
1885 * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms.
1887 2018-03-21 Alan Modra <amodra@gmail.com>
1889 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask
1891 (update_local_sym_info): Likewise for local_got_tls_masks.
1892 (ppc_elf_tls_optimize): Likewise for lgot_masks.
1894 2018-03-21 Alan Modra <amodra@gmail.com>
1896 * elf64-ppc.c (ppc_size_one_stub): Fix comment typo.
1897 (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we
1898 do in size_dynamic_sections.
1900 2018-03-21 Alan Modra <amodra@gmail.com>
1902 * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1]
1903 without first checking array bounds.
1904 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1906 2018-03-20 H.J. Lu <hongjiu.lu@intel.com>
1909 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
1910 non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.
1912 2018-03-19 Nick Clifton <nickc@redhat.com>
1914 * po/es.po: Updated Spanish translation.
1916 2018-03-15 Max Filippov <jcmvbkbc@gmail.com>
1918 * elf32-xtensa.c (xlate_map_entry): Change types of address
1919 fields from 'unsigned' to 'bfd_vma'.
1920 (xlate_offset_with_removed_text): Use struct xlate_map_entry as
1921 the key argument to bsearch. Allow offsets past the end of a
1922 section, use the last map entry for translation of such offsets.
1924 2018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1926 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed.
1927 Not support the target feature.
1928 (nds32_elf_ex9_itb_base): Likewise.
1929 (nds32_elf_ex9_import_table): Likewise.
1930 (nds32_elf_ex9_finish): Likewise.
1931 (nds32_elf_ex9_reloc_jmp): Likewise.
1932 (nds32_elf_get_insn_with_reg): Likewise.
1933 (nds32_get_local_syms): Likewise.
1934 (nds32_elf_ex9_replace_instruction): Likewise.
1935 (nds32_elf_ifc_calc): Likewise.
1936 (nds32_elf_ifc_finish): Likewise.
1937 (nds32_elf_ifc_replace): Likewise.
1938 (nds32_elf_ifc_reloc): Likewise.
1940 2018-03-14 Alan Modra <amodra@gmail.com>
1942 * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
1943 sfpr size added before defining alias symbols.
1944 (ppc64_elf_build_stubs): Add stub section padding before
1945 copying sfpr contents and defining save/restore alias symbols.
1947 2018-03-14 H.J. Lu <hongjiu.lu@intel.com>
1950 * elflink.c (elf_gc_mark_debug_section): Also check the local
1951 debug definition section.
1953 2018-03-13 Nick Clifton <nickc@redhat.com>
1956 * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean
1957 function. Add an end address parameter. Check access of the data
1958 pointer to make sure that they do not extend beyond the end
1959 address. Return FALSE if any check fails. Add the end address
1960 pointer to the ui structure.
1961 (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind
1962 codes to make sure that they do not extend beyond the end address
1963 pointer. Print an error message and return immediately if any
1966 2018-03-09 Nick Clifton <nickc@redhat.com>
1968 * elf64-s390.c (elf_s390_relocate_section): Move check for
1969 relocations against non-allocated sections to before the code that
1970 handles ifunc relocations.
1971 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1972 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat
1973 relocs against IFUNC symbols in non-allocated sections as relocs
1974 against FUNC symbols.
1975 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1977 2018-03-08 H.J. Lu <hongjiu.lu@intel.com>
1980 * elf32-i386.c (elf_i386_relocate_section): Treat relocation
1981 against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as
1982 relocation against FUNC symbol.
1983 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1985 2018-03-07 Renlin Li <renlin.li@arm.com>
1988 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute
1989 symbol, and don't emit relocation in specific case.
1991 2018-03-07 Alan Modra <amodra@gmail.com>
1993 * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error.
1994 (mips_elf64_slurp_one_reloc_table): Pass on error.
1996 2018-03-03 James Cowgill <james.cowgill@mips.com>
1997 Maciej W. Rozycki <macro@mips.com>
2000 * elfxx-mips.c (mips_elf_calculate_relocation): Only return
2001 after calling `undefined_symbol' hook if this is an error
2002 condition. Assume the value of 0 for the symbol requested
2005 2018-03-02 Jim Wilson <jimw@sifive.com>
2008 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch
2009 and nop instead of 4.
2010 (elfNN_arch64_build_stubs): Add nop after branch. Increase size by
2013 2018-03-01 Jim Wilson <jimw@sifive.com>
2016 * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use
2017 else if instead of if.
2019 2018-03-01 Alan Modra <amodra@gmail.com>
2021 * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
2023 2018-02-28 Alan Modra <amodra@gmail.com>
2026 * aoutx.h (swap_std_reloc_in): Correct r_index bound check.
2028 2018-02-28 Nick Clifton <nickc@redhat.com>
2032 * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block
2033 pointer. Drop unused abfd parameter. Check the size of the block
2034 before initialising the data field. Return the end pointer if the
2036 (read_attribute_value): Adjust invocations of read_n_bytes.
2039 * dwarf1.c (parse_die): Check the length of form blocks before
2040 advancing the data pointer.
2042 2018-02-28 Alan Modra <amodra@gmail.com>
2045 * aoutx.h (translate_symbol_table): Print an error message and set
2046 bfd_error on finding an invalid name string offset.
2048 2018-02-27 H.J. Lu <hongjiu.lu@intel.com>
2050 * config.in: Regenerated.
2051 * configure: Likewise.
2052 * configure.ac: Add --enable-separate-code.
2053 (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default
2054 to 1 for Linux/x86 targets,
2055 * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if
2056 DEFAULT_LD_Z_SEPARATE_CODE is 1.
2058 2018-02-27 Nick Clifton <nickc@redhat.com>
2060 * aout-cris.c (swap_ext_reloc_out): Standadize error/warning
2062 * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise.
2063 * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise.
2064 * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise.
2065 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise.
2066 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
2067 * elf64-sh64.c (sh_elf64_info_to_howto): Likewise.
2068 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
2069 * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise.
2070 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
2073 * elf-bfd.h (struct elf_backend_data): Change the return type of
2074 the elf_info_to_howto and elf_info_to_howto_rel function pointers
2076 * elfcode.h (elf_slurp_reloc_table_from_section): Check the return
2077 value from the info_to_howto function and fail if that function
2079 * elf32-h8300.c (elf32_h8_relocate_section): Check return value
2080 from the info_to_howto function.
2081 (elf32_h8_relax_section): Likewise.
2082 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
2083 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
2084 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
2085 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
2086 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
2087 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
2088 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise.
2089 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
2090 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
2091 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
2092 (riscv_elf_relocate_section): Likewise.
2093 * elf-hppa.h (elf_hppa_info_to_howto): Change return type to
2094 bfd_boolean. Issue an error message, set an error value and
2095 return FALSE if the reloc is not recognized.
2096 (elf_hppa_info_to_howto_rel): Likewise.
2097 * elf-m10200.c (mn10200_info_to_howto): Likewise.
2098 * elf-m10300.c (mn10300_info_to_howto): Likewise.
2099 * elf.c (_bfd_elf_no_info_to_howto): Likewise.
2100 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
2101 * elf32-arm.c (elf32_arm_info_to_howto): Likewise.
2102 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
2103 * elf32-bfin.c (bfin_info_to_howto): Likewise.
2104 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
2105 * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise.
2106 * elf32-cris.c (elf_cr16c_info_to_howto_rel)
2107 (cris_info_to_howto_rela): Likewise.
2108 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
2109 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
2110 * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela):
2112 * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto)
2113 (elf32_dlx_info_to_howto_rel): Likewise.
2114 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
2115 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
2116 * elf32-frv.c (frv_info_to_howto_rela)
2117 (frvfdpic_info_to_howto_rel): Likewise.
2118 * elf32-ft32.c (ft32_info_to_howto_rela): Likewise.
2119 * elf32-gen.c (elf_generic_info_to_howto)
2120 (elf_generic_info_to_howto_rel): Likewise.
2121 * elf32-h8300.c (elf32_h8_info_to_howto)
2122 (elf32_h8_info_to_howto_rel): Likewise.
2123 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
2124 * elf32-i386.c (elf_i386_reloc_type_lookup)
2125 (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise.
2126 * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela):
2128 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
2129 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
2130 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
2131 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
2132 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
2133 * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto):
2135 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
2136 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
2137 * elf32-m68k.c (rtype_to_howto): Likewise.
2138 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
2139 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
2140 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
2141 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
2142 * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
2144 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
2145 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
2146 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
2147 * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto):
2149 * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise.
2150 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
2151 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
2152 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
2153 * elf32-pru.c (pru_elf32_info_to_howto): Likewise.
2154 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
2155 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
2156 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
2157 * elf32-score.c (s3_bfd_score_info_to_howto)
2158 (_bfd_score_info_to_howto): Likewise.
2159 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
2160 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
2161 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
2162 * elf32-tic6x.c (elf32_tic6x_info_to_howto)
2163 (elf32_tic6x_info_to_howto_rel): Likewise.
2164 * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise.
2165 * elf32-v850.c (v850_elf_info_to_howto_rel)
2166 (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise.
2167 * elf32-vax.c (rtype_to_howto): Likewise.
2168 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
2169 * elf32-wasm32.c (elf32_wasm32_rtype_to_howto)
2170 (elf32_wasm32_info_to_howto_rela): Likewise.
2171 * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise.
2172 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
2173 * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise.
2174 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
2175 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
2176 * elf64-gen.c (elf_generic_info_to_howto)
2177 (elf_generic_info_to_howto_rel): Likewise.
2178 * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise.
2179 * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise.
2180 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
2181 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
2182 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
2183 * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto):
2185 * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise.
2186 * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
2188 * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise.
2189 * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise.
2190 * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise.
2191 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
2192 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise.
2193 * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise.
2194 * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype.
2195 * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype.
2196 * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype.
2197 * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel):
2200 2018-02-26 Jim Wilson <jimw@sifive.com>
2201 Stephan Schreiber <info@fs-driver.org>
2204 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
2205 call, set changed_contents and changed_relocs. Likewise after
2206 successful ia64_elf_relax_br call.
2208 2018-02-26 Alan Modra <amodra@gmail.com>
2210 * elf.c (assign_file_positions_except_relocs): Don't segfault
2211 when actual number of phdrs is less than allocated. Delete
2212 outdated comment. Formatting.
2214 2018-02-26 Alan Modra <amodra@gmail.com>
2216 * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
2217 * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
2218 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
2219 * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
2220 * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
2221 * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
2222 * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
2223 * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
2224 * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
2225 * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
2226 error/warning messages.
2228 2018-02-26 Alan Modra <amodra@gmail.com>
2230 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
2231 * syms.c: Standardize error/warning messages.
2233 2018-02-26 Alan Modra <amodra@gmail.com>
2235 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c,
2236 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c,
2237 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c,
2238 * peXXigen.c, * peicode.h: Standardize error/warning messages.
2240 2018-02-26 Alan Modra <amodra@gmail.com>
2242 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
2244 2018-02-26 Alan Modra <amodra@gmail.com>
2246 * elfxx-mips.c: Standardize error/warning messages.
2248 2018-02-26 Alan Modra <amodra@gmail.com>
2250 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c,
2251 * elflink.c: Standardize error/warning messages. Replace use of
2252 linker callback einfo with _bfd_error_handler when possible.
2254 2018-02-26 Alan Modra <amodra@gmail.com>
2256 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c,
2257 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
2258 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c,
2259 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c,
2260 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
2261 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
2262 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c,
2263 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
2264 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
2265 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
2266 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
2267 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c,
2268 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c,
2269 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
2270 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
2271 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c,
2272 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
2273 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
2274 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
2275 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h,
2276 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize
2277 unrecognized/unsupported reloc message.
2279 2018-02-26 Alan Modra <amodra@gmail.com>
2281 * elf32-ppc.c: Standardize error/warning messages. Use
2282 _bfd_error_handler rather than einfo when einfo features not used.
2283 * elf64-ppc.c: Likewise.
2285 2018-02-23 Alan Modra <amodra@gmail.com>
2288 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO
2289 segment if no matching LOAD segment.
2291 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
2293 * elf32-nds32.h: Define mask for ict_model.
2295 2018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
2297 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
2299 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2302 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
2304 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
2305 .reginfo section has wrong size.
2307 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2309 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
2310 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and
2311 `.MIPS.abiflags' sections.
2312 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo'
2315 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2317 * section.c (SEC_FIXED_SIZE): New macro.
2318 * bfd-in2.h: Regenerate.
2320 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2322 * section.c (SEC_HAS_GOT_REF): Remove macro.
2323 * bfd-in2.h: Regenerate.
2325 2018-02-19 Alan Modra <amodra@gmail.com>
2327 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
2329 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
2330 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
2331 (_bfd_riscv_relax_pc): Likewise and fix typos.
2332 * libbfd-in.h (_bfd_error_handler): Add attribute printf.
2333 * libbfd.h: Regenerate.
2335 2018-02-19 Alan Modra <amodra@gmail.com>
2337 * dwarf2.c (read_section): Don't use 'll' format modifier.
2338 (find_abstract_instance): Likewise.
2339 * elfcore.h (elf_core_file_p): Likewise.
2341 2018-02-19 Alan Modra <amodra@gmail.com>
2343 * bfd-in.h: Include inttypes.h or if not available define
2344 PRId64, PRIu64 and PRIx64.
2345 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
2346 modifier to print bfd_vma.
2347 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
2348 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
2349 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
2350 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
2351 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
2352 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
2353 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
2354 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
2355 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
2356 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
2357 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
2358 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
2359 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
2360 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
2361 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
2362 and cast input to uint64_t, and similarly for Ld and Lu.
2363 * bfd-in2.h: Regenerate.
2365 2018-02-19 Alan Modra <amodra@gmail.com>
2367 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c,
2368 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c,
2369 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c,
2370 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c,
2371 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c,
2372 * reloc.c: Replace use of %R and %T in format strings passed to
2373 einfo and friends by %pR and %pT.
2375 2018-02-19 Alan Modra <amodra@gmail.com>
2377 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place
2379 * aout-adobe.c: Update all messages using %A and %B.
2380 * aout-cris.c: Likewise.
2381 * aoutx.h: Likewise.
2382 * archive.c: Likewise.
2383 * binary.c: Likewise.
2384 * cache.c: Likewise.
2385 * coff-alpha.c: Likewise.
2386 * coff-arm.c: Likewise.
2387 * coff-i860.c: Likewise.
2388 * coff-mcore.c: Likewise.
2389 * coff-ppc.c: Likewise.
2390 * coff-rs6000.c: Likewise.
2391 * coff-sh.c: Likewise.
2392 * coff-tic4x.c: Likewise.
2393 * coff-tic54x.c: Likewise.
2394 * coff-tic80.c: Likewise.
2395 * coff64-rs6000.c: Likewise.
2396 * coffcode.h: Likewise.
2397 * coffgen.c: Likewise.
2398 * cofflink.c: Likewise.
2399 * coffswap.h: Likewise.
2400 * compress.c: Likewise.
2401 * cpu-arm.c: Likewise.
2402 * ecoff.c: Likewise.
2403 * elf-attrs.c: Likewise.
2404 * elf-eh-frame.c: Likewise.
2405 * elf-ifunc.c: Likewise.
2406 * elf-m10300.c: Likewise.
2407 * elf-properties.c: Likewise.
2408 * elf-s390-common.c: Likewise.
2410 * elf32-arc.c: Likewise.
2411 * elf32-arm.c: Likewise.
2412 * elf32-avr.c: Likewise.
2413 * elf32-bfin.c: Likewise.
2414 * elf32-cr16.c: Likewise.
2415 * elf32-cr16c.c: Likewise.
2416 * elf32-cris.c: Likewise.
2417 * elf32-crx.c: Likewise.
2418 * elf32-d10v.c: Likewise.
2419 * elf32-d30v.c: Likewise.
2420 * elf32-epiphany.c: Likewise.
2421 * elf32-fr30.c: Likewise.
2422 * elf32-frv.c: Likewise.
2423 * elf32-gen.c: Likewise.
2424 * elf32-hppa.c: Likewise.
2425 * elf32-i370.c: Likewise.
2426 * elf32-i386.c: Likewise.
2427 * elf32-i960.c: Likewise.
2428 * elf32-ip2k.c: Likewise.
2429 * elf32-iq2000.c: Likewise.
2430 * elf32-lm32.c: Likewise.
2431 * elf32-m32c.c: Likewise.
2432 * elf32-m32r.c: Likewise.
2433 * elf32-m68hc11.c: Likewise.
2434 * elf32-m68hc12.c: Likewise.
2435 * elf32-m68hc1x.c: Likewise.
2436 * elf32-m68k.c: Likewise.
2437 * elf32-mcore.c: Likewise.
2438 * elf32-mep.c: Likewise.
2439 * elf32-metag.c: Likewise.
2440 * elf32-microblaze.c: Likewise.
2441 * elf32-moxie.c: Likewise.
2442 * elf32-msp430.c: Likewise.
2443 * elf32-mt.c: Likewise.
2444 * elf32-nds32.c: Likewise.
2445 * elf32-nios2.c: Likewise.
2446 * elf32-or1k.c: Likewise.
2447 * elf32-pj.c: Likewise.
2448 * elf32-ppc.c: Likewise.
2449 * elf32-rl78.c: Likewise.
2450 * elf32-rx.c: Likewise.
2451 * elf32-s390.c: Likewise.
2452 * elf32-score.c: Likewise.
2453 * elf32-score7.c: Likewise.
2454 * elf32-sh-symbian.c: Likewise.
2455 * elf32-sh.c: Likewise.
2456 * elf32-sh64.c: Likewise.
2457 * elf32-sparc.c: Likewise.
2458 * elf32-spu.c: Likewise.
2459 * elf32-tic6x.c: Likewise.
2460 * elf32-tilepro.c: Likewise.
2461 * elf32-v850.c: Likewise.
2462 * elf32-vax.c: Likewise.
2463 * elf32-visium.c: Likewise.
2464 * elf32-wasm32.c: Likewise.
2465 * elf32-xgate.c: Likewise.
2466 * elf32-xtensa.c: Likewise.
2467 * elf64-alpha.c: Likewise.
2468 * elf64-gen.c: Likewise.
2469 * elf64-hppa.c: Likewise.
2470 * elf64-ia64-vms.c: Likewise.
2471 * elf64-mmix.c: Likewise.
2472 * elf64-ppc.c: Likewise.
2473 * elf64-s390.c: Likewise.
2474 * elf64-sh64.c: Likewise.
2475 * elf64-sparc.c: Likewise.
2476 * elf64-x86-64.c: Likewise.
2477 * elfcode.h: Likewise.
2478 * elfcore.h: Likewise.
2479 * elflink.c: Likewise.
2480 * elfnn-aarch64.c: Likewise.
2481 * elfnn-ia64.c: Likewise.
2482 * elfnn-riscv.c: Likewise.
2483 * elfxx-mips.c: Likewise.
2484 * elfxx-sparc.c: Likewise.
2485 * elfxx-tilegx.c: Likewise.
2486 * elfxx-x86.c: Likewise.
2487 * hpux-core.c: Likewise.
2490 * libbfd.c: Likewise.
2491 * linker.c: Likewise.
2492 * mach-o.c: Likewise.
2493 * merge.c: Likewise.
2495 * oasys.c: Likewise.
2496 * pdp11.c: Likewise.
2497 * pe-mips.c: Likewise.
2498 * peXXigen.c: Likewise.
2499 * peicode.h: Likewise.
2500 * reloc.c: Likewise.
2501 * rs6000-core.c: Likewise.
2503 * stabs.c: Likewise.
2504 * vms-alpha.c: Likewise.
2505 * xcofflink.c: Likewise.
2507 2018-02-19 Alan Modra <amodra@gmail.com>
2510 * elf.c (IS_TBSS): Define.
2511 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
2512 (assign_file_positions_for_non_load_sections): Revert last change.
2513 Properly calculate load segment limits to compare against relro limits.
2515 2018-02-17 Alan Modra <amodra@gmail.com>
2518 * elf.c (assign_file_positions_for_non_load_sections): Ignore
2519 degenerate zero size PT_LOAD segments when finding one overlapping
2520 the PT_GNU_RELRO segment.
2522 2018-02-16 Alan Modra <amodra@gmail.com>
2524 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
2525 (_bfd_bool_bfd_true): Rename from bfd_true.
2526 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
2527 (_bfd_int_bfd_0): Rename from bfd_0.
2528 (_bfd_uint_bfd_0): Rename from bfd_0u.
2529 (_bfd_long_bfd_0): Rename from bfd_0l.
2530 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
2531 (_bfd_void_bfd): Rename from bfd_void.
2532 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
2533 (_bfd_bool_bfd_link_false_error),
2534 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
2535 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
2536 (_bfd_bool_bfd_asection_bfd_asection_true),
2537 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
2538 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
2539 * archive.c (_bfd_noarchive_get_elt_at_index),
2540 (_bfd_noarchive_openr_next_archived_file),
2541 (_bfd_noarchive_construct_extended_name_table),
2542 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
2543 (_bfd_noarchive_write_armap): New functions.
2544 * archures.c (_bfd_nowrite_set_arch_mach): New function.
2545 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
2546 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
2547 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
2548 (alpha_ecoff_swap_coff_lineno_out),
2549 (alpha_ecoff_swap_coff_reloc_out): New functions.
2550 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
2551 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
2552 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
2553 (mips_ecoff_swap_coff_lineno_out),
2554 (mips_ecoff_swap_coff_reloc_out): New functions.
2555 * coffcode.h (coff_set_alignment_hook): Replace define with
2557 (symname_in_debug_hook): Likewise.
2558 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
2559 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
2560 * elf.c (assign_file_positions_except_relocs): Test
2561 elf_backend_allow_non_load_phdr for NULL.
2562 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
2563 _bfd_elf_link_omit_section_dynsym. Update uses.
2564 (_bfd_elf_omit_section_dynsym_all): New function.
2565 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
2566 (_bfd_elf_omit_section_dynsym_default): Declare.
2567 (_bfd_elf_omit_section_dynsym_all): Declare.
2568 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
2569 (_bfd_nolink_bfd_get_relocated_section_contents),
2570 (_bfd_nolink_bfd_lookup_section_flags),
2571 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
2572 (_bfd_nolink_bfd_link_hash_table_create),
2573 (_bfd_nolink_bfd_link_just_syms),
2574 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
2575 (_bfd_nolink_bfd_link_split_section),
2576 (_bfd_nolink_section_already_linked),
2577 (_bfd_nolink_bfd_define_common_symbol),
2578 (_bfd_nolink_bfd_define_start_stop): New functions.
2579 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
2580 (_bfd_norelocs_bfd_reloc_name_lookup),
2581 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
2582 * section.c (_bfd_nowrite_set_section_contents): New function.
2583 * syms.c (_bfd_nosymbols_canonicalize_symtab),
2584 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
2585 (_bfd_nosymbols_get_symbol_version_string),
2586 (_bfd_nosymbols_bfd_is_local_label_name),
2587 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
2588 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
2589 (_bfd_nosymbols_bfd_make_debug_symbol),
2590 ( _bfd_nosymbols_read_minisymbols),
2591 ( _bfd_nosymbols_minisymbol_to_symbol),
2592 (_bfd_nodynamic_get_synthetic_symtab): New functions.
2593 * libbfd-in.h: Declare new functions. Update existing defines,
2595 * aix386-core.c: Update to use new hooks. Formatting.
2596 * aout-adobe.c: Likewise.
2597 * aout-arm.c: Likewise.
2598 * aout-target.h: Likewise.
2599 * aout-tic30.c: Likewise.
2600 * aoutf1.h: Likewise.
2601 * binary.c: Likewise.
2603 * cisco-core.c: Likewise.
2604 * coff-alpha.c: Likewise.
2605 * coff-i386.c: Likewise.
2606 * coff-i860.c: Likewise.
2607 * coff-i960.c: Likewise.
2608 * coff-ia64.c: Likewise.
2609 * coff-mips.c: Likewise.
2610 * coff-ppc.c: Likewise.
2611 * coff-rs6000.c: Likewise.
2612 * coff-sh.c: Likewise.
2613 * coff-tic30.c: Likewise.
2614 * coff-tic54x.c: Likewise.
2615 * coff-x86_64.c: Likewise.
2616 * coff64-rs6000.c: Likewise.
2617 * coffcode.h: Likewise.
2618 * elf-m10300.c: Likewise.
2619 * elf32-cr16.c: Likewise.
2620 * elf32-lm32.c: Likewise.
2621 * elf32-m32r.c: Likewise.
2622 * elf32-metag.c: Likewise.
2623 * elf32-score.c: Likewise.
2624 * elf32-score7.c: Likewise.
2625 * elf32-tilepro.c: Likewise.
2626 * elf32-xstormy16.c: Likewise.
2627 * elf32-xtensa.c: Likewise.
2628 * elf64-alpha.c: Likewise.
2629 * elf64-hppa.c: Likewise.
2630 * elf64-ia64-vms.c: Likewise.
2631 * elf64-mmix.c: Likewise.
2632 * elf64-sh64.c: Likewise.
2633 * elfnn-ia64.c: Likewise.
2634 * elfxx-sparc.c: Likewise.
2635 * elfxx-target.h: Likewise.
2636 * elfxx-tilegx.c: Likewise.
2637 * elfxx-x86.h: Likewise.
2638 * hp300hpux.c: Likewise.
2639 * hppabsd-core.c: Likewise.
2640 * hpux-core.c: Likewise.
2641 * i386msdos.c: Likewise.
2642 * i386os9k.c: Likewise.
2645 * irix-core.c: Likewise.
2646 * libaout.h: Likewise.
2647 * libecoff.h: Likewise.
2648 * mach-o-target.c: Likewise.
2649 * mach-o.c: Likewise.
2650 * mipsbsd.c: Likewise.
2652 * netbsd-core.c: Likewise.
2653 * nlm-target.h: Likewise.
2654 * oasys.c: Likewise.
2655 * osf-core.c: Likewise.
2656 * pdp11.c: Likewise.
2657 * pe-mips.c: Likewise.
2658 * pe-x86_64.c: Likewise.
2660 * plugin.c: Likewise.
2661 * ppcboot.c: Likewise.
2662 * ptrace-core.c: Likewise.
2663 * sco5-core.c: Likewise.
2665 * sparclynx.c: Likewise.
2667 * tekhex.c: Likewise.
2668 * trad-core.c: Likewise.
2669 * verilog.c: Likewise.
2670 * versados.c: Likewise.
2671 * vms-alpha.c: Likewise.
2672 * vms-lib.c: Likewise.
2673 * wasm-module.c: Likewise.
2675 * libbfd.h: Regenerate.
2677 2018-02-15 Jim Wilson <jimw@sifive.com>
2679 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
2680 symbols whose section address is zero.
2682 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
2683 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
2684 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
2685 Add %X%P to error messages.
2687 2018-02-15 Eric Botcazou <ebotcazou@adacore.com>
2690 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2691 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
2692 and assert that the result of the call is not NULL.
2694 2018-02-14 Nick Clifton <nickc@redhat.com>
2697 Revert previous delta. Add extra casts to avoid compile time
2699 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
2700 cast to avoid warning from gcc v8 compiler.
2701 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2702 (_bfd_generic_bfd_set_private_flags): Likewise.
2703 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2704 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2705 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2706 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2707 (_bfd_noarchive_construct_extended_name_table): Likewise.
2708 (_bfd_noarchive_truncate_arname): Likewise.
2709 (_bfd_noarchive_write_ar_hdr): Likewise.
2710 (_bfd_noarchive_get_elt_at_index): Likewise.
2711 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2712 (_bfd_nosymbols_print_symbol): Likewise.
2713 (_bfd_nosymbols_get_symbol_info): Likewise.
2714 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2715 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2716 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2717 (_bfd_nosymbols_get_lineno): Likewise.
2718 (_bfd_nosymbols_find_nearest_line): Likewise.
2719 (_bfd_nosymbols_find_line): Likewise.
2720 (_bfd_nosymbols_find_inliner_info): Likewise.
2721 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2722 (_bfd_nosymbols_read_minisymbols): Likewise.
2723 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2724 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2725 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2726 (_bfd_nowrite_set_arch_mach): Likewise.
2727 (_bfd_nowrite_set_section_contents): Likewise.
2728 (_bfd_nolink_sizeof_headers): Likewise.
2729 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2730 (_bfd_nolink_bfd_relax_section): Likewise.
2731 (_bfd_nolink_bfd_gc_sections): Likewise.
2732 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2733 (_bfd_nolink_bfd_merge_sections): Likewise.
2734 (_bfd_nolink_bfd_is_group_section): Likewise.
2735 (_bfd_nolink_bfd_discard_group): Likewise.
2736 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2737 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2738 (_bfd_nolink_bfd_link_just_syms): Likewise.
2739 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2740 (_bfd_nolink_bfd_final_link): Likewise.
2741 (_bfd_nolink_bfd_link_split_section): Likewise.
2742 (_bfd_nolink_section_already_linked): Likewise.
2743 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2744 (_bfd_nolink_bfd_define_start_stop): Likewise.
2745 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2746 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2747 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2748 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2749 * libbfd.c (bfd_false_any): Delete.
2750 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
2751 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
2752 * libbfd.h (extern): Regenerate
2753 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
2754 cast to avoid warning from gcc v8 compiler.
2755 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2756 * binary.c (binary_get_symbol_info): Likewise.
2757 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2758 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2759 * coffcode.h (coff_set_alignment_hook): Likewise.
2760 (symname_in_debug_hook): Likewise.
2761 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2762 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2763 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2764 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2765 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2766 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2767 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2768 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2769 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2770 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2771 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2772 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2773 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2774 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2775 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2776 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2777 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2778 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2779 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2780 (bfd_elfNN_bfd_set_private_flags): Likewise.
2781 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2782 (elf_backend_init_index_section): Likewise.
2783 (elf_backend_allow_non_load_phdr): Likewise.
2784 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2785 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2786 * ieee.c (ieee_construct_extended_name_table): Likewise.
2787 (ieee_write_armap): Likewise.
2788 (ieee_write_ar_hdr): Likewise.
2789 (ieee_bfd_is_target_special_symbol): Likewise.
2790 * ihex.c (ihex_canonicalize_symtab): Likewise.
2791 (ihex_bfd_is_target_special_symbol): Likewise.
2792 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2793 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2794 (_bfd_ecoff_set_alignment_hook): Likewise.
2795 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2796 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2797 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2798 * oasys.c (oasys_construct_extended_name_table): Likewise.
2799 (oasys_write_armap): Likewise.
2800 (oasys_write_ar_hdr): Likewise.
2801 (oasys_bfd_is_target_special_symbol): Likewise.
2802 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2803 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2804 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2805 * som.c (som_bfd_is_target_special_symbol): Likewise.
2806 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2807 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2808 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2809 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2810 (versados_bfd_reloc_name_lookup): Likewise.
2811 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2812 (vms_bfd_define_start_stop): Likewise.
2813 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2814 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2815 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2817 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
2820 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
2821 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2822 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
2823 R_X86_64_PC32 reloc against dynamic function in data section.
2824 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2825 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
2826 against dynamic function in data section.
2827 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
2828 function address only if pcrel_plt is true.
2829 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
2830 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
2831 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
2832 PC-relative relocation against a function definition in data
2833 secton in PIE. Remove the obsolete comments.
2834 (elf_x86_link_hash_table): Add pcrel_plt.
2836 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2838 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
2839 instead of bfd_link_pic, for building shared library.
2841 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2844 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
2845 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
2846 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
2847 against protected function in shared object.
2849 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
2852 * po/ru.po: Fix typo in Russian translation.
2854 2018-02-13 Maciej W. Rozycki <macro@mips.com>
2856 * wasm-module.c (wasm_scan_name_function_section): Rename
2857 `index' local variable to `idx'.
2859 2018-02-13 Nick Clifton <nickc@redhat.com>
2862 Fix compile time warnings generated by gcc version 8.
2863 * libbfd-in.h: Remove extraneous text from prototypes.
2864 Add prototypes for bfd_false_any, bfd_true_any,
2865 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
2866 bfd_n1_any, bfd_void_any.
2867 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
2869 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2870 (_bfd_generic_bfd_set_private_flags): Likewise.
2871 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2872 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2873 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2874 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2875 (_bfd_noarchive_construct_extended_name_table): Likewise.
2876 (_bfd_noarchive_truncate_arname): Likewise.
2877 (_bfd_noarchive_write_ar_hdr): Likewise.
2878 (_bfd_noarchive_get_elt_at_index): Likewise.
2879 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2880 (_bfd_nosymbols_print_symbol): Likewise.
2881 (_bfd_nosymbols_get_symbol_info): Likewise.
2882 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2883 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2884 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2885 (_bfd_nosymbols_get_lineno): Likewise.
2886 (_bfd_nosymbols_find_nearest_line): Likewise.
2887 (_bfd_nosymbols_find_line): Likewise.
2888 (_bfd_nosymbols_find_inliner_info): Likewise.
2889 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2890 (_bfd_nosymbols_read_minisymbols): Likewise.
2891 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2892 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2893 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2894 (_bfd_nowrite_set_arch_mach): Likewise.
2895 (_bfd_nowrite_set_section_contents): Likewise.
2896 (_bfd_nolink_sizeof_headers): Likewise.
2897 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2898 (_bfd_nolink_bfd_relax_section): Likewise.
2899 (_bfd_nolink_bfd_gc_sections): Likewise.
2900 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2901 (_bfd_nolink_bfd_merge_sections): Likewise.
2902 (_bfd_nolink_bfd_is_group_section): Likewise.
2903 (_bfd_nolink_bfd_discard_group): Likewise.
2904 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2905 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2906 (_bfd_nolink_bfd_link_just_syms): Likewise.
2907 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2908 (_bfd_nolink_bfd_final_link): Likewise.
2909 (_bfd_nolink_bfd_link_split_section): Likewise.
2910 (_bfd_nolink_section_already_linked): Likewise.
2911 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2912 (_bfd_nolink_bfd_define_start_stop): Likewise.
2913 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2914 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2915 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2916 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2917 * libbfd.c (bfd_false_any): New function. Like bfd_false but
2918 accepts one or more arguments.
2919 (bfd_true_any): Likewise.
2920 (bfd_nullvoidptr_any): Likewise.
2921 (bfd_0_any): Likewise.
2922 (bfd_0u_any): Likewise.
2923 (bfd_0l_any): Likewise.
2924 (_bfd_n1_any): Likewise.
2925 (bfd_void_any): Likewise.
2926 * libbfd.h (extern): Regenerate
2927 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
2928 based dummy function.
2929 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2930 * binary.c (binary_get_symbol_info): Likewise.
2931 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2932 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2933 * coffcode.h (coff_set_alignment_hook): Likewise.
2934 (symname_in_debug_hook): Likewise.
2935 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2936 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2937 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2938 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2939 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2940 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2941 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2942 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2943 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2944 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2945 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2946 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2947 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2948 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2949 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2950 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2951 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2952 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2953 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2954 (bfd_elfNN_bfd_set_private_flags): Likewise.
2955 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2956 (elf_backend_init_index_section): Likewise.
2957 (elf_backend_allow_non_load_phdr): Likewise.
2958 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2959 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2960 * ieee.c (ieee_construct_extended_name_table): Likewise.
2961 (ieee_write_armap): Likewise.
2962 (ieee_write_ar_hdr): Likewise.
2963 (ieee_bfd_is_target_special_symbol): Likewise.
2964 * ihex.c (ihex_canonicalize_symtab): Likewise.
2965 (ihex_bfd_is_target_special_symbol): Likewise.
2966 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2967 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2968 (_bfd_ecoff_set_alignment_hook): Likewise.
2969 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2970 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2971 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2972 * oasys.c (oasys_construct_extended_name_table): Likewise.
2973 (oasys_write_armap): Likewise.
2974 (oasys_write_ar_hdr): Likewise.
2975 (oasys_bfd_is_target_special_symbol): Likewise.
2976 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2977 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2978 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2979 * som.c (som_bfd_is_target_special_symbol): Likewise.
2980 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2981 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2982 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2983 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2984 (versados_bfd_reloc_name_lookup): Likewise.
2985 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2986 (vms_bfd_define_start_stop): Likewise.
2987 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2988 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2989 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2990 * elf32-arc.c (get_replace_function): Assign replacement function
2992 * elf32-i370.c (i370_noop): Update prototype.
2994 2018-02-13 Alan Modra <amodra@gmail.com>
2997 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
2998 relocation sections. If size reduces to just the flag word,
2999 remove that too and mark with SEC_EXCLUDE.
3000 * elflink.c (bfd_elf_final_link): Strip empty group sections.
3002 2018-02-13 Alan Modra <amodra@gmail.com>
3005 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
3008 2018-02-12 Zebediah Figura <z.figura12@gmail.com>
3010 * i386msdos.c (msdos_mkobject); New function.
3011 (msdos_object_p): New function.
3012 (i386_msdos_vec): Use msdos_object_p as the check_format
3014 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
3015 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
3017 * peXXigen.c: Likewise.
3018 * coff-ia64.c: Likewise.
3020 2018-02-12 Nick Clifton <nickc@redhat.com>
3022 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
3024 * elf32-arc.c (elf_arc_relocate_section): Likewise.
3026 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
3028 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
3029 (sparc_elf_append_rela): Assert that there is enough room in section.
3030 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
3031 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
3032 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
3033 For a symbol subject to a GOT relocation, reserve a slot in the
3034 relocation section if the symbol isn't dynamic and we are in PIC mode.
3035 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
3036 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
3037 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
3038 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
3039 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
3040 resolved_to_zero. Do not generate a dynamic GOT relocation for an
3041 undefined weak symbol with non-default visibility. Remove superfluous
3042 'else' and fix formatting.
3044 2018-02-09 H.J. Lu <hongjiu.lu@intel.com>
3046 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
3048 (i386_elf32_sol2_vec): Don't declare.
3049 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
3050 Don't set need_global_offset_table.
3051 (elf_i386_solaris_arch_bed): New.
3052 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
3054 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
3055 target_os != is_nacl instead of target_os == is_normal.
3056 (x86_64_elf64_sol2_vec): Don't declare.
3057 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
3058 is_nacl instead of target_os == is_normal. Don't set
3059 need_global_offset_table.
3060 (elf_x86_64_solaris_arch_bed): New.
3061 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
3063 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
3064 _GLOBAL_OFFSET_TABLE_ for Solaris.
3065 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
3066 need_global_offset_table.
3067 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
3068 (elf_x86_link_hash_table): Remove need_global_offset_table.
3069 (elf_x86_init_table): Likewise.
3071 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
3073 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
3075 (i386_elf32_sol2_vec): Declared.
3076 (elf_i386_link_setup_gnu_properties): Set
3077 need_global_offset_table with info->output_bfd->xvec.
3078 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
3080 (x86_64_elf64_sol2_vec): Declared.
3081 (elf_x86_64_link_setup_gnu_properties): Set
3082 need_global_offset_table with info->output_bfd->xvec.
3084 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
3086 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
3088 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
3090 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
3092 (elf_x86_64_link_setup_gnu_properties): Set
3093 need_global_offset_table for Solaris.
3094 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
3095 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
3096 (_bfd_x86_elf_link_setup_gnu_properties): Copy
3097 need_global_offset_table.
3098 * elfxx-x86.h (elf_x86_link_hash_table): Add
3099 need_global_offset_table.
3100 (elf_x86_init_table): Likewise.
3102 2018-02-08 Jim Wilson <jimw@sifive.com>
3104 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
3107 2018-02-08 Nick Clifton <nickc@redhat.com>
3110 * elf.c (elf_parse_notes): Reject notes with excessuively large
3113 2018-02-07 Alan Modra <amodra@gmail.com>
3115 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
3116 * elf32-ppc.c: Remove speculation barrier support.
3117 * elf32-ppc.h: Likewise.
3118 * elf64-ppc.c: Likewise.
3119 * elf64-ppc.h: Likewise.
3121 2018-02-06 Jim Wilson <jimw@sifive.com>
3123 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
3124 callback to report an error.
3126 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
3129 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
3130 into call to !bfd_link_executable and tidy up.
3131 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
3132 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
3133 !bfd_link_executable.
3134 <R_SPARC_TLS_IE_HI22>: Likewise.
3135 <GOT relocations>: Remove useless code, tidy and merge related blocks.
3136 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
3137 !bfd_link_executable.
3138 <R_SPARC_WPLT30>: Tidy up.
3139 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
3140 !bfd_link_executable.
3141 (allocate_dynrelocs): Likewise.
3142 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
3143 <R_SPARC_TLS_GD_HI22>: Merge into...
3144 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
3145 sparc_elf_tls_transition and remove redundant code.
3146 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
3147 !bfd_link_executable.
3148 <R_SPARC_TLS_LDO_HIX22>: Likewise.
3149 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
3150 <R_SPARC_TLS_LDM_CALL>: Likewise.
3151 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
3152 <R_SPARC_TLS_GD_ADD>: Likewise.
3153 <R_SPARC_TLS_LDM_ADD>: Likewise.
3154 <R_SPARC_TLS_LDO_ADD>: Likewise.
3155 <R_SPARC_TLS_IE_LD>: Likewise.
3157 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
3160 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
3161 functions failed to find the function name, try the generic elf
3162 find function instead.
3164 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
3166 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
3167 'memcpy' instead of 'strncpy' when writing the magic number.
3169 2018-02-06 Nick Clifton <nickc@redhat.com>
3172 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
3173 section before attempting to read it in.
3174 (bfd_get_alt_debug_link_info): Likewise.
3176 2018-02-06 Paul Carroll <pcarroll@codesourcery.com>
3178 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
3179 line information in addition to name, if they can be found.
3181 2018-02-05 Renlin Li <renlin.li@arm.com>
3184 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
3185 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
3186 check for writeable section as well.
3188 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
3191 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
3192 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
3193 undefined weak symbol to 0.
3194 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
3195 if _GLOBAL_OFFSET_TABLE_ is referenced.
3196 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
3197 got_referenced instead of ref_regular_nonweak. Remove the
3198 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
3199 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
3201 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3203 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
3204 initialize `hi_reloc'.
3206 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3208 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
3209 SHT_MIPS_REGINFO sections don't assert the correct size and
3210 report an error instead.
3212 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3214 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
3215 status from `->elf_backend_section_processing'.
3217 2018-02-02 Jim Wilson <jimw@sifive.com>
3220 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
3221 If link_info->wrap_hash, check for a duplicate symbol and ignore.
3222 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
3223 Pass new argument to riscv_relax_delete_bytes.
3224 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
3225 ATTRIBUTE_UNUSED from link_info parameter.
3227 2018-02-02 Alan Modra <amodra@gmail.com>
3229 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
3230 emitted for toc sequence optimization. Set and use "howto" later.
3232 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
3234 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
3235 arithmetic on NULL pointer.
3236 * elflink.c (_bfd_elf_archive_symbol_lookup,
3237 elf_link_add_archive_symbols): Likewise.
3239 2018-01-31 Michael Matz <matz@suse.de>
3241 * elflink.c (bfd_elf_define_start_stop): Fix check of
3244 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
3247 * elflink.c (bfd_elf_define_start_stop): Check if __start and
3248 __stop symbols are referenced by shared objects.
3250 2018-01-30 Alan Modra <amodra@gmail.com>
3253 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
3254 segment when demand paged with lma on the same page. Test this
3255 before load/non-load, executable/non-executable,
3256 writable/non-writable tests and simplify. Delete bogus relro
3257 condition in writable/non-writable test. Delete outdated
3258 comment. Formatting.
3260 2018-01-30 Alan Modra <amodra@gmail.com>
3262 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
3265 2018-01-29 Alan Modra <amodra@gmail.com>
3268 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
3269 range before converting to a symbol table pointer.
3271 2018-01-27 Nick Clifton <nickc@redhat.com>
3273 * po/ru.po: Updated Russian translation.
3275 2018-01-26 Alan Modra <amodra@gmail.com>
3277 * elflink.c (bfd_elf_define_start_stop): Override symbols when
3278 they are defined dynamically.
3280 2018-01-26 Alan Modra <amodra@gmail.com>
3282 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
3283 .branch_lt changes size.
3285 2018-01-25 Alan Modra <amodra@gmail.com>
3288 * elfcode.h (elf_object_p): Avoid integer overflow.
3290 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
3293 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
3294 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
3297 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
3300 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
3301 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
3302 bfd_link_executable for TLS check.
3303 (_bfd_sparc_elf_check_relocs): Likewise.
3304 (allocate_dynrelocs): Likewise.
3305 (_bfd_sparc_elf_relocate_section): Likewise.
3307 2018-01-24 Renlin Li <renlin.li@arm.com>
3309 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
3310 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
3311 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
3312 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
3313 BFD_RELOC_AARCH64_MOVW_PREL_G3.
3314 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
3315 (_bfd_aarch64_elf_resolve_relocation): Likewise.
3317 2018-01-24 Renlin Li <renlin.li@arm.com>
3319 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
3320 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
3321 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
3322 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
3323 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
3324 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
3325 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
3326 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
3327 BFD_RELOC_AARCH64_MOVW_PREL_G3.
3328 * bfd-in2.h: Regenerate.
3329 * libbfd.h: Regenerate.
3331 2018-01-23 Maciej W. Rozycki <macro@mips.com>
3333 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
3334 `mips_elf32_section_processing' comment reference.
3336 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
3339 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
3340 versioned __tls_get_addr symbol.
3342 2018-01-19 Nick Clifton <nickc@redhat.com>
3344 * po/fr.po: Updated French translation.
3346 2018-01-18 Alan Modra <amodra@gmail.com>
3348 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
3349 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
3350 (ppc64_elf_build_stubs): Likewise.
3352 2018-01-17 Nick Clifton <nickc@redhat.com>
3354 * po/ru.po: Updated Russian translation.
3355 * po/uk/po: Updated Ukranian translation.
3357 2018-01-17 Alan Modra <amodra@gmail.com>
3359 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
3361 2018-01-17 Alan Modra <amodra@gmail.com>
3363 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
3364 (CRSETEQ, BEQCTRM): Define.
3365 (is_nonpic_glink_stub): Don't check bctr.
3366 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
3367 (ppc_elf_relax_section): Size speculation barrier.
3368 (output_bctr): New function.
3369 (write_glink_stub): Use output_bctr.
3370 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
3371 (ppc_elf_finish_dynamic_symbol): Likewise.
3372 (ppc_elf_finish_dynamic_sections): Use output_bctr.
3373 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
3374 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
3375 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
3376 (size_global_entry_stubs): Handle speculation barrier sizing.
3377 (plt_stub_size): Likewise.
3378 (output_bctr): New function.
3379 (build_plt_stub, build_tls_get_addr_stub): Output speculation
3381 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
3382 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
3383 (build_global_entry_stubs): Output speculation barrier.
3384 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
3385 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
3387 2018-01-17 Alan Modra <amodra@gmail.com>
3389 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
3390 __tls_get_addr_opt, and alignment sizing.
3391 (TLS_GET_ADDR_GLINK_SIZE): Delete.
3392 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
3393 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
3395 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
3396 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
3397 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
3399 (write_glink_stub): Handle __tls_get_addr_opt stub.
3400 Pad out to size given by GLINK_ENTRY_SIZE.
3401 (ppc_elf_relocate_section): Adjust write_glink_stub call.
3402 (ppc_elf_finish_dynamic_symbol): Likewise.
3403 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
3404 insn array since so many need rewriting.
3405 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
3406 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
3407 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
3408 nops. Adjust all uses.
3409 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
3410 in glink_vma calculation.
3411 (struct ppc_link_hash_table): Add global_entry section pointer.
3412 (create_linkage_sections): Create separate section for global
3414 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
3415 (size_global_entry_stubs): Handle sizing for aligned stubs.
3416 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
3417 and don't stash end of glink branch table in rawsize.
3418 (ppc_build_one_stub): Rewrite stub size calculations.
3419 (build_global_entry_stubs): Use new section.
3420 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
3421 Build lazy link stubs out to end of section. Build global entry
3422 stubs in new section.
3424 2018-01-15 Nick Clifton <nickc@redhat.com>
3426 * po/uk.po: Updated Ukranian translation.
3428 2018-01-13 Nick Clifton <nickc@redhat.com>
3430 * po/bfd.pot: Regenerated.
3432 2018-01-13 Nick Clifton <nickc@redhat.com>
3434 * version.m4: Bump version to 2.30.51
3435 * configure: Regenerate.
3437 2018-01-13 Nick Clifton <nickc@redhat.com>
3439 2.30 branch created.
3441 2018-01-12 Jens Widell <jl@opera.com>
3443 * elf.c (setup_group): Optimize search for group by remembering
3444 last found group and restarting search at that index.
3445 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
3447 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
3449 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
3450 bfd_link_common_skip_none in switch.
3452 2018-01-12 Alan Modra <amodra@gmail.com>
3455 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
3456 references on forced local symbols.
3458 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
3460 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
3461 .reginfo section has wrong size.
3463 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3466 * elf.c (_bfd_elf_map_sections_to_segments): When generating
3467 separate code and read-only data LOAD segments, create a new
3468 LOAD segment if the previous section contains text and the
3469 current section doesn't or vice versa. Don't put a writable
3470 section in a read-only segment if there is a RELRO segment.
3472 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3475 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
3476 references on forced local symbols.
3478 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3481 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
3482 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
3484 2018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com>
3487 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
3489 2018-01-03 John Baldwin <jhb@FreeBSD.org>
3491 * elf.c (elfcore_grok_freebsd_note): Handle
3492 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
3493 NT_FREEBSD_PROCSTAT_VMMAP.
3495 2018-01-03 Alan Modra <amodra@gmail.com>
3497 Update year range in copyright notice of all files.
3499 For older changes see ChangeLog-2017
3501 Copyright (C) 2018 Free Software Foundation, Inc.
3503 Copying and distribution of this file, with or without modification,
3504 are permitted in any medium without royalty provided the copyright
3505 notice and this notice are preserved.
3511 version-control: never