1 2018-08-01 Alan Modra <amodra@gmail.com>
3 * po/SRC-POTFILES.in: Regenerate.
5 2018-07-30 Nick Clifton <nickc@redhat.com>
8 * elf32-sh.c (sh_elf_relocate_section): When processing
9 translation relocs, fail if the relocation offset is too small.
10 Replace BFD_ASSERTs with more helpful error messages.
12 2018-07-30 Andrew Jenner <andrew@codesourcery.com>
14 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES): Add C-SKY.
15 (BFD32_BACKENDS, BFD_BACKENDS_CFILES): Likewise.
16 * Makefile.in: Regenerated.
17 * archures.c (enum bfd_architecture): Add bfd_arch_csky and
18 related bfd_mach defines.
19 (bfd_csky_arch): Declare.
20 (bfd_archures_list): Add C-SKY.
21 * bfd-in.h (elf32_csky_build_stubs): Declare.
22 (elf32_csky_size_stubs): Declare.
23 (elf32_csky_next_input_section: Declare.
24 (elf32_csky_setup_section_lists): Declare.
25 * bfd-in2.h: Regenerated.
26 * config.bfd: Add C-SKY.
27 * configure.ac: Likewise.
28 * configure: Regenerated.
29 * cpu-csky.c: New file.
30 * elf-bfd.h (enum elf_target_id): Add C-SKY.
31 * elf32-csky.c: New file.
32 * libbfd.h: Regenerated.
33 * reloc.c: Add C-SKY relocations.
34 * targets.c (csky_elf32_be_vec, csky_elf32_le_vec): Declare.
35 (_bfd_target_vector): Add C-SKY target vector entries.
37 2018-07-27 John Darrington <john@darrington.wattle.id.au>
39 * elf32-s12z.c (ELF_TARGET_ID): Don't define.
41 2018-07-27 John Darrington <john@darrington.wattle.id.au>
43 * libbfd.c (bfd_getb24, bfd_getl24): New functions.
44 (bfd_get_24, bfd_put_24): New macros.
45 * bfd-in2.h: Regenerate.
47 2018-07-27 John Darrington <john@darrington.wattle.id.au>
49 * elf32-s12z.c (s12z_elf_set_mach_from_flags): Remove comment.
51 2018-07-26 Alan Modra <amodra@gmail.com>
53 * elf64-ppc.c (ppc64_elf_size_stubs): Use a ppc_stub_long_branch_r2off
54 for calls to symbols with STO_PPC64_LOCAL_MASK bits set to 1.
56 2018-07-25 Alan Modra <amodra@gmail.com>
58 * elf32-ppc.c (ppc_elf_relax_section): Ignore common or undef locals.
59 Avoid trashing toff with added when used as a symbol index.
60 Ignore R_PPC_PLTREL24 addends in unused example code. Avoid
61 creating unnecessary fixups when relocatable.
63 2018-07-25 Alan Modra <amodra@gmail.com>
65 * elf32-arm.c (elf32_arm_nabi_write_core_note): Disable
66 -Wstringop-truncation warning for gcc-8.0 too.
67 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
68 * elf64-ppc.c (ppc64_elf_write_core_note): Likewise.
69 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
70 * elf32-s390.c (elf_s390_write_core_note): Comment fix.
71 * elf64-s390.c (elf_s390_write_core_note): Likewise.
73 2018-07-24 Alan Modra <amodra@gmail.com>
76 * dwarf2.c (dwarf_debug_section_enum): Fix comment typo.
77 * elf.c (bfd_section_from_shdr, elf_sort_sections): Likewise.
79 2018-07-23 Max Filippov <jcmvbkbc@gmail.com>
81 * elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Move
82 relocation sections consistency check to always check both
83 .rela.dyn and .rela.plt when they exist. Rearrange variable
84 definition and assignment places.
86 2018-07-23 Max Filippov <jcmvbkbc@gmail.com>
88 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Shrink dynamic
89 relocations section for dynamic undefined weak symbols when
90 linking a shared object.
92 2018-07-23 Tom Tromey <tom@tromey.com>
94 * elf.c (bfd_get_elf_phdrs): Don't call memcpy with size 0.
96 2018-07-21 Eric Botcazou <ebotcazou@adacore.com>
98 * elf32-arm.c (elf32_arm_final_link_relocate) <R_ARM_GOT32>: Small
99 cleanup for the case of a global symbol that binds locally. Also
100 install a value in the GOT slot in the case of a local symbol in
103 2018-07-20 H.J. Lu <hongjiu.lu@intel.com>
106 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): If the
107 separate code program header is needed, make sure that the first
108 read-only PT_LOAD segment has no code by adding a
109 GNU_PROPERTY_X86_ISA_1_USED note.
111 2018-07-20 Chenghua Xu <paul.hua.gm@gmail.com>
112 Maciej W. Rozycki <macro@mips.com>
114 * elfxx-mips.c (print_mips_ases): Add MMI extension.
116 2018-07-20 Maciej W. Rozycki <macro@mips.com>
118 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Do not
119 create DT_REL, DT_RELSZ or DT_RELENT dynamic entries if the
120 dynamic relocation section will be discarded from output.
121 (_bfd_mips_elf_finish_dynamic_sections) <DT_RELSZ>: Assert that
122 the dynamic relocation section will be retained in output.
124 2018-07-18 Maciej W. Rozycki <macro@mips.com>
126 * xcofflink.c (xcoff_write_global_symbol): Fix symbol type
127 checks for defined weak symbols.
129 2018-07-17 Maciej W. Rozycki <macro@mips.com>
131 * elf32-nds32.c (nds32_elf_relax_loadstore): Use
132 `bfd_is_abs_symbol' rather than `bfd_is_abs_section' in checking
133 whether the symbol is absolute.
134 (nds32_elf_relax_lo12): Likewise.
135 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise.
136 (elfNN_aarch64_check_relocs): Likewise.
137 * xcofflink.c (xcoff_need_ldrel_p): Likewise.
138 (bfd_xcoff_import_symbol): Likewise.
139 (xcoff_write_global_symbol): Likewise.
141 2018-07-17 Maciej W. Rozycki <macro@mips.com>
143 * linker.c (bfd_is_abs_symbol): New macro.
144 * bfd-in2.h: Regenerate.
146 2018-07-16 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
148 * elf-bfd.h (elfcore_write_ppc_tar): Add prototype.
149 (elfcore_write_ppc_ppr): Likewise.
150 (elfcore_write_ppc_dscr): Likewise.
151 (elfcore_write_ppc_ebb): Likewise.
152 (elfcore_write_ppc_pmu): Likewise.
153 (elfcore_write_ppc_tm_cgpr): Likewise.
154 (elfcore_write_ppc_tm_cfpr): Likewise.
155 (elfcore_write_ppc_tm_cvmx): Likewise.
156 (elfcore_write_ppc_tm_cvsx): Likewise.
157 (elfcore_write_ppc_tm_spr): Likewise.
158 (elfcore_write_ppc_tm_ctar): Likewise.
159 (elfcore_write_ppc_tm_cppr): Likewise.
160 (elfcore_write_ppc_tm_cdscr): Likewise.
161 * elf.c (elfcore_write_ppc_tar): New function.
162 (elfcore_write_ppc_ppr): Likewise.
163 (elfcore_write_ppc_dscr): Likewise.
164 (elfcore_write_ppc_ebb): Likewise.
165 (elfcore_write_ppc_pmu): Likewise.
166 (elfcore_write_ppc_tm_cgpr): Likewise.
167 (elfcore_write_ppc_tm_cfpr): Likewise.
168 (elfcore_write_ppc_tm_cvmx): Likewise.
169 (elfcore_write_ppc_tm_cvsx): Likewise.
170 (elfcore_write_ppc_tm_spr): Likewise.
171 (elfcore_write_ppc_tm_ctar): Likewise.
172 (elfcore_write_ppc_tm_cppr): Likewise.
173 (elfcore_write_ppc_tm_cdscr): Likewise.
174 (elfcore_write_register_note): Call them.
175 (elfcore_grok_ppc_tar): New function.
176 (elfcore_grok_ppc_ppr): Likewise.
177 (elfcore_grok_ppc_dscr): Likewise.
178 (elfcore_grok_ppc_ebb): Likewise.
179 (elfcore_grok_ppc_pmu): Likewise.
180 (elfcore_grok_ppc_tm_cgpr): Likewise.
181 (elfcore_grok_ppc_tm_cfpr): Likewise.
182 (elfcore_grok_ppc_tm_cvmx): Likewise.
183 (elfcore_grok_ppc_tm_cvsx): Likewise.
184 (elfcore_grok_ppc_tm_spr): Likewise.
185 (elfcore_grok_ppc_tm_ctar): Likewise.
186 (elfcore_grok_ppc_tm_cppr): Likewise.
187 (elfcore_grok_ppc_tm_cdscr): Likewise.
188 (elfcore_grok_note): Call them.
190 2018-07-11 Maciej W. Rozycki <macro@mips.com>
192 * elfxx-mips.c (mips_tls_got_relocs): Use `bfd_link_dll' rather
193 than `!bfd_link_pic' in determining the dynamic symbol index.
194 Avoid the index of -1.
195 (mips_elf_initialize_tls_slots): Likewise. Flatten code by
196 moving `dyn' to the beginning of the function block.
198 2018-07-11 Maciej W. Rozycki <macro@mips.com>
199 Rich Felker <bugdal@aerifal.cx>
202 * elfxx-mips.c (mips_tls_got_relocs): Use `bfd_link_dll' rather
203 than `bfd_link_pic' to determine whether dynamic relocations are
205 (mips_elf_initialize_tls_slots): Likewise.
207 2018-07-10 Maciej W. Rozycki <macro@mips.com>
209 * elflink.c (bfd_elf_final_link): Rename `remove' local variable
212 2018-07-10 Alan Modra <amodra@gmail.com>
214 * elf32-xgate.h: Delete.
215 * elf32-xgate.c: Delete unnecessary forward declarations, add two
217 (xgate_elf_bfd_link_hash_table_create)
218 (xgate_elf_bfd_link_hash_table_free)
219 (xgate_elf_set_mach_from_flags, struct xgate_scan_param)
220 (stub_hash_newfunc, elf32_xgate_add_symbol_hook)
221 (elf32_xgate_setup_section_lists, elf32_xgate_size_stubs)
222 (elf32_xgate_build_stubs, elf32_xgate_check_relocs)
223 (elf32_xgate_relocate_section, _bfd_xgate_elf_set_private_flags)
224 (elf32_xgate_post_process_headers): Delete.
225 (elf32_xgate_backend_symbol_processing): New function.
226 (xgate_elf_ignore_reloc, xgate_elf_special_reloc)
227 (_bfd_xgate_elf_print_private_bfd_data): Make static.
228 (ELF_TARGET_ID, elf_info_to_howto, elf_backend_check_relocs)
229 (elf_backend_relocate_section, elf_backend_object_p)
230 (elf_backend_final_write_processing, elf_backend_can_gc_sections)
231 (elf_backend_post_process_headers, elf_backend_add_symbol_hook)
232 (bfd_elf32_bfd_link_hash_table_create)
233 (bfd_elf32_bfd_set_private_flags)
234 (xgate_stub_hash_lookup): Don't define.
235 (elf_backend_symbol_processing): Define.
236 * elf-bfd.h (elf_target_id): Delete XGATE_ELF_DATA.
238 2018-07-09 Maciej W. Rozycki <macro@mips.com>
240 * elfxx-mips.c (_bfd_mips_elf_adjust_dynamic_symbol): Don't set
241 `->needs_lazy_stub' if the stubs output section is the absolute
244 2018-07-09 H.J. Lu <hongjiu.lu@intel.com>
247 * configure.ac: Use changequote for "i[3-7]86-*-linux-*".
248 * configure: Regenerated.
250 2018-07-09 Alan Modra <amodra@gmail.com>
252 * elf32-m68hc1x.c (elf32_m68hc11_post_process_headers): Call
253 _bfd_elf_post_process_headers.
255 2018-07-06 Max Filippov <jcmvbkbc@gmail.com>
257 * elf32-xtensa.c (elf_xtensa_allocate_dynrelocs): Don't allocate
258 space for dynamic relocation for undefined weak symbol.
259 (elf_xtensa_relocate_section): Don't emit R_XTENSA_RELATIVE
260 relocation for undefined weak symbols.
261 (shrink_dynamic_reloc_sections): Don't shrink dynamic relocation
262 section for relocations against undefined weak symbols.
264 2018-07-06 Alan Hayward <alan.hayward@arm.com>
266 * elf.c (elfcore_grok_aarch_sve): New function.
267 (elfcore_grok_note): Check for Aarch64 SVE.
268 (elfcore_write_aarch_sve): New function.
269 (elfcore_write_register_note): Check for Aarch64 SVE.
270 * elf-bfd.h(elfcore_grok_aarch_sve): New declaration.
272 2018-07-06 Alan Modra <amodra@gmail.com>
274 * elf32-arm.c (elf32_arm_nabi_write_core_note): Don't use
275 DIAGNOTIC_PUSH and DIAGNOSTIC_POP unconditionally.
276 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
277 * elf32-s390.c (elf_s390_write_core_note): Likewise.
278 * elf64-ppc.c (ppc64_elf_write_core_note): Likewise.
279 * elf64-s390.c (elf_s390_write_core_note): Likewise.
280 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
282 2018-07-05 Jim Wilson <jimw@sifive.com>
284 * config.bfd (riscv32*-*-*): Renamed from riscv32-*-*.
285 (riscv64*-*-*): Likewise.
286 (riscv-*-*): Add as an alias for riscv32*-*-*.
288 2018-07-05 H.J. Lu <hongjiu.lu@intel.com>
291 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Remove x86
292 ISA properties with empty bits.
294 2018-07-05 Nick Clifton <nickc@redhat.com>
296 * po/ru.po: Updated Russian translation.
298 2018-07-05 Alan Modra <amodra@gmail.com>
300 * elf-bfd.h (_bfd_elf_ppc_merge_fp_attributes): Update prototype.
301 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Return error
302 on mismatch. Remove "warning: " from messages. Track last bfd
304 (ppc_elf_merge_obj_attributes): Likewise. Handle status from
305 _bfd_elf_ppc_merge_fp_attributes.
306 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data): Handle status
307 from _bfd_elf_ppc_merge_fp_attributes.
309 2018-07-04 H.J. Lu <hongjiu.lu@intel.com>
311 * Makefile.am (bfdinclude_HEADERS): Add $(INCDIR)/diagnostics.h.
312 * Makefile.in: Regenerated.
314 2018-07-03 Alan Modra <amodra@gmail.com>
316 * elflink.c (bfd_elf_final_link): Remove zero size .gnu.attributes
319 2018-07-03 Alan Modra <amodra@gmail.com>
321 * elf-bfd.h (ATTR_TYPE_FLAG_ERROR, ATTR_TYPE_HAS_ERROR): Define.
322 * elf-attrs.c (is_default_attr): Handle ATTR_TYPE_HAS_ERROR.
323 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Use
324 ATTR_TYPE_FLAG_INT_VAL. Set ATTR_TYPE_HAS_ERROR on finding
325 incompatible attribute.
326 (ppc_elf_merge_obj_attributes): Likewise. Return
327 _bfd_elf_merge_object_attributes result.
328 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data): Return
329 _bfd_elf_merge_object_attributes result.
331 2018-07-03 Alan Modra <amodra@gmail.com>
334 * elflink.c (_bfd_elf_fix_symbol_flags): Hide dynamic symbols
335 in discarded sections.
337 2018-07-02 Maciej W. Rozycki <macro@mips.com>
339 * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Set
340 `mark' for symbols created from `mips_elf_dynsym_rtproc_names'
343 2018-07-02 Maciej W. Rozycki <macro@mips.com>
345 * elf64-mips.c (micromips_elf64_howto_table_rel): Add
346 R_MICROMIPS_HI0_LO16, R_MICROMIPS_TLS_GD, R_MICROMIPS_TLS_LDM,
347 R_MICROMIPS_TLS_DTPREL_HI16, R_MICROMIPS_TLS_DTPREL_LO16,
348 R_MICROMIPS_TLS_GOTTPREL, R_MICROMIPS_TLS_TPREL_HI16,
349 R_MICROMIPS_TLS_TPREL_LO16, R_MICROMIPS_GPREL7_S2 and
350 R_MICROMIPS_PC23_S2 relocation entries.
351 (micromips_elf64_howto_table_rela): Likewise.
352 (micromips_reloc_map): Likewise.
353 * elfn32-mips.c (elf_micromips_howto_table_rel): Likewise.
354 (elf_micromips_howto_table_rela): Likewise.
355 (micromips_reloc_map): Likewise.
357 2018-07-02 H.J. Lu <hongjiu.lu@intel.com>
360 * elf64-x86-64.c (elf_x86_64_relocate_section): Clear the
361 R_X86_64_converted_reloc_bit bit.
363 2018-07-02 Jeff Muizelaar <jrmuizel@gmail.com>
364 Tom Tromey <tom@tromey.com>
368 * mach-o.c (bfd_mach_o_fat_close_and_cleanup): New function.
369 (bfd_mach_o_close_and_cleanup): Redefine.
370 * archive.c (_bfd_unlink_from_archive_parent): New function,
372 (_bfd_archive_close_and_cleanup): ..here.
373 (bfd_generic_archive_p): Do not clear archive's format.
374 * libbfd-in.h (_bfd_unlink_from_archive_parent): Declare.
375 * libbfd.h: Regenerate.
377 2018-07-02 Thomas Preud'homme <thomas.preudhomme@arm.com>
379 * archures.c (bfd_mach_arm_5TEJ, bfd_mach_arm_6, bfd_mach_arm_6KZ,
380 bfd_mach_arm_6T2, bfd_mach_arm_6K, bfd_mach_arm_7, bfd_mach_arm_6M,
381 bfd_mach_arm_6SM, bfd_mach_arm_7EM, bfd_mach_arm_8, bfd_mach_arm_8R,
382 bfd_mach_arm_8M_BASE, bfd_mach_arm_8M_MAIN): Define.
383 * bfd-in2.h: Regenerate.
384 * cpu-arm.c (arch_info_struct): Add entries for above new
386 * elf32-arm.c (bfd_arm_get_mach_from_attributes): Add Tag_CPU_arch to
387 bfd_mach_arm mapping logic for pre Armv4 and Armv5TEJ and later
388 architectures. Force assert failure for any new Tag_CPU_arch value.
390 2018-07-02 Thomas Preud'homme <thomas.preudhomme@arm.com>
392 * doc/bfdint.texi: Use command-line consistently when used in a
394 * doc/bfdsumm.texi: Likewise.
396 2018-06-29 Maciej W. Rozycki <macro@mips.com>
398 * elfxx-mips.c (allocate_dynrelocs): Remove extraneous symbol
399 visibility check made for undefined weak symbols.
401 2018-06-26 Nick Clifton <nickc@redhat.com>
403 * po/uk.po: Updated Ukranian translation.
405 2018-06-25 Nick Clifton <nickc@redhat.com>
407 * elfnn-aarch64.c (_bfd_aarch64_erratum_835769_stub_name): Check
408 for malloc returning NULL.
409 (_bfd_aarch64_erratum_843419_fixup): Check for
410 _bfd_aarch64_erratum_835769_stub_name returning NULL.
412 2018-06-24 Nick Clifton <nickc@redhat.com>
414 * po/bfd.pot: Regenerate.
416 2018-06-24 Nick Clifton <nickc@redhat.com>
418 * version.m4: Update version string to 2.31.51.
419 * configure: Regenerate.
421 2018-06-24 Nick Clifton <nickc@redhat.com>
425 2018-06-21 Maciej W. Rozycki <macro@mips.com>
427 * elfxx-mips.c (_bfd_mips_elf_compact_eh_encoding)
428 (_bfd_mips_elf_cant_unwind_opcode): Correct formatting.
430 2018-06-21 Maciej W. Rozycki <macro@mips.com>
432 * elfxx-mips.c (_bfd_mips_post_process_headers): Keep
433 EI_ABIVERSION setting together.
435 2018-06-21 Maciej W. Rozycki <macro@mips.com>
437 * elfxx-mips.c (MIPS_LIBC_ABI_DEFAULT, MIPS_LIBC_ABI_MIPS_PLT)
438 (MIPS_LIBC_ABI_UNIQUE, MIPS_LIBC_ABI_MIPS_O32_FP64)
439 (MIPS_LIBC_ABI_MAX): New enumeration constants.
440 (_bfd_mips_post_process_headers): Use them in place of magic
443 2018-06-21 Jim Wilson <jimw@sifive.com>
445 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Update comment.
446 Use SYMBOL_REFERENCES_LOCAL. Add asserts for h->got.offset.
448 2018-06-21 Alan Modra <amodra@gmail.com>
450 * doc/Makefile.am (AUTOMAKE_OPTIONS): Add "foreign".
451 * doc/Makefile.in: Regenerate.
453 2018-06-20 Renlin Li <renlin.li@arm.com>
455 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use PG_OFFSET
456 to resolve BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC,
457 BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC,
458 BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC,
459 BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC,
460 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
461 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
462 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
463 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
465 2018-06-20 Nick Clifton <nickc@redhat.com>
468 * opncls.c (get_build_id): Check for a negative or excessive data
469 size in the build-id note.
471 2018-06-20 Nick Clifton <nickc@redhat.com>
474 * mach-o.c (cputype): New function.
475 (cpusubtype): New function.
476 (bfd_mach_o_bfd_print_private_data): New function. Dispalys the
477 values in the MACH-O file header.
478 (bfd_mach_o_bfd_copy_private_header_data): Copy the cputype and
479 cpusubtype fields from the input bfd's mach-o header to the output
481 * mach-o-target.c (bfd_mach_o_bfd_print_private_bfd_data):
482 Redefine to bfd_mach_o_bfd_print_private_data.
483 * mach-o.h (bfd_mach_o_bfd_print_private_bfd_data): Prototype.
485 2018-06-19 Maciej W. Rozycki <macro@mips.com>
488 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Verify the
489 `.got.plt' entry referred is in range.
490 (mips_finish_exec_plt): Correct the range check for `.got.plt'
491 start. Replace the assertion used for that with a proper error
494 2018-06-19 Maciej W. Rozycki <macro@mips.com>
496 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Fix
499 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
501 * Makefile.am (AUTOMAKE_OPTIONS): Remove 1.11.
502 (INCLUDES): Rename to ...
503 (AM_CPPFLAGS): ... this.
504 * configure.ac: Remove AC_PREREQ.
505 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove 1.9, cygnus, add
506 info-in-builddir no-texinfo.tex.
507 (info_TEXINFOS): Rename bfd.texinfo to bfd.texi.
508 * doc/bfd.texinfo: Rename to ...
509 * doc/bfd.texi: ... this.
510 * Makefile.in: Re-generate.
511 * aclocal.m4: Re-generate.
512 * config.in: Re-generate.
513 * configure: Re-generate.
514 * doc/Makefile.in: Re-generate.
516 2018-06-18 Mephi <mephi42@gmail.com>
519 * mach-o-x86-64.c (x86_64_howto_table): Add entry for
520 BFD_RELOC_MACH_O_X86_64_RELOC_TLV.
521 (bfd_mach_o_x86_64_canonicalize_one_reloc): Handle the new reloc.
522 (bfd_mach_o_x86_64_swap_reloc_out): Likewise.
523 * reloc.c (BFD_RELOC_MACH_O_X86_64_TV): New entry.
524 * bfd-in2.h: Regenerate.
525 * libbfd.h: Regenerate.
527 2018-06-14 Faraz Shahbazker <Faraz.Shahbazker@mips.com>
529 * elfxx-mips.c (print_mips_ases): Add GINV extension.
531 2018-06-14 H.J. Lu <hongjiu.lu@intel.com>
534 * elf.c (_bfd_elf_get_symbol_version_string): Check if the first
535 symbol version is base version.
537 2018-06-14 Alan Modra <amodra@gmail.com>
539 * elf-bfd.h (struct elf_link_hash_table): Add "dynamic_relocs".
540 * elflink.c (_bfd_elf_init_2_index_sections): Comment fix.
541 (_bfd_elf_add_dynamic_entry): Set "dynamic_relocs".
542 (_bfd_elf_link_renumber_dynsyms): Exclude all section symbols when
543 "dynamic_relocs" is not set.
544 * elfxx-mips.c (count_section_dynsyms): Likewise.
546 2018-06-14 Alan Modra <amodra@gmail.com>
549 * bfdio.c (bfd_seek): Optimize away seeks to current position.
551 2018-06-13 Scott Egerton <scott.egerton@imgtec.com>
552 Faraz Shahbazker <Faraz.Shahbazker@mips.com>
554 * elfxx-mips.c (print_mips_ases): Add CRC.
556 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
559 * elfxx-x86.c (elf_x86_hide_linker_defined): New function.
560 (_bfd_x86_elf_link_check_relocs): Use it to hide hidden
561 __bss_start, _end and _edata in shared libraries.
563 2018-06-07 Alan Modra <amodra@gmail.com>
565 * elf32-tic6x.c (elf32_tic6x_check_relocs): Reference
566 __c6xabi_DSBT_BASE explicitly for R_C6000_SBR_* relocs.
568 2018-06-05 Alan Modra <amodra@gmail.com>
570 * bfd.c (struct bfd): Update comment on "where" usage.
571 * bfdio.c (bfd_bwrite, bfd_stat): Use and update "iovec",
572 "iostream", and "where" from containing archive file. Return
574 (bfd_bread): Similarly, and return error attempted out of
575 bounds archive element access.
576 (bfd_tell, bfd_flush): Use and update "iovec", "iostream", and
577 "where" from containing archive file.
578 (bfd_seek): Likewise. Return error on NULL iovec. Don't
579 attempt to optimize away seeks. Don't paper over errors by
581 (bfd_get_mtime): Call bfd_stat rather than iovec->bstat.
582 (bfd_get_size): Likewise.
583 (bfd_mmap): Operate on and use iovec of containing archive
584 file. Return error on NULL iovec.
585 * cache.c (bfd_cache_lookup_worker): Abort if working on
587 (cache_bread_1): Delete bfd parameter, add FILE* parameter.
588 Don't ignore zero byte reads.
589 (cache_bread): Look up FILE* in cache here. Error on NULL
591 (cache_bwrite): Rename "where" to "from".
592 (cache_bmmap): Don't handle archive elements.
593 * coffcode.h (coff_slurp_line_table): Exit early on zero
595 * bfd-in2.h: Regenerate.
597 2018-06-05 Alan Modra <amodra@gmail.com>
600 * plugin.c (bfd_plugin_open_input): Allow for possibility of
601 nested archives. Open file again for plugin.
602 (try_claim): Don't save and restore file position. Close file
604 * sysdep.h (O_BINARY): Define.
606 2018-06-04 Max Filippov <jcmvbkbc@gmail.com>
608 * elf32-xtensa.c (xtensa_read_table_entries): Make global.
609 (compute_fill_extra_space): Drop declaration. Rename function to
610 xtensa_compute_fill_extra_space.
611 (compute_ebb_actions, remove_dead_literal): Update references to
612 compute_fill_extra_space.
614 2018-06-04 Volodymyr Arbatov <arbatov@cadence.com>
616 * elf32-xtensa.c (elf32xtensa_separate_props): New global
618 (xtensa_add_names): New function.
619 (xtensa_property_section_name): Add new parameter
620 separate_sections, use it to choose property section name.
621 (xtensa_get_separate_property_section): New function.
622 (xtensa_get_property_section): Invoke
623 xtensa_get_separate_property_section to get individual property
624 section if it exists, common property section otherwise.
625 (xtensa_make_property_section): Pass elf32xtensa_separate_props
626 to xtensa_property_section_name.
628 2018-06-04 H.J. Lu <hongjiu.lu@intel.com>
631 * bfd-in.h: Include "diagnostics.h".
632 * bfd-in2.h: Regenerated.
633 * elf32-arm.c (elf32_arm_nabi_write_core_note): Use
634 DIAGNOSTIC_PUSH, DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION and
635 DIAGNOSTIC_POP to silence GCC 8.1 warnings with
636 -Wstringop-truncation.
637 * elf32-ppc.c (ppc_elf_write_core_note): Likewse.
638 * elf32-s390.c (elf_s390_write_core_note): Likewse.
639 * elf64-ppc.c (ppc64_elf_write_core_note): Likewse.
640 * elf64-s390.c (elf_s390_write_core_note): Likewse.
641 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewse.
643 2018-06-03 Jim Wilson <jimw@sifive.com>
646 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Check
647 for and handle an undefined weak with no PLT.
650 * elfnn-riscv.c (riscv_relax_delete_bytes): Add versioned_hidden check
651 to code that ignores duplicate symbols.
653 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
655 * version.m4: Bump version to 2.30.52
656 * configure: Regenerated.
658 2018-06-01 Alan Modra <amodra@gmail.com>
660 * bfd.c (_bfd_error_handler): Arrange for this function to be
661 declared in bfd-in2.h.
662 * libbfd-in.h (_bfd_error_handler): Don't declare.
663 * libbfd.h: Regenerate.
664 * bfd-in2.h: Regenerate.
666 2018-05-30 Amaan Cheval <amaan.cheval@gmail.com>
668 * config.bfd (x86_64-*-*): Add pei-x86-64 target to x86_64-*-rtems*
669 This is needed to generate UEFI application image files from ELFs.
671 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
673 * elf32-i386.c (elf_i386_lazy_plt): Add plt_tlsdesc_entry,
674 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
675 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
676 plt_tlsdesc_got2_insn_end for TLSDESC entry.
677 (elf_i386_lazy_ibt_plt): Likewise.
678 (elf_i386_nacl_plt): Likewise.
679 * elf64-x86-64.c (tlsdesc_plt_entry): Moved and renamed to ...
680 (elf_x86_64_tlsdesc_plt_entry): This.
681 (elf_x86_64_lazy_plt): Add plt_tlsdesc_entry,
682 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
683 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
684 plt_tlsdesc_got2_insn_end for TLSDESC entry.
685 (elf_x86_64_lazy_bnd_plt): Likewise.
686 (elf_x86_64_lazy_ibt_plt): Likewise.
687 (elf_x32_lazy_ibt_plt): Likewise.
688 (elf_x86_64_nacl_plt): Likewise.
689 (elf_x86_64_finish_dynamic_sections): Use plt_tlsdesc_entry,
690 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
691 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
692 plt_tlsdesc_got2_insn_end to update TLSDESC entry.
693 * elfxx-x86.h (elf_x86_lazy_plt_layout): Update comments.
694 Add plt_tlsdesc_entry, plt_tlsdesc_entry_size,
695 plt_tlsdesc_got1_offset, plt_tlsdesc_got2_offset,
696 plt_tlsdesc_got1_insn_end and plt_tlsdesc_got2_insn_end.
697 (elf_x86_non_lazy_plt_layout): Update comments.
698 (elf_x86_plt_layout): Likewise.
700 2018-05-28 H.J. Lu <hongjiu.lu@intel.com>
703 * elf-s390-common.c (elf_s390_add_symbol_hook): Removed.
704 * elf32-arc.c (elf_arc_add_symbol_hook): Likewise.
705 (elf_backend_add_symbol_hook): Likewise.
706 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
707 (elf_backend_add_symbol_hook): Likewise.
708 * elf32-s390.c (elf_backend_add_symbol_hook): Likewise.
709 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
710 (elf_backend_add_symbol_hook): Likewise.
711 * elf64-s390.c (elf_backend_add_symbol_hook): Likewise.
712 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
713 * elfxx-aarch64.h (_bfd_aarch64_elf_add_symbol_hook): Likewise.
714 (elf_backend_add_symbol_hook): Likewise.
715 * elf32-arm.c (elf32_arm_add_symbol_hook): Remove STT_GNU_IFUNC
717 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
718 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
719 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
720 * elflink.c (elf_link_add_object_symbols): Set
721 elf_gnu_symbol_ifunc for STT_GNU_IFUNC symbols.
723 2018-05-26 H.J. Lu <hongjiu.lu@intel.com>
726 * elf-bfd.h (_bfd_elf_link_hide_sym_by_version): New.
727 * elflink.c (_bfd_elf_link_hide_versioned_symbol): New function.
728 Extracted from _bfd_elf_link_assign_sym_version.
729 (_bfd_elf_link_hide_sym_by_version): New function.
730 (_bfd_elf_link_assign_sym_version): Use
731 _bfd_elf_link_hide_versioned_symbol.
732 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Call
733 _bfd_elf_link_hide_sym_by_version instead of
734 bfd_hide_sym_by_version. Don't check unversioned symbol.
736 2018-05-25 Alan Modra <amodra@gmail.com>
738 * Makefile.in: Regenerate.
739 * po/SRC-POTFILES.in: Regenerate.
741 2018-05-25 Alan Modra <amodra@gmail.com>
743 * configure.ac (bfd_cv_hidden): Run test with -Werror in CFLAGS.
744 * configure: Regenerate.
746 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
748 * elf64-ppc.c (ppc64_elf_write_core_note): Add ATTRIBUTE_NONSTRING
751 2018-05-22 Alan Modra <amodra@gmail.com>
754 * elf32-hppa.c (hppa_get_stub_entry): Return NULL when link_sec
756 (elf32_hppa_size_stubs): Only create stubs for load, alloc, code
758 (final_link_relocate): Revert last change.
760 2018-05-22 Alan Modra <amodra@gmail.com>
763 * elf32-hppa.c (final_link_relocate): Don't look for plt call
764 stubs in non-alloc sections.
766 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
769 * aout-target.h (MY_bfd_link_hide_symbol): New.
770 * aout-tic30.c (MY_bfd_link_hide_symbol): Likewise.
771 * binary.c (binary_bfd_link_hide_symbol): Likewise.
772 * coff-alpha.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
773 * coff-mips.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
774 * coff-rs6000.c (_bfd_xcoff_bfd_link_hide_symbol): Likewise.
775 * coffcode.h (coff_bfd_link_hide_symbol): Likewise.
776 * elf-bfd.h (_bfd_elf_link_hide_symbol): Likewise.
777 * elfxx-target.h (bfd_elfNN_bfd_link_hide_symbol): Likewise.
778 * i386msdos.c (msdos_bfd_link_hide_symbol): Likewise.
779 * ihex.c (ihex_bfd_link_hide_symbol): Likewise.
780 * libbfd-in.h (_bfd_nolink_bfd_link_hide_symbol): Likewise.
781 * linker.c (_bfd_generic_link_hide_symbol): Likewise.
782 (bfd_link_hide_symbol): Likewise.
783 * mach-o-target.c (bfd_mach_o_bfd_link_hide_symbol): Likewise.
784 * mmo.c (mmo_bfd_link_hide_symbol): Likewise.
785 * pef.c (bfd_pef_bfd_link_hide_symbol): Likewise.
786 * plugin.c (bfd_plugin_bfd_link_hide_symbol): Likewise.
787 * ppcboot.c (ppcboot_bfd_link_hide_symbol): Likewise.
788 * som.c (som_bfd_link_hide_symbol): Likewise.
789 * srec.c (srec_bfd_link_hide_symbol): Likewise.
790 * tekhex.c (tekhex_bfd_link_hide_symbol): Likewise.
791 * vms-alpha.c (vms_bfd_link_hide_symbol): Likewise.
792 (alpha_vms_bfd_link_hide_symbol): Likewise.
793 * xsym.c (bfd_sym_bfd_link_hide_symbol): Likewise.
794 * coff64-rs6000.c (rs6000_xcoff64_vec): Add
795 _bfd_generic_link_hide_symbol.
796 (rs6000_xcoff64_aix_vec): Likewise.
797 * elflink.c (bfd_elf_record_link_assignment): Don't make forced
798 local symbol dynamic.
799 (_bfd_elf_link_hide_symbol): New function.
800 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
801 check root.ldscript_def.
802 * targets.c (bfd_target): Add _bfd_link_hide_symbol.
803 (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_link_hide_symbol.
804 * bfd-in2.h: Regenerated.
805 * libbfd.h: Likewise.
807 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
810 * elf.c (setup_group): Mark section in a section group with
813 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
816 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
817 set eh->local_ref to 1 if a symbol is versioned and there is a
820 2018-05-18 Kito Cheng <kito.cheng@gmail.com>
822 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Handle
825 2018-05-18 Jim Wilson <jimw@sifive.com>
827 * elfnn-riscv.c (allocate_dynrelocs): Discard dynamic relocations if
828 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
829 (riscv_elf_relocate_section): Don't generate dynamic relocation if
830 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
831 (riscv_elf_finish_dynamic_symbol): Likewise.
833 2018-05-18 John Darrington <john@darrington.wattle.id.au>
835 * Makefile.am: Add s12z files.
836 * Makefile.in: Regenerate.
837 * archures.c: Add bfd_s12z_arch.
838 * bfd-in.h: Add exports of bfd_putb24 and bfd_putl24.
839 * bfd-in2.h: Regenerate.
840 * config.bfd: Add s12z target.
841 * configure.ac: Add s12z target.
842 * configure: Regenerate.
843 * cpu-s12z.c: New file.
844 * elf32-s12z.c: New file.
845 * libbfd.c (bfd_putb24): New function.
846 (bfd_putl24): New function.
847 * libbfd.h: Regenerate.
848 * reloc.c: Add s12z relocations.
849 (bfd_get_reloc_size): Handle size 5 relocs.
850 * targets.c: Add s12z_elf32_vec.
852 2018-05-18 H.J. Lu <hongjiu.lu@intel.com>
855 * elf32-i386.c (elf_i386_relocate_section): Handle R_386_GOT32X
857 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
858 set eh->local_ref to 1 for linker defined symbols.
860 2018-05-18 Alan Modra <amodra@gmail.com>
863 * elf.c (setup_group): Formatting. Check that SHT_GROUP entries
864 don't point at other SHT_GROUP sections. Set shdr corresponding
865 to invalid entry, to NULL rather than section 0. Identify
866 SHT_GROUP section index when reporting an error. Cope with NULL
869 2018-05-18 Alan Modra <amodra@gmail.com>
871 * libbfd-in.h (ATTRIBUTE_HIDDEN): Define and use throughout.
872 * configure.ac (HAVE_HIDDEN): Check compiler support for hidden
874 * libbfd.h: Regenerate.
875 * configure: Regenerate.
876 * config.in: Regenerate.
878 2018-05-18 Alan Modra <amodra@gmail.com>
880 * libbfd-in.h: Add include guard.
881 * libcoff-in.h: Likewise.
882 * doc/Makefile.am (libbfd.h, libcoff.h): Append another #endif.
883 * doc/Makefile.in: Regenerate.
884 * libbfd.h: Regenerate.
885 * libcoff.h: Regenerate.
887 2018-05-16 Maciej W. Rozycki <macro@mips.com>
889 * elf32-nds32.c (nds32_convert_32_to_16): Preset `insn_type'.
891 2018-05-16 Alan Modra <amodra@gmail.com>
894 * format.c (struct bfd_preserve): Add section_id.
895 (bfd_preserve_save, bfd_preserve_restore): Save and restore
897 (bfd_reinit): Set _bfd_section_id.
898 (bfd_check_format_matches): Put all matches of any priority into
899 matching_vector. Save initial section id and start each attempted
900 match at that section id.
901 * libbfd-in.h (_bfd_section_id): Declare.
902 * section.c (_bfd_section_id): Rename from section_id and make
904 (bfd_get_next_section_id): Delete.
905 * elf64-ppc.c (ppc64_elf_setup_section_lists): Replace use of
906 bfd_get_section_id with _bfd_section_id.
907 * libbfd.h: Regenerate.
908 * bfd-in2.h: Regenerate.
910 2018-05-15 Christophe Guillon <christophe.guillon@st.com>
912 * coffcode.h (coff_bigobj_swap_aux_in): Make sure that all fields
913 of the aux structure are initialised.
915 2018-05-15 Francois H. Theron <francois.theron@netronome.com>
917 * targets.c: Wrap nfp_elf64_vec in BFD64 ifdef.
919 2018-05-15 Nick Clifton <nickc@redhat.com>
921 * po/pt.po: New Portuguese translation.
922 * configure.ac (ALL_LINGUAS): Add pt.
923 * configure: Regenerate.
925 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
928 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Don't issue
929 an error on IFUNC pointer defined in PDE.
930 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Call
931 _bfd_x86_elf_link_fixup_ifunc_symbol.
932 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
933 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): New
935 * elfxx-x86.h (_bfd_x86_elf_link_fixup_ifunc_symbol): New.
937 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
940 * elfxx-x86.c (elf_x86_linker_defined): New function.
941 (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start,
942 _end and _edata locally defined within executables.
944 2018-05-12 Alan Modra <amodra@gmail.com>
947 * elf.c (rewrite_elf_program_header): Use segment_mark only for
948 PT_LOAD headers. Delete first_matching_lma and first_suggested_lma.
949 Instead make matching_lma and suggested_lma pointers to the
950 sections. Align section vma and lma calculated from segment.
951 Don't clear includes_phdrs or includes_filehdr based on p_paddr
952 test. Try to handle alignment padding before first section by
953 adjusting new segment lma down. Adjust PT_PHDR map p_paddr.
955 2018-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
957 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Make LDI32 relocation
958 conformant to TI ABI.
959 (pru_elf32_relax_section): Likewise.
960 (pru_elf_relax_delete_bytes): Fix offsets for new LDI32 code.
961 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Ignore addend.
962 (pru_elf32_pmem_relocate): Trap - should not get here.
963 (pru_elf32_relocate_section): Add support for REL relocations.
964 (elf_info_to_howto_rel): Enable REL.
965 (elf_backend_may_use_rel_p): Likewise.
966 (elf_backend_may_use_rela_p): Likewise.
967 (elf_backend_default_use_rela_p): Likewise.
969 2018-05-09 Alan Modra <amodra@gmail.com>
972 * peXXigen.c (pe_print_edata): Correct minimum size.
974 2018-05-09 Alan Modra <amodra@gmail.com>
977 * peXXigen.c (pe_print_idata): Bound check hint_addr.
979 2018-05-08 Nick Clifton <nickc@redhat.com>
982 * elf.c (bfd_elf_get_str_section): Check for an excessively large
984 * elf-attrs.c (_bfd_elf_parse_attributes): Issue an error if the
985 attribute section is larger than the size of the file.
987 2018-05-07 Alan Modra <amodra@gmail.com>
989 * cofflink.c (_bfd_coff_link_input_bfd): Use memcmp rather than
990 strncmp when checking for ".bf" special symbol.
991 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Make pe_required_section_flags
992 section name a char array, remove sentinal known_sections entry,
993 and adjust loop over known_sections to suit. Use memcmp rather
996 2018-05-04 Alan Modra <amodra@gmail.com>
998 * elf-linux-core.h (struct elf_external_linux_prpsinfo32_ugid32),
999 (struct elf_external_linux_prpsinfo32_ugid16),
1000 (struct elf_external_linux_prpsinfo64_ugid32),
1001 (struct elf_external_linux_prpsinfo64_ugid16): Add ATTRIBUTE_NONSTRING
1002 to pr_fname and pr_psargs fields. Remove GCC diagnostic pragmas.
1004 * elf.c (elfcore_write_prpsinfo): ..here. Indent nested preprocessor
1006 * elf32-arm.c (elf32_arm_nabi_write_core_note): Add ATTRIBUTE_NONSTRING
1008 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
1009 * elf32-s390.c (elf_s390_write_core_note): Likewise.
1010 * elf64-s390.c (elf_s390_write_core_note): Likewise.
1011 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
1012 * elf64-x86-64.c (elf_x86_64_write_core_note): Add GCC diagnostic
1014 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Use strnlen to avoid
1015 false positive gcc-8 warning.
1016 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
1018 2018-05-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1020 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Fix the order
1021 of arguments when warning about different long double types.
1023 2018-05-03 Simon Atanasyan <simon@atanasyan.com>
1025 * elf32-mips.c: (elf32_mips_fixup_symbol): New function.
1026 (elf_backend_fixup_symbol): New macro.
1027 * elfxx-mips.c: (mips_elf_output_extsym): Discard _gp_disp
1029 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
1031 2018-04-30 Francois H. Theron <francois.theron@netronome.com>
1033 * Makefile.am: Added NFP files to build.
1034 * archures.c: Added bfd_arch_nfp
1035 * config.bfd: Added NFP support.
1036 * configure.ac: Added NFP support.
1037 * cpu-nfp.c: New, for NFP support.
1038 * elf-bfd.h: Added elf_section_info()
1039 * elf64-nfp.c: New, for NFP support.
1040 * po/SRC-POTFILES.in: Added NFP source files.
1041 * targets.c: Added nfp_elf64_vec
1042 * bfd-in2.h: Regenerate.
1043 * Makefile.in: Regenerate.
1044 * configure: Regenerate.
1046 2018-04-27 Alan Modra <amodra@gmail.com>
1048 * bfd-in2.h: Regenerate.
1049 * libbfd.h: Regenerate.
1051 2018-04-27 Alan Modra <amodra@gmail.com>
1055 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't drop plt
1057 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Comment fixes.
1059 2018-04-26 Pedro Alves <palves@redhat.com>
1061 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't consider
1062 ifunc and non-ifunc symbols duplicates.
1064 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1065 Mickaël Guêné <mickael.guene@st.com>
1067 * elf32-arm.c (elf32_arm_fdpic_thumb_plt_entry): New.
1068 (elf32_arm_plt_needs_thumb_stub_p): Handle thumb-only case.
1069 (elf32_arm_populate_plt_entry): Likewise.
1070 (elf32_arm_output_plt_map_1): Likewise.
1071 (elf32_arm_output_arch_local_syms): Likewise.
1073 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1074 Mickaël Guêné <mickael.guene@st.com>
1076 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Handle
1077 _GLOBAL_OFFSET_TABLE_ in FDPIC mode.
1079 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1080 Mickaël Guêné <mickael.guene@st.com>
1082 * elf32-arm.c (bfd_elf32_arm_set_target_params): Handle FDPIC case
1085 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1086 Mickaël Guêné <mickael.guene@st.com>
1088 * elf32-arm.c (DEFAULT_STACK_SIZE): New.
1089 (elf32_arm_always_size_sections): Create stack segment.
1091 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1092 Mickaël Guêné <mickael.guene@st.com>
1094 * bfd-in2.h (BFD_RELOC_ARM_TLS_GD32_FDPIC)
1095 (BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC): New
1097 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_TLS_GD32_FDPIC,
1098 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC relocations.
1099 (elf32_arm_reloc_map): Add R_ARM_TLS_GD32_FDPIC,
1100 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC.
1101 (struct elf32_arm_link_hash_table): Update comment.
1102 (elf32_arm_final_link_relocate): Handle TLS FDPIC relocations.
1103 (IS_ARM_TLS_RELOC): Likewise.
1104 (elf32_arm_check_relocs): Likewise.
1105 (allocate_dynrelocs_for_symbol): Likewise.
1106 (elf32_arm_size_dynamic_sections): Update comment.
1107 * reloc.c: Add BFD_RELOC_ARM_TLS_GD32_FDPIC,
1108 BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC.
1110 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1111 Mickaël Guêné <mickael.guene@st.com>
1113 * elf32-arm.c (elf32_arm_fdpic_plt_entry): New.
1114 (elf32_arm_create_dynamic_sections): Handle FDPIC.
1115 (elf32_arm_allocate_plt_entry): Likewise.
1116 (elf32_arm_populate_plt_entry): Likewise.
1117 (elf32_arm_output_plt_map_1): Likewise.
1119 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1120 Mickaël Guêné <mickael.guene@st.com>
1122 * elf32-arm.c (struct fdpic_local): New.
1123 (elf_arm_obj_tdata): Add local_fdpic_cnts field.
1124 (elf32_arm_local_fdpic_cnts): New.
1125 (struct fdpic_global): New.
1126 (elf32_arm_link_hash_entry): Add fdpic_cnts field.
1127 (elf32_arm_link_hash_table): Add srofixup field.
1128 (arm_elf_add_rofixup): New.
1129 (arm_elf_fill_funcdesc): New.
1130 (elf32_arm_link_hash_newfunc): Handle fdpic_cnts.
1131 (elf32_arm_allocate_local_sym_info): Likewise.
1132 (create_got_section): Create .rofixup section.
1133 (elf32_arm_copy_indirect_symbol): Handle fdpic_cnts.
1134 (bfd_elf32_arm_set_target_params): Handle FDPIC.
1135 (elf32_arm_final_link_relocate): Likewise.
1136 (elf32_arm_check_relocs): Likewise.
1137 (allocate_dynrelocs_for_symbol): Likewise.
1138 (elf32_arm_size_dynamic_sections): Likewise.
1139 (elf32_arm_finish_dynamic_sections): Likewise.
1140 (elf32_arm_output_arch_local_syms): Likewise.
1141 (elf32_arm_fdpic_omit_section_dynsym): New.
1143 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1144 Mickaël Guêné <mickael.guene@st.com>
1146 * bfd-in2.c (BFD_RELOC_ARM_GOTFUNCDESC)
1147 (BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC)
1148 (BFD_RELOC_ARM_FUNCDESC_VALUE): New.
1149 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_GOTFUNCDESC,
1150 R_ARM_GOTOFFFUNCDESC, R_ARM_FUNCDESC, R_ARM_FUNCDESC_VALUE.
1151 (elf32_arm_howto_from_type): Take new members of
1152 elf32_arm_howto_table_2 into account.
1153 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_GOTFUNCDESC,
1154 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
1155 BFD_RELOC_ARM_FUNCDESC_VALUE.
1156 * reloc.c: Add BFD_RELOC_ARM_GOTFUNCDESC,
1157 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
1158 BFD_RELOC_ARM_FUNCDESC_VALUE.
1160 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1161 Mickaël Guêné <mickael.guene@st.com>
1163 * elf32-arm.c (elf32_arm_print_private_bfd_data): Support
1164 EF_ARM_PIC and ELFOSABI_ARM_FDPIC.
1165 (elf32_arm_post_process_headers): Support ELFOSABI_ARM_FDPIC.
1166 (ELF_OSABI): Define to ELFOSABI_ARM_FDPIC.
1168 2018-04-25 Christophe Lyon <christophe.lyon@st.com>
1169 Mickaël Guêné <mickael.guene@st.com>
1171 * config.bfd (arm*-*-linux-*): Add arm_elf32_fdpic_be_vec and
1172 arm_elf32_fdpic_le_vec to targ_selvecs. Accept
1173 arm*-*-uclinuxfdpiceabi.
1174 * configure.ac: Add support for arm_elf32_fdpic_be_vec and
1175 arm_elf32_fdpic_le_vec.
1176 * configure: Regenerate.
1177 * elf32-arm.c (struct elf32_arm_link_hash_table): Add fdpic_p.
1178 (elf32_arm_link_hash_table_create): Initialize fdpic_p.
1179 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM)
1180 (TARGET_BIG_NAME, elf_match_priority): Define for FDPIC targets.
1181 (elf32_arm_fdpic_link_hash_table_create): New.
1182 * targets.c (_bfd_target_vector): Add arm_elf32_fdpic_be_vec and
1183 arm_elf32_fdpic_le_vec.
1185 2018-04-25 Alan Modra <amodra@gmail.com>
1187 * elf-linux-core.h: Disable gcc-8 string truncation warning.
1188 * elf.c (elfcore_write_prpsinfo): Likewise.
1190 2018-04-25 Alan Modra <amodra@gmail.com>
1192 * Makefile.am: Remove arm-aout and arm-coff support.
1193 * config.bfd: Likewise.
1194 * configure.ac: Likewise.
1195 * targets.c: Likewise.
1196 * aout-arm.c: Delete.
1197 * armnetbsd.c: Delete.
1199 * Makefile.in: Regenerate.
1200 * configure: Regenerate.
1201 * po/SRC-POTFILES.in: Regenerate.
1203 2018-04-24 Nick Clifton <nickc@redhat.com>
1206 * elf.c (ignore_section_sym): Check for the output_section pointer
1207 being NULL before dereferencing it.
1210 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check for
1211 a negative PE_DEBUG_DATA size before iterating over the debug data.
1213 2018-04-23 Alan Modra <amodra@gmail.com>
1215 * elf-linux-core.h: Revert last change.
1218 2018-04-23 Nick Clifton <nickc@redhat.com>
1221 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
1222 the end of the string table, and zero it.
1224 2018-04-23 Alan Modra <amodra@gmail.com>
1226 * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable
1227 gcc-8 string truncation warning.
1228 (swap_linux_prpsinfo32_ugid16_out): Likewise.
1229 (swap_linux_prpsinfo64_ugid32_out): Likewise.
1230 (swap_linux_prpsinfo64_ugid16_out): Likewise.
1231 * elf.c (elfcore_write_prpsinfo): Likewise.
1233 2018-04-23 Nick Clifton <nickc@redhat.com>
1236 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
1237 the end of the string table, and zero it.
1239 2018-04-20 Alan Modra <amodra@gmail.com>
1242 * elf32-hppa.c (got_relocs_needed): Add extra param to special
1243 case both dtprel and tprel relocs.
1244 (allocate_dynrelocs): Adjust conditions for got relocs.
1245 (elf32_hppa_relocate_section): Likewise for local sym got relocs.
1246 Emit dynamic relocs on TLS GOT entries for shared libraries,
1247 not when pic. Omit dynamic reloc on dtprel entry when local,
1248 and on tprel entry when local and executable.
1250 2018-04-19 Alan Modra <amodra@gmail.com>
1253 * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1.
1254 (hppa_type_of_stub): Don't return a long branch stub for
1255 symbols other than those defined statically.
1257 2018-04-19 Alan Modra <amodra@gmail.com>
1259 * Makefile.am: Revert 2018-04-18 coff-mips changes.
1260 * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec
1261 to selvecs for mips targets change 2018-04-18.
1262 * configure.ac: Reinstate mips_ecoff_le_vec, mips_ecoff_be_vec
1263 and mips_ecoff_bele_vec.
1264 * targets.c: Likewise.
1265 * coff-mips.c: Resurrect.
1266 * Makefile.in: Regenerate.
1267 * configure: Regenerate.
1268 * po/SRC-POTFILES.in: Regenerate.
1270 2018-04-18 Alan Modra <amodra@gmail.com>
1272 * Makefile.am: Remove mips aout and coff support.
1273 * config.bfd: Likewise.
1274 * configure.ac: Likewise.
1275 * targets.c: Likewise.
1276 * coff-mips.c: Delete
1279 * pei-mips.c: Delete
1280 * Makefile.in: Regenerate.
1281 * configure: Regenerate.
1282 * po/SRC-POTFILES.in: Regenerate.
1284 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
1286 * elf32-i386.c (elf32_bed): Define before including
1288 * elf64-x86-64.c (elf64_bed): Define before including
1290 (elf32_bed): Define before including "elf32-target.h".
1292 2018-04-17 H.J. Lu <hongjiu.lu@intel.com>
1295 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a
1296 normal input file with compatible relocation.
1298 2018-04-18 Alan Modra <amodra@gmail.com>
1300 * Makefile.am: Remove support for assorted i386 aout and coff targets.
1301 * config.bfd: Likewise.
1302 * configure.ac: Likewise.
1303 * doc/bfdint.texi: Likewise.
1304 * targets.c: Likewise.
1305 * freebsd.h: Delete.
1306 * i386dynix.c: Delete.
1307 * i386freebsd.c: Delete.
1308 * i386linux.c: Delete.
1309 * i386mach3.c: Delete.
1310 * i386netbsd.c: Delete.
1311 * i386os9k.c: Delete.
1312 * Makefile.in: Regenerate.
1313 * configure: Regenerate.
1314 * po/SRC-POTFILES.in: Regenerate.
1316 2018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com>
1318 Microblaze Target: PIC data text relative
1320 * bfd/reloc.c (2 new BFD relocations):
1321 BFD_RELOC_MICROBLAZE_64_TEXTPCREL &
1322 BFD_RELOC_MICROBLAZE_64_TEXTPCREL
1323 * bfd/bfd-in2.h: Regenerate
1324 * bfd/libbfd.h: Regenerate
1325 * bfd/elf32-microblaze.c (Handle new relocs): define 'HOWTO' of 3
1326 new relocs and handle them in both relocate and relax functions.
1327 (microblaze_elf_reloc_type_lookup): add mapping between for new
1329 (microblaze_elf_relocate_section): Handle new relocs in case of
1331 (microblaze_elf_relax_section): Handle new relocs for elf relaxation.
1333 2018-04-17 Nick Clifton <nickc@redhat.com>
1336 * aoutx.h (find_nearest_line): Check that the symbol name exists
1337 and is long enough, before attempting to see if it is for a .o
1339 * hash.c (bfd_hash_hash): Add an assertion that the string is not
1341 * linker.c (bfd_link_hash_lookup): Fail if the table or string are
1343 (_bfd_generic_link_add_archive_symbols): Fail if an archive entry
1347 * dwarf2.c (concat_filename): Check for a NULL table pointer.
1349 2018-04-16 Nick Clifton <nickc@redhat.com>
1352 * coffgen.c (coff_pointerize_aux): Check for an out of range
1355 2018-04-16 Alan Modra <amodra@gmail.com>
1357 * Makefile.am: Remove arm-epoc-pe support.
1358 * coff-arm.c: Likewise.
1359 * config.bfd: Likewise.
1360 * configure.ac: Likewise.
1361 * targets.c: Likewise.
1362 * epoc-pe-arm.c: Delete.
1363 * epoc-pei-arm.c: Delete.
1364 * Makefile.in: Regenerate.
1365 * configure: Regenerate.
1366 * po/SRC-POTFILES.in: Regenerate.
1368 2018-04-16 Alan Modra <amodra@gmail.com>
1370 * Makefile.am: Remove sparc-aout and sparc-coff support.
1371 * config.bfd: Likewise.
1372 * configure.ac: Likewise.
1373 * targets.c: Likewise.
1374 * aout-sparcle.c: Delete.
1376 * cf-sparclynx.c: Delete.
1377 * coff-sparc.c: Delete.
1379 * sparclinux.c: Delete.
1380 * sparclynx.c: Delete.
1381 * sparcnetbsd.c: Delete.
1383 * Makefile.in: Regenerate.
1384 * configure: Regenerate.
1385 * po/SRC-POTFILES.in: Regenerate.
1387 2018-04-16 Alan Modra <amodra@gmail.com>
1389 * Makefile.am: Remove m68k-aout and m68k-coff support.
1390 * aoutf1.h: Likewise.
1391 * aoutx.h: Likewise.
1392 * archive.c: Likewise.
1393 * bfd-in.h: Likewise.
1395 * coffcode.h: Likewise.
1396 * coffswap.h: Likewise.
1397 * config.bfd: Likewise.
1398 * configure.ac: Likewise.
1399 * configure.host: Likewise.
1400 * doc/bfd.texinfo: Likewise.
1401 * doc/bfdint.texi: Likewise.
1402 * freebsd.h: Likewise.
1403 * gen-aout.c: Likewise.
1404 * hpux-core.c: Likewise.
1405 * libaout.h: Likewise.
1406 * libbfd-in.h: Likewise.
1407 * pdp11.c: Likewise.
1408 * peicode.h: Likewise.
1409 * riscix.c: Likewise.
1410 * targets.c: Likewise.
1412 * coff-apollo.c: Delete.
1413 * coff-aux.c: Delete.
1414 * coff-m68k.c: Delete.
1415 * coff-svm68k.c: Delete.
1416 * coff-u68k.c: Delete.
1417 * hosts/delta68.h: Delete.
1418 * hosts/hp300bsd.h: Delete.
1419 * hosts/m68kaux.h: Delete.
1420 * hosts/news.h: Delete.
1421 * hp300bsd.c: Delete.
1422 * hp300hpux.c: Delete.
1423 * liboasys.h: Delete.
1424 * m68k4knetbsd.c: Delete.
1425 * m68klinux.c: Delete.
1426 * m68knetbsd.c: Delete.
1428 * versados.c: Delete.
1429 * Makefile.in: Regenerate.
1430 * bfd-in2.h: Regenerate.
1431 * configure: Regenerate.
1432 * libbfd.h: Regenerate.
1433 * po/SRC-POTFILES.in: Regenerate.
1435 2018-04-16 Alan Modra <amodra@gmail.com>
1437 * Makefile.am: Remove sh5 and sh64 support.
1438 * archures.c: Likewise.
1439 * config.bfd: Likewise.
1440 * configure.ac: Likewise.
1441 * cpu-sh.c: Likewise.
1442 * elf32-sh-relocs.h: Likewise.
1443 * elf32-sh.c: Likewise.
1444 * targets.c: Likewise.
1445 * elf32-sh64-com.c: Delete.
1446 * elf32-sh64.c: Delete.
1447 * elf32-sh64.h: Delete.
1448 * elf64-sh64.c: Delete.
1449 * Makefile.in: Regenerate.
1450 * bfd-in2.h: Regenerate.
1451 * configure: Regenerate.
1452 * po/SRC-POTFILES.in: Regenerate.
1454 2018-04-16 Alan Modra <amodra@gmail.com>
1456 * Makefile.am: Remove sh-symbianelf support.
1457 * config.bfd: Likewise.
1458 * configure.ac: Likewise.
1459 * targets.c: Likewise.
1460 * elf32-sh-symbian.c: Delete.
1461 * Makefile.in: Regenerate.
1462 * configure: Regenerate.
1463 * po/SRC-POTFILES.in: Regenerate.
1465 2018-04-16 Alan Modra <amodra@gmail.com>
1467 * Makefile.am: Remove vax-bsd and vax-ultrix support.
1468 * config.bfd: Likewise.
1469 * configure.ac: Likewise.
1470 * targets.c: Likewise.
1472 * Makefile.in: Regenerate.
1473 * configure: Regenerate.
1474 * po/SRC-POTFILES.in: Regenerate.
1476 2018-04-16 Alan Modra <amodra@gmail.com>
1478 * Makefile.am: Remove w65 support.
1479 * archures.c: Likewise.
1480 * coffcode.h: Likewise.
1481 * config.bfd: Likewise.
1482 * configure.ac: Likewise.
1483 * targets.c: Likewise.
1484 * coff-w65.c: Delete.
1485 * cpu-w65.c: Delete.
1486 * Makefile.in: Regenerate.
1487 * bfd-in2.h: Regenerate.
1488 * configure: Regenerate.
1489 * po/SRC-POTFILES.in: Regenerate.
1491 2018-04-16 Alan Modra <amodra@gmail.com>
1493 * Makefile.am: Remove we32k support.
1494 * archures.c: Likewise.
1495 * coffcode.h: Likewise.
1496 * config.bfd: Likewise.
1497 * configure.ac: Likewise.
1498 * targets.c: Likewise.
1499 * coff-we32k.c: Delete.
1500 * cpu-we32k.c: Delete.
1501 * Makefile.in: Regenerate.
1502 * bfd-in2.h: Regenerate.
1503 * configure: Regenerate.
1504 * po/SRC-POTFILES.in: Regenerate.
1506 2018-04-16 Alan Modra <amodra@gmail.com>
1508 * Makefile.am: Remove m88k support.
1509 * aoutx.h: Likewise.
1510 * archures.c: Likewise.
1511 * coffcode.h: Likewise.
1512 * coffswap.h: Likewise.
1513 * config.bfd: Likewise.
1514 * configure.ac: Likewise.
1515 * cpu-ns32k.c: Likewise.
1516 * elf32-nds32.c: Likewise.
1517 * mach-o.c: Likewise.
1518 * netbsd-core.c: Likewise.
1519 * reloc.c: Likewise.
1520 * targets.c: Likewise.
1521 * coff-m88k.c: Delete.
1522 * cpu-m88k.c: Delete.
1523 * elf32-m88k.c: Delete.
1524 * hosts/m88kmach3.h: Delete.
1525 * m88kmach3.c: Delete.
1526 * m88kopenbsd.c: Delete.
1527 * Makefile.in: Regenerate.
1528 * bfd-in2.h: Regenerate.
1529 * configure: Regenerate.
1530 * po/SRC-POTFILES.in: Regenerate.
1532 2018-04-16 Alan Modra <amodra@gmail.com>
1534 * Makefile.am: Remove i370 support.
1535 * archures.c: Likewise.
1536 * config.bfd: Likewise.
1537 * configure.ac: Likewise.
1538 * targets.c: Likewise.
1539 * cpu-i370.c: Delete.
1540 * elf32-i370.c: Delete.
1541 * Makefile.in: Regenerate.
1542 * bfd-in2.h: Regenerate.
1543 * configure: Regenerate.
1544 * po/SRC-POTFILES.in: Regenerate.
1546 2018-04-16 Alan Modra <amodra@gmail.com>
1548 * Makefile.am: Remove h8500 support.
1549 * archures.c: Likewise.
1550 * coffcode.h: Likewise.
1551 * config.bfd: Likewise.
1552 * configure.ac: Likewise.
1553 * targets.c: Likewise.
1554 * coff-h8500.c: Delete.
1555 * cpu-h8500.c: Delete.
1556 * Makefile.in: Regenerate.
1557 * bfd-in2.h: Regenerate.
1558 * configure: Regenerate.
1559 * po/SRC-POTFILES.in: Regenerate.
1561 2018-04-16 Alan Modra <amodra@gmail.com>
1563 * Makefile.am: Remove h8300-coff support.
1564 * coffcode.h: Likewise.
1565 * config.bfd: Likewise.
1566 * configure.ac: Likewise.
1567 * reloc16.c: Likewise.
1568 * targets.c: Likewise.
1569 * coff-h8300.c: Delete.
1570 * Makefile.in: Regenerate.
1571 * configure: Regenerate.
1572 * po/SRC-POTFILES.in: Regenerate.
1574 2018-04-16 Alan Modra <amodra@gmail.com>
1576 * Makefile.am: Remove IEEE 695 support.
1577 * archures.c: Likewise.
1579 * config.bfd: Likewise.
1580 * configure.ac: Likewise.
1581 * doc/bfd.texinfo: Likewise.
1582 * doc/bfdint.texi: Likewise.
1583 * doc/bfdsumm.texi: Likewise.
1584 * section.c: Likewise.
1585 * targets.c: Likewise.
1587 * libieee.h: Delete.
1588 * Makefile.in: Regenerate.
1589 * bfd-in2.h: Regenerate.
1590 * configure: Regenerate.
1591 * po/SRC-POTFILES.in: Regenerate.
1593 2018-04-16 Alan Modra <amodra@gmail.com>
1595 * config.bfd: Remove tandem support.
1597 2018-04-16 Alan Modra <amodra@gmail.com>
1599 * Makefile.am: Remove newsos3 support.
1600 * aoutx.h: Likewise.
1601 * config.bfd: Likewise.
1602 * configure.ac: Likewise.
1603 * targets.c: Likewise.
1604 * newsos3.c: Delete.
1605 * Makefile.in: Regenerate.
1606 * configure: Regenerate.
1607 * po/SRC-POTFILES.in: Regenerate.
1609 2018-04-16 Alan Modra <amodra@gmail.com>
1611 * Makefile.am: Remove netware support.
1612 * bfd-in.h: Likewise.
1614 * config.bfd: Likewise.
1615 * configure.ac: Likewise.
1616 * doc/bfdint.texi: Likewise.
1617 * ecoff.c: Likewise.
1618 * targets.c: Likewise.
1620 * nlm-target.h: Delete.
1622 * nlm32-alpha.c: Delete.
1623 * nlm32-i386.c: Delete.
1624 * nlm32-ppc.c: Delete.
1625 * nlm32-sparc.c: Delete.
1628 * nlmcode.h: Delete.
1629 * nlmswap.h: Delete.
1630 * Makefile.in: Regenerate.
1631 * bfd-in2.h: Regenerate.
1632 * configure: Regenerate.
1633 * po/SRC-POTFILES.in: Regenerate.
1635 2018-04-16 Alan Modra <amodra@gmail.com>
1637 * archures.c: Remove tahoe support.
1638 * config.bfd: Likewise.
1639 * configure.ac: Likewise.
1640 * hosts/tahoe.h: Delete.
1641 * bfd-in2.h: Regenerate.
1642 * configure: Regenerate.
1644 2018-04-14 Alan Modra <amodra@gmail.com>
1646 * elf-bfd.h (struct elf_backend_data): Add relropagesize.
1647 * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and
1649 (elfNN_bed): Init relropagesize.
1650 * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to
1651 select relropagesize.
1652 * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1653 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1654 (ELF_MINPAGESIZE): Don't define.
1655 * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1656 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1657 * bfd-in2.h: Regenerate.
1659 2018-04-14 Alan Modra <amodra@gmail.com>
1661 * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend
1662 on __QNXTARGET__ define.
1664 2018-04-14 Alan Modra <amodra@gmail.com>
1666 * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
1669 2018-04-11 Alan Modra <amodra@gmail.com>
1671 * aout-adobe.c: Delete.
1673 * coff-i860.c: Delete.
1674 * coff-i960.c: Delete.
1675 * cpu-i860.c: Delete.
1676 * cpu-i960.c: Delete.
1677 * elf32-i860.c: Delete.
1678 * elf32-i960.c: Delete.
1679 * hosts/i860mach3.h: Delete.
1680 * Makefile.am: Remove i860, i960, bout, and adobe support.
1681 * archures.c: Remove i860 and i960 support.
1682 * coffcode.h: Likewise.
1683 * reloc.c: Likewise.
1684 * aoutx.h: Comment updates.
1685 * archive.c: Remove BOUT and i960 support.
1686 * bfd.c: Remove BOUT support.
1687 * coffswap.h: Remove i960 support.
1688 * config.bfd: Remove i860, i960 and adobe targets.
1689 * configure.ac: Remove adode, bout, i860, i960, icoff targets.
1690 * targets.c: Likewise.
1691 * ieee.c: Remove i960 support.
1692 * mach-o.c: Remove i860 support.
1693 * Makefile.in: Regenerate.
1694 * bfd-in2.h: Regenerate.
1695 * configure: Regenerate.
1696 * libbfd.h: Regenerate.
1697 * po/SRC-POTFILES.in: Regenerate.
1699 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1701 * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer
1702 in the BFD symbol referred by the relocation.
1703 (mips_elf64_write_rela): Likewise.
1705 2018-04-09 Maciej W. Rozycki <macro@mips.com>
1707 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an
1708 error for out-of-range `r_sym' values.
1710 2018-04-09 Alan Modra <amodra@gmail.com>
1712 * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field.
1713 (struct ppc_link_hash_table): Add can_convert_all_inline_plt.
1714 (ppc64_elf_check_relocs): Set has_pltcall.
1715 (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries.
1716 (ppc64_elf_inline_plt): New function.
1717 (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals.
1718 * elf64-ppc.h (ppc64_elf_inline_plt): Declare.
1719 * elf32-ppc.c (has_pltcall): Define.
1720 (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt.
1721 (ppc_elf_check_relocs): Set has_pltcall.
1722 (ppc_elf_inline_plt): New function.
1723 (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries.
1724 (ppc_elf_size_dynamic_sections): Likewise.
1725 * elf32-ppc.h (ppc_elf_inline_plt): Declare.
1727 2018-04-09 Alan Modra <amodra@gmail.com>
1729 * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos.
1730 (is_plt_seq_reloc): New function.
1731 (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs.
1732 (ppc_elf_tls_optimize): Handle inline plt call sequence.
1733 (ppc_elf_relax_section): Handle PLTCALL reloc.
1734 (ppc_elf_relocate_section): Nop out inline plt call sequence when
1736 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and
1737 R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE.
1738 (has_tls_get_addr_call): Correct comment.
1739 (is_branch_reloc): Add PLTCALL.
1740 (is_plt_seq_reloc): New function.
1741 (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set
1742 has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt
1743 entry for R_PPC64_PLTCALL.
1744 (ppc64_elf_tls_optimize): Handle inline plt call sequence.
1745 (ppc_type_of_stub): Handle PLTCALL reloc.
1746 (toc_adjusting_stub_needed): Likewise.
1747 (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL
1748 reloc insn. Nop out inline plt call sequence when resolving
1749 locally. Handle __tls_get_addr inline plt call optimization.
1751 2018-04-09 Alan Modra <amodra@gmail.com>
1753 * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define.
1754 (struct ppc_stub_hash_entry): Add symtype field.
1756 (struct ppc_link_hash_table): Add pltlocal and relpltlocal.
1757 (create_linkage_sections): Create pltlocal and relpltlocal.
1758 (ppc64_elf_check_relocs): Allow PLT relocs on local symbols.
1760 (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1761 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1762 (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1763 Keep PLT entries for inline calls against locals.
1764 (ppc_build_one_stub): Use pltlocal as appropriate.
1765 (ppc_size_one_stub): Likewise.
1766 (ppc64_elf_size_stubs): Set symtype.
1767 (build_global_entry_stubs_and_plt): Init pltlocal and write
1768 relpltlocal for globals.
1769 (write_plt_relocs_for_local_syms): Likewise for local syms.
1770 (ppc64_elf_relocate_section): Support PLT for local syms.
1771 * elf32-ppc.c (PLT_KEEP): Define.
1772 (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal.
1773 (ppc_elf_create_glink): Create pltlocal and relpltlocal.
1774 (ppc_elf_check_relocs): Allow PLT relocs on local symbols.
1775 Set PLT_KEEP. Adjust update_local_sym_info call.
1776 (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1777 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1778 (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1779 (ppc_elf_relocate_section): Support PLT16 relocs for local syms.
1780 (write_global_sym_plt): Init pltlocal and write relpltlocal.
1781 (ppc_finish_symbols): Likewise for locals.
1783 2018-04-09 Alan Modra <amodra@gmail.com>
1785 * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs
1786 for local symbols to..
1787 (write_plt_relocs_for_local_syms): ..here. New function.
1788 (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for
1790 (build_global_entry_stubs_and_plt): ..here. Rename from
1791 build_global_entry_stubs.
1792 (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt.
1793 Call write_plt_relocs_for_local_syms.
1794 * elf32-ppc.c (get_sym_h): New function.
1795 (ppc_elf_relax_section): Use get_sym_h.
1796 (ppc_elf_relocate_section): Move output of PLT relocs and glink
1797 stubs for local symbols to..
1798 (ppc_finish_symbols): ..here. New function.
1799 (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for
1801 (write_global_sym_plt): ..here. New function.
1802 * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute.
1803 (ppc_finish_symbols): Declare.
1805 2018-04-09 Alan Modra <amodra@gmail.com>
1807 * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs.
1808 (ppc_elf_relocate_section): Likewise.
1809 * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS.
1810 (ppc64_elf_relocate_section): Likewise. Correct PLT16
1811 resolution to plt entry relative to toc pointer.
1813 2018-04-09 Alan Modra <amodra@gmail.com>
1815 * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1816 TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout
1817 file when other TLS flags are tested in a mask.
1818 (TLS_MARK, NON_GOT): Define.
1819 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1820 (update_local_sym_info): Don't create got entry when NON_GOT.
1821 (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1823 (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK.
1824 (ppc64_elf_relocate_section): Likewise.
1825 (ppc64_elf_tls_optimize): Don't attempt to optimize indirect
1826 __tls_get_addr calls lacking a marker reloc.
1827 * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1828 TLS_TPRELGD): Renumber. Update comment.
1829 (TLS_MARK, NON_GOT): Define.
1830 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1831 (update_local_sym_info): Don't create got entry when NON_GOT.
1832 (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1834 (ppc_elf_tls_optimize): Don't attempt to optimize indirect
1835 __tls_get_addr calls lacking a marker reloc.
1837 2018-04-06 H.J. Lu <hongjiu.lu@intel.com>
1839 * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out
1840 R_X86_64_converted_reloc_bit.
1842 2018-04-05 H.J. Lu <hongjiu.lu@intel.com>
1845 * configure: Regenerated.
1847 2018-04-05 Alan Modra <amodra@gmail.com>
1849 * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
1850 (elf_hppa_info_to_howto_rel): Likewise.
1852 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1854 * elf-hppa.h (elf_hppa_info_to_howto): Also return
1855 unsuccessfully for unimplemented relocations.
1856 (elf_hppa_info_to_howto_rel): Likewise.
1858 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1860 * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the
1861 `bfd_error_bad_value' error and call `_bfd_error_handler' on a
1862 howto lookup failure.
1863 (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call
1865 (elf32_i860_info_to_howto_rela): Likewise.
1866 (elf32_i860_relocate_splitn): Likewise.
1867 (elf32_i860_relocate_pc16): Likewise.
1868 (elf32_i860_relocate_pc26): Likewise.
1869 (elf32_i860_relocate_section): Likewise.
1871 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1873 * elf32-visium.c (visium_info_to_howto_rela): Correct the range
1874 check for `visium_elf_howto_table' table access.
1876 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1878 * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range
1879 check for `iq2000_elf_howto_table' table access.
1881 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1883 * elf32-frv.c (frv_info_to_howto_rela): Correct the range check
1884 for `elf32_frv_howto_table' table access.
1886 2018-04-04 Maciej W. Rozycki <macro@mips.com>
1888 * elf32-mips.c (mips_elf32_rtype_to_howto): Also return
1889 unsuccessfully for placeholder howtos.
1890 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
1891 * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise.
1893 2018-03-29 Maciej W. Rozycki <macro@mips.com>
1895 * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to
1896 `_bfd_error_handler' and to set the `bfd_error_bad_value' error.
1898 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1900 * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
1901 ATTRIBUTE_UNUSED from `abfd'.
1903 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1905 * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct
1906 `_bfd_error_handler' call formatting.
1908 2018-03-28 Maciej W. Rozycki <macro@mips.com>
1910 * elf32-mips.c (mips_info_to_howto_rel): Call
1911 `mips_elf32_rtype_to_howto' directly rather than via
1912 `->elf_backend_mips_rtype_to_howto'.
1914 2018-03-28 Renlin Li <renlin.li@arm.com>
1917 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for
1918 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1919 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1920 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1921 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1922 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1923 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1924 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1925 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1926 (elfNN_aarch64_final_link_relocate): Support new relocations.
1927 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new
1929 (_bfd_aarch64_elf_resolve_relocation): Support new relocations.
1931 2018-03-28 Renlin Li <renlin.li@arm.com>
1934 * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12
1935 BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC,
1936 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1937 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1938 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1939 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1940 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1941 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1942 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1943 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1944 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for
1945 TLSLE_LDST16_TPREL_LO12,
1946 TLSLE_LDST16_TPREL_LO12_NC,
1947 TLSLE_LDST32_TPREL_LO12,
1948 TLSLE_LDST32_TPREL_LO12_NC,
1949 TLSLE_LDST64_TPREL_LO12,
1950 TLSLE_LDST64_TPREL_LO12_NC,
1951 TLSLE_LDST8_TPREL_LO12,
1952 TLSLE_LDST8_TPREL_LO12_NC.
1953 * bfd-in2.h: Regenerated.
1954 * libbfd.h: Regenerated.
1956 2018-03-28 Eric Botcazou <ebotcazou@adacore.com>
1959 * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
1960 has_old_style_got_reloc.
1961 (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
1962 relocations. Fix a couple of long lines.
1963 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
1964 a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style
1967 2018-03-25 H.J. Lu <hongjiu.lu@intel.com>
1970 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
1971 ENDBR64 to the TLSDESC PLT entry.
1973 2018-03-21 Alan Modra <amodra@gmail.com>
1975 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting
1976 symbols. Use size_t counts. Delete redundant opd test.
1978 2018-03-21 Alan Modra <amodra@gmail.com>
1980 * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms.
1982 2018-03-21 Alan Modra <amodra@gmail.com>
1984 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask
1986 (update_local_sym_info): Likewise for local_got_tls_masks.
1987 (ppc_elf_tls_optimize): Likewise for lgot_masks.
1989 2018-03-21 Alan Modra <amodra@gmail.com>
1991 * elf64-ppc.c (ppc_size_one_stub): Fix comment typo.
1992 (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we
1993 do in size_dynamic_sections.
1995 2018-03-21 Alan Modra <amodra@gmail.com>
1997 * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1]
1998 without first checking array bounds.
1999 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2001 2018-03-20 H.J. Lu <hongjiu.lu@intel.com>
2004 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
2005 non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.
2007 2018-03-19 Nick Clifton <nickc@redhat.com>
2009 * po/es.po: Updated Spanish translation.
2011 2018-03-15 Max Filippov <jcmvbkbc@gmail.com>
2013 * elf32-xtensa.c (xlate_map_entry): Change types of address
2014 fields from 'unsigned' to 'bfd_vma'.
2015 (xlate_offset_with_removed_text): Use struct xlate_map_entry as
2016 the key argument to bsearch. Allow offsets past the end of a
2017 section, use the last map entry for translation of such offsets.
2019 2018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com>
2021 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed.
2022 Not support the target feature.
2023 (nds32_elf_ex9_itb_base): Likewise.
2024 (nds32_elf_ex9_import_table): Likewise.
2025 (nds32_elf_ex9_finish): Likewise.
2026 (nds32_elf_ex9_reloc_jmp): Likewise.
2027 (nds32_elf_get_insn_with_reg): Likewise.
2028 (nds32_get_local_syms): Likewise.
2029 (nds32_elf_ex9_replace_instruction): Likewise.
2030 (nds32_elf_ifc_calc): Likewise.
2031 (nds32_elf_ifc_finish): Likewise.
2032 (nds32_elf_ifc_replace): Likewise.
2033 (nds32_elf_ifc_reloc): Likewise.
2035 2018-03-14 Alan Modra <amodra@gmail.com>
2037 * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
2038 sfpr size added before defining alias symbols.
2039 (ppc64_elf_build_stubs): Add stub section padding before
2040 copying sfpr contents and defining save/restore alias symbols.
2042 2018-03-14 H.J. Lu <hongjiu.lu@intel.com>
2045 * elflink.c (elf_gc_mark_debug_section): Also check the local
2046 debug definition section.
2048 2018-03-13 Nick Clifton <nickc@redhat.com>
2051 * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean
2052 function. Add an end address parameter. Check access of the data
2053 pointer to make sure that they do not extend beyond the end
2054 address. Return FALSE if any check fails. Add the end address
2055 pointer to the ui structure.
2056 (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind
2057 codes to make sure that they do not extend beyond the end address
2058 pointer. Print an error message and return immediately if any
2061 2018-03-09 Nick Clifton <nickc@redhat.com>
2063 * elf64-s390.c (elf_s390_relocate_section): Move check for
2064 relocations against non-allocated sections to before the code that
2065 handles ifunc relocations.
2066 * elf32-s390.c (elf_s390_relocate_section): Likewise.
2067 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat
2068 relocs against IFUNC symbols in non-allocated sections as relocs
2069 against FUNC symbols.
2070 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
2072 2018-03-08 H.J. Lu <hongjiu.lu@intel.com>
2075 * elf32-i386.c (elf_i386_relocate_section): Treat relocation
2076 against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as
2077 relocation against FUNC symbol.
2078 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
2080 2018-03-07 Renlin Li <renlin.li@arm.com>
2083 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute
2084 symbol, and don't emit relocation in specific case.
2086 2018-03-07 Alan Modra <amodra@gmail.com>
2088 * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error.
2089 (mips_elf64_slurp_one_reloc_table): Pass on error.
2091 2018-03-03 James Cowgill <james.cowgill@mips.com>
2092 Maciej W. Rozycki <macro@mips.com>
2095 * elfxx-mips.c (mips_elf_calculate_relocation): Only return
2096 after calling `undefined_symbol' hook if this is an error
2097 condition. Assume the value of 0 for the symbol requested
2100 2018-03-02 Jim Wilson <jimw@sifive.com>
2103 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch
2104 and nop instead of 4.
2105 (elfNN_arch64_build_stubs): Add nop after branch. Increase size by
2108 2018-03-01 Jim Wilson <jimw@sifive.com>
2111 * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use
2112 else if instead of if.
2114 2018-03-01 Alan Modra <amodra@gmail.com>
2116 * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
2118 2018-02-28 Alan Modra <amodra@gmail.com>
2121 * aoutx.h (swap_std_reloc_in): Correct r_index bound check.
2123 2018-02-28 Nick Clifton <nickc@redhat.com>
2127 * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block
2128 pointer. Drop unused abfd parameter. Check the size of the block
2129 before initialising the data field. Return the end pointer if the
2131 (read_attribute_value): Adjust invocations of read_n_bytes.
2134 * dwarf1.c (parse_die): Check the length of form blocks before
2135 advancing the data pointer.
2137 2018-02-28 Alan Modra <amodra@gmail.com>
2140 * aoutx.h (translate_symbol_table): Print an error message and set
2141 bfd_error on finding an invalid name string offset.
2143 2018-02-27 H.J. Lu <hongjiu.lu@intel.com>
2145 * config.in: Regenerated.
2146 * configure: Likewise.
2147 * configure.ac: Add --enable-separate-code.
2148 (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default
2149 to 1 for Linux/x86 targets,
2150 * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if
2151 DEFAULT_LD_Z_SEPARATE_CODE is 1.
2153 2018-02-27 Nick Clifton <nickc@redhat.com>
2155 * aout-cris.c (swap_ext_reloc_out): Standadize error/warning
2157 * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise.
2158 * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise.
2159 * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise.
2160 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise.
2161 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
2162 * elf64-sh64.c (sh_elf64_info_to_howto): Likewise.
2163 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
2164 * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise.
2165 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
2168 * elf-bfd.h (struct elf_backend_data): Change the return type of
2169 the elf_info_to_howto and elf_info_to_howto_rel function pointers
2171 * elfcode.h (elf_slurp_reloc_table_from_section): Check the return
2172 value from the info_to_howto function and fail if that function
2174 * elf32-h8300.c (elf32_h8_relocate_section): Check return value
2175 from the info_to_howto function.
2176 (elf32_h8_relax_section): Likewise.
2177 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
2178 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
2179 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
2180 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
2181 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
2182 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
2183 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise.
2184 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
2185 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
2186 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
2187 (riscv_elf_relocate_section): Likewise.
2188 * elf-hppa.h (elf_hppa_info_to_howto): Change return type to
2189 bfd_boolean. Issue an error message, set an error value and
2190 return FALSE if the reloc is not recognized.
2191 (elf_hppa_info_to_howto_rel): Likewise.
2192 * elf-m10200.c (mn10200_info_to_howto): Likewise.
2193 * elf-m10300.c (mn10300_info_to_howto): Likewise.
2194 * elf.c (_bfd_elf_no_info_to_howto): Likewise.
2195 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
2196 * elf32-arm.c (elf32_arm_info_to_howto): Likewise.
2197 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
2198 * elf32-bfin.c (bfin_info_to_howto): Likewise.
2199 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
2200 * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise.
2201 * elf32-cris.c (elf_cr16c_info_to_howto_rel)
2202 (cris_info_to_howto_rela): Likewise.
2203 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
2204 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
2205 * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela):
2207 * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto)
2208 (elf32_dlx_info_to_howto_rel): Likewise.
2209 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
2210 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
2211 * elf32-frv.c (frv_info_to_howto_rela)
2212 (frvfdpic_info_to_howto_rel): Likewise.
2213 * elf32-ft32.c (ft32_info_to_howto_rela): Likewise.
2214 * elf32-gen.c (elf_generic_info_to_howto)
2215 (elf_generic_info_to_howto_rel): Likewise.
2216 * elf32-h8300.c (elf32_h8_info_to_howto)
2217 (elf32_h8_info_to_howto_rel): Likewise.
2218 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
2219 * elf32-i386.c (elf_i386_reloc_type_lookup)
2220 (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise.
2221 * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela):
2223 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
2224 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
2225 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
2226 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
2227 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
2228 * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto):
2230 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
2231 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
2232 * elf32-m68k.c (rtype_to_howto): Likewise.
2233 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
2234 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
2235 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
2236 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
2237 * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
2239 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
2240 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
2241 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
2242 * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto):
2244 * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise.
2245 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
2246 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
2247 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
2248 * elf32-pru.c (pru_elf32_info_to_howto): Likewise.
2249 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
2250 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
2251 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
2252 * elf32-score.c (s3_bfd_score_info_to_howto)
2253 (_bfd_score_info_to_howto): Likewise.
2254 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
2255 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
2256 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
2257 * elf32-tic6x.c (elf32_tic6x_info_to_howto)
2258 (elf32_tic6x_info_to_howto_rel): Likewise.
2259 * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise.
2260 * elf32-v850.c (v850_elf_info_to_howto_rel)
2261 (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise.
2262 * elf32-vax.c (rtype_to_howto): Likewise.
2263 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
2264 * elf32-wasm32.c (elf32_wasm32_rtype_to_howto)
2265 (elf32_wasm32_info_to_howto_rela): Likewise.
2266 * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise.
2267 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
2268 * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise.
2269 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
2270 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
2271 * elf64-gen.c (elf_generic_info_to_howto)
2272 (elf_generic_info_to_howto_rel): Likewise.
2273 * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise.
2274 * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise.
2275 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
2276 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
2277 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
2278 * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto):
2280 * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise.
2281 * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
2283 * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise.
2284 * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise.
2285 * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise.
2286 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
2287 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise.
2288 * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise.
2289 * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype.
2290 * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype.
2291 * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype.
2292 * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel):
2295 2018-02-26 Jim Wilson <jimw@sifive.com>
2296 Stephan Schreiber <info@fs-driver.org>
2299 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
2300 call, set changed_contents and changed_relocs. Likewise after
2301 successful ia64_elf_relax_br call.
2303 2018-02-26 Alan Modra <amodra@gmail.com>
2305 * elf.c (assign_file_positions_except_relocs): Don't segfault
2306 when actual number of phdrs is less than allocated. Delete
2307 outdated comment. Formatting.
2309 2018-02-26 Alan Modra <amodra@gmail.com>
2311 * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
2312 * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
2313 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
2314 * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
2315 * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
2316 * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
2317 * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
2318 * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
2319 * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
2320 * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
2321 error/warning messages.
2323 2018-02-26 Alan Modra <amodra@gmail.com>
2325 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
2326 * syms.c: Standardize error/warning messages.
2328 2018-02-26 Alan Modra <amodra@gmail.com>
2330 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c,
2331 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c,
2332 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c,
2333 * peXXigen.c, * peicode.h: Standardize error/warning messages.
2335 2018-02-26 Alan Modra <amodra@gmail.com>
2337 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
2339 2018-02-26 Alan Modra <amodra@gmail.com>
2341 * elfxx-mips.c: Standardize error/warning messages.
2343 2018-02-26 Alan Modra <amodra@gmail.com>
2345 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c,
2346 * elflink.c: Standardize error/warning messages. Replace use of
2347 linker callback einfo with _bfd_error_handler when possible.
2349 2018-02-26 Alan Modra <amodra@gmail.com>
2351 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c,
2352 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
2353 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c,
2354 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c,
2355 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
2356 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
2357 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c,
2358 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
2359 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
2360 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
2361 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
2362 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c,
2363 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c,
2364 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
2365 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
2366 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c,
2367 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
2368 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
2369 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
2370 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h,
2371 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize
2372 unrecognized/unsupported reloc message.
2374 2018-02-26 Alan Modra <amodra@gmail.com>
2376 * elf32-ppc.c: Standardize error/warning messages. Use
2377 _bfd_error_handler rather than einfo when einfo features not used.
2378 * elf64-ppc.c: Likewise.
2380 2018-02-23 Alan Modra <amodra@gmail.com>
2383 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO
2384 segment if no matching LOAD segment.
2386 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
2388 * elf32-nds32.h: Define mask for ict_model.
2390 2018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
2392 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
2394 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2397 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
2399 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
2400 .reginfo section has wrong size.
2402 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2404 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
2405 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and
2406 `.MIPS.abiflags' sections.
2407 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo'
2410 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2412 * section.c (SEC_FIXED_SIZE): New macro.
2413 * bfd-in2.h: Regenerate.
2415 2018-02-19 Maciej W. Rozycki <macro@mips.com>
2417 * section.c (SEC_HAS_GOT_REF): Remove macro.
2418 * bfd-in2.h: Regenerate.
2420 2018-02-19 Alan Modra <amodra@gmail.com>
2422 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
2424 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
2425 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
2426 (_bfd_riscv_relax_pc): Likewise and fix typos.
2427 * libbfd-in.h (_bfd_error_handler): Add attribute printf.
2428 * libbfd.h: Regenerate.
2430 2018-02-19 Alan Modra <amodra@gmail.com>
2432 * dwarf2.c (read_section): Don't use 'll' format modifier.
2433 (find_abstract_instance): Likewise.
2434 * elfcore.h (elf_core_file_p): Likewise.
2436 2018-02-19 Alan Modra <amodra@gmail.com>
2438 * bfd-in.h: Include inttypes.h or if not available define
2439 PRId64, PRIu64 and PRIx64.
2440 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
2441 modifier to print bfd_vma.
2442 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
2443 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
2444 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
2445 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
2446 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
2447 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
2448 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
2449 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
2450 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
2451 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
2452 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
2453 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
2454 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
2455 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
2456 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
2457 and cast input to uint64_t, and similarly for Ld and Lu.
2458 * bfd-in2.h: Regenerate.
2460 2018-02-19 Alan Modra <amodra@gmail.com>
2462 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c,
2463 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c,
2464 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c,
2465 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c,
2466 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c,
2467 * reloc.c: Replace use of %R and %T in format strings passed to
2468 einfo and friends by %pR and %pT.
2470 2018-02-19 Alan Modra <amodra@gmail.com>
2472 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place
2474 * aout-adobe.c: Update all messages using %A and %B.
2475 * aout-cris.c: Likewise.
2476 * aoutx.h: Likewise.
2477 * archive.c: Likewise.
2478 * binary.c: Likewise.
2479 * cache.c: Likewise.
2480 * coff-alpha.c: Likewise.
2481 * coff-arm.c: Likewise.
2482 * coff-i860.c: Likewise.
2483 * coff-mcore.c: Likewise.
2484 * coff-ppc.c: Likewise.
2485 * coff-rs6000.c: Likewise.
2486 * coff-sh.c: Likewise.
2487 * coff-tic4x.c: Likewise.
2488 * coff-tic54x.c: Likewise.
2489 * coff-tic80.c: Likewise.
2490 * coff64-rs6000.c: Likewise.
2491 * coffcode.h: Likewise.
2492 * coffgen.c: Likewise.
2493 * cofflink.c: Likewise.
2494 * coffswap.h: Likewise.
2495 * compress.c: Likewise.
2496 * cpu-arm.c: Likewise.
2497 * ecoff.c: Likewise.
2498 * elf-attrs.c: Likewise.
2499 * elf-eh-frame.c: Likewise.
2500 * elf-ifunc.c: Likewise.
2501 * elf-m10300.c: Likewise.
2502 * elf-properties.c: Likewise.
2503 * elf-s390-common.c: Likewise.
2505 * elf32-arc.c: Likewise.
2506 * elf32-arm.c: Likewise.
2507 * elf32-avr.c: Likewise.
2508 * elf32-bfin.c: Likewise.
2509 * elf32-cr16.c: Likewise.
2510 * elf32-cr16c.c: Likewise.
2511 * elf32-cris.c: Likewise.
2512 * elf32-crx.c: Likewise.
2513 * elf32-d10v.c: Likewise.
2514 * elf32-d30v.c: Likewise.
2515 * elf32-epiphany.c: Likewise.
2516 * elf32-fr30.c: Likewise.
2517 * elf32-frv.c: Likewise.
2518 * elf32-gen.c: Likewise.
2519 * elf32-hppa.c: Likewise.
2520 * elf32-i370.c: Likewise.
2521 * elf32-i386.c: Likewise.
2522 * elf32-i960.c: Likewise.
2523 * elf32-ip2k.c: Likewise.
2524 * elf32-iq2000.c: Likewise.
2525 * elf32-lm32.c: Likewise.
2526 * elf32-m32c.c: Likewise.
2527 * elf32-m32r.c: Likewise.
2528 * elf32-m68hc11.c: Likewise.
2529 * elf32-m68hc12.c: Likewise.
2530 * elf32-m68hc1x.c: Likewise.
2531 * elf32-m68k.c: Likewise.
2532 * elf32-mcore.c: Likewise.
2533 * elf32-mep.c: Likewise.
2534 * elf32-metag.c: Likewise.
2535 * elf32-microblaze.c: Likewise.
2536 * elf32-moxie.c: Likewise.
2537 * elf32-msp430.c: Likewise.
2538 * elf32-mt.c: Likewise.
2539 * elf32-nds32.c: Likewise.
2540 * elf32-nios2.c: Likewise.
2541 * elf32-or1k.c: Likewise.
2542 * elf32-pj.c: Likewise.
2543 * elf32-ppc.c: Likewise.
2544 * elf32-rl78.c: Likewise.
2545 * elf32-rx.c: Likewise.
2546 * elf32-s390.c: Likewise.
2547 * elf32-score.c: Likewise.
2548 * elf32-score7.c: Likewise.
2549 * elf32-sh-symbian.c: Likewise.
2550 * elf32-sh.c: Likewise.
2551 * elf32-sh64.c: Likewise.
2552 * elf32-sparc.c: Likewise.
2553 * elf32-spu.c: Likewise.
2554 * elf32-tic6x.c: Likewise.
2555 * elf32-tilepro.c: Likewise.
2556 * elf32-v850.c: Likewise.
2557 * elf32-vax.c: Likewise.
2558 * elf32-visium.c: Likewise.
2559 * elf32-wasm32.c: Likewise.
2560 * elf32-xgate.c: Likewise.
2561 * elf32-xtensa.c: Likewise.
2562 * elf64-alpha.c: Likewise.
2563 * elf64-gen.c: Likewise.
2564 * elf64-hppa.c: Likewise.
2565 * elf64-ia64-vms.c: Likewise.
2566 * elf64-mmix.c: Likewise.
2567 * elf64-ppc.c: Likewise.
2568 * elf64-s390.c: Likewise.
2569 * elf64-sh64.c: Likewise.
2570 * elf64-sparc.c: Likewise.
2571 * elf64-x86-64.c: Likewise.
2572 * elfcode.h: Likewise.
2573 * elfcore.h: Likewise.
2574 * elflink.c: Likewise.
2575 * elfnn-aarch64.c: Likewise.
2576 * elfnn-ia64.c: Likewise.
2577 * elfnn-riscv.c: Likewise.
2578 * elfxx-mips.c: Likewise.
2579 * elfxx-sparc.c: Likewise.
2580 * elfxx-tilegx.c: Likewise.
2581 * elfxx-x86.c: Likewise.
2582 * hpux-core.c: Likewise.
2585 * libbfd.c: Likewise.
2586 * linker.c: Likewise.
2587 * mach-o.c: Likewise.
2588 * merge.c: Likewise.
2590 * oasys.c: Likewise.
2591 * pdp11.c: Likewise.
2592 * pe-mips.c: Likewise.
2593 * peXXigen.c: Likewise.
2594 * peicode.h: Likewise.
2595 * reloc.c: Likewise.
2596 * rs6000-core.c: Likewise.
2598 * stabs.c: Likewise.
2599 * vms-alpha.c: Likewise.
2600 * xcofflink.c: Likewise.
2602 2018-02-19 Alan Modra <amodra@gmail.com>
2605 * elf.c (IS_TBSS): Define.
2606 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
2607 (assign_file_positions_for_non_load_sections): Revert last change.
2608 Properly calculate load segment limits to compare against relro limits.
2610 2018-02-17 Alan Modra <amodra@gmail.com>
2613 * elf.c (assign_file_positions_for_non_load_sections): Ignore
2614 degenerate zero size PT_LOAD segments when finding one overlapping
2615 the PT_GNU_RELRO segment.
2617 2018-02-16 Alan Modra <amodra@gmail.com>
2619 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
2620 (_bfd_bool_bfd_true): Rename from bfd_true.
2621 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
2622 (_bfd_int_bfd_0): Rename from bfd_0.
2623 (_bfd_uint_bfd_0): Rename from bfd_0u.
2624 (_bfd_long_bfd_0): Rename from bfd_0l.
2625 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
2626 (_bfd_void_bfd): Rename from bfd_void.
2627 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
2628 (_bfd_bool_bfd_link_false_error),
2629 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
2630 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
2631 (_bfd_bool_bfd_asection_bfd_asection_true),
2632 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
2633 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
2634 * archive.c (_bfd_noarchive_get_elt_at_index),
2635 (_bfd_noarchive_openr_next_archived_file),
2636 (_bfd_noarchive_construct_extended_name_table),
2637 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
2638 (_bfd_noarchive_write_armap): New functions.
2639 * archures.c (_bfd_nowrite_set_arch_mach): New function.
2640 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
2641 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
2642 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
2643 (alpha_ecoff_swap_coff_lineno_out),
2644 (alpha_ecoff_swap_coff_reloc_out): New functions.
2645 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
2646 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
2647 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
2648 (mips_ecoff_swap_coff_lineno_out),
2649 (mips_ecoff_swap_coff_reloc_out): New functions.
2650 * coffcode.h (coff_set_alignment_hook): Replace define with
2652 (symname_in_debug_hook): Likewise.
2653 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
2654 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
2655 * elf.c (assign_file_positions_except_relocs): Test
2656 elf_backend_allow_non_load_phdr for NULL.
2657 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
2658 _bfd_elf_link_omit_section_dynsym. Update uses.
2659 (_bfd_elf_omit_section_dynsym_all): New function.
2660 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
2661 (_bfd_elf_omit_section_dynsym_default): Declare.
2662 (_bfd_elf_omit_section_dynsym_all): Declare.
2663 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
2664 (_bfd_nolink_bfd_get_relocated_section_contents),
2665 (_bfd_nolink_bfd_lookup_section_flags),
2666 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
2667 (_bfd_nolink_bfd_link_hash_table_create),
2668 (_bfd_nolink_bfd_link_just_syms),
2669 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
2670 (_bfd_nolink_bfd_link_split_section),
2671 (_bfd_nolink_section_already_linked),
2672 (_bfd_nolink_bfd_define_common_symbol),
2673 (_bfd_nolink_bfd_define_start_stop): New functions.
2674 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
2675 (_bfd_norelocs_bfd_reloc_name_lookup),
2676 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
2677 * section.c (_bfd_nowrite_set_section_contents): New function.
2678 * syms.c (_bfd_nosymbols_canonicalize_symtab),
2679 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
2680 (_bfd_nosymbols_get_symbol_version_string),
2681 (_bfd_nosymbols_bfd_is_local_label_name),
2682 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
2683 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
2684 (_bfd_nosymbols_bfd_make_debug_symbol),
2685 ( _bfd_nosymbols_read_minisymbols),
2686 ( _bfd_nosymbols_minisymbol_to_symbol),
2687 (_bfd_nodynamic_get_synthetic_symtab): New functions.
2688 * libbfd-in.h: Declare new functions. Update existing defines,
2690 * aix386-core.c: Update to use new hooks. Formatting.
2691 * aout-adobe.c: Likewise.
2692 * aout-arm.c: Likewise.
2693 * aout-target.h: Likewise.
2694 * aout-tic30.c: Likewise.
2695 * aoutf1.h: Likewise.
2696 * binary.c: Likewise.
2698 * cisco-core.c: Likewise.
2699 * coff-alpha.c: Likewise.
2700 * coff-i386.c: Likewise.
2701 * coff-i860.c: Likewise.
2702 * coff-i960.c: Likewise.
2703 * coff-ia64.c: Likewise.
2704 * coff-mips.c: Likewise.
2705 * coff-ppc.c: Likewise.
2706 * coff-rs6000.c: Likewise.
2707 * coff-sh.c: Likewise.
2708 * coff-tic30.c: Likewise.
2709 * coff-tic54x.c: Likewise.
2710 * coff-x86_64.c: Likewise.
2711 * coff64-rs6000.c: Likewise.
2712 * coffcode.h: Likewise.
2713 * elf-m10300.c: Likewise.
2714 * elf32-cr16.c: Likewise.
2715 * elf32-lm32.c: Likewise.
2716 * elf32-m32r.c: Likewise.
2717 * elf32-metag.c: Likewise.
2718 * elf32-score.c: Likewise.
2719 * elf32-score7.c: Likewise.
2720 * elf32-tilepro.c: Likewise.
2721 * elf32-xstormy16.c: Likewise.
2722 * elf32-xtensa.c: Likewise.
2723 * elf64-alpha.c: Likewise.
2724 * elf64-hppa.c: Likewise.
2725 * elf64-ia64-vms.c: Likewise.
2726 * elf64-mmix.c: Likewise.
2727 * elf64-sh64.c: Likewise.
2728 * elfnn-ia64.c: Likewise.
2729 * elfxx-sparc.c: Likewise.
2730 * elfxx-target.h: Likewise.
2731 * elfxx-tilegx.c: Likewise.
2732 * elfxx-x86.h: Likewise.
2733 * hp300hpux.c: Likewise.
2734 * hppabsd-core.c: Likewise.
2735 * hpux-core.c: Likewise.
2736 * i386msdos.c: Likewise.
2737 * i386os9k.c: Likewise.
2740 * irix-core.c: Likewise.
2741 * libaout.h: Likewise.
2742 * libecoff.h: Likewise.
2743 * mach-o-target.c: Likewise.
2744 * mach-o.c: Likewise.
2745 * mipsbsd.c: Likewise.
2747 * netbsd-core.c: Likewise.
2748 * nlm-target.h: Likewise.
2749 * oasys.c: Likewise.
2750 * osf-core.c: Likewise.
2751 * pdp11.c: Likewise.
2752 * pe-mips.c: Likewise.
2753 * pe-x86_64.c: Likewise.
2755 * plugin.c: Likewise.
2756 * ppcboot.c: Likewise.
2757 * ptrace-core.c: Likewise.
2758 * sco5-core.c: Likewise.
2760 * sparclynx.c: Likewise.
2762 * tekhex.c: Likewise.
2763 * trad-core.c: Likewise.
2764 * verilog.c: Likewise.
2765 * versados.c: Likewise.
2766 * vms-alpha.c: Likewise.
2767 * vms-lib.c: Likewise.
2768 * wasm-module.c: Likewise.
2770 * libbfd.h: Regenerate.
2772 2018-02-15 Jim Wilson <jimw@sifive.com>
2774 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
2775 symbols whose section address is zero.
2777 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
2778 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
2779 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
2780 Add %X%P to error messages.
2782 2018-02-15 Eric Botcazou <ebotcazou@adacore.com>
2785 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2786 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
2787 and assert that the result of the call is not NULL.
2789 2018-02-14 Nick Clifton <nickc@redhat.com>
2792 Revert previous delta. Add extra casts to avoid compile time
2794 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
2795 cast to avoid warning from gcc v8 compiler.
2796 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2797 (_bfd_generic_bfd_set_private_flags): Likewise.
2798 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2799 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2800 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2801 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2802 (_bfd_noarchive_construct_extended_name_table): Likewise.
2803 (_bfd_noarchive_truncate_arname): Likewise.
2804 (_bfd_noarchive_write_ar_hdr): Likewise.
2805 (_bfd_noarchive_get_elt_at_index): Likewise.
2806 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2807 (_bfd_nosymbols_print_symbol): Likewise.
2808 (_bfd_nosymbols_get_symbol_info): Likewise.
2809 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2810 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2811 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2812 (_bfd_nosymbols_get_lineno): Likewise.
2813 (_bfd_nosymbols_find_nearest_line): Likewise.
2814 (_bfd_nosymbols_find_line): Likewise.
2815 (_bfd_nosymbols_find_inliner_info): Likewise.
2816 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2817 (_bfd_nosymbols_read_minisymbols): Likewise.
2818 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2819 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2820 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2821 (_bfd_nowrite_set_arch_mach): Likewise.
2822 (_bfd_nowrite_set_section_contents): Likewise.
2823 (_bfd_nolink_sizeof_headers): Likewise.
2824 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2825 (_bfd_nolink_bfd_relax_section): Likewise.
2826 (_bfd_nolink_bfd_gc_sections): Likewise.
2827 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2828 (_bfd_nolink_bfd_merge_sections): Likewise.
2829 (_bfd_nolink_bfd_is_group_section): Likewise.
2830 (_bfd_nolink_bfd_discard_group): Likewise.
2831 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2832 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2833 (_bfd_nolink_bfd_link_just_syms): Likewise.
2834 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2835 (_bfd_nolink_bfd_final_link): Likewise.
2836 (_bfd_nolink_bfd_link_split_section): Likewise.
2837 (_bfd_nolink_section_already_linked): Likewise.
2838 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2839 (_bfd_nolink_bfd_define_start_stop): Likewise.
2840 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2841 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2842 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2843 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2844 * libbfd.c (bfd_false_any): Delete.
2845 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
2846 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
2847 * libbfd.h (extern): Regenerate
2848 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
2849 cast to avoid warning from gcc v8 compiler.
2850 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2851 * binary.c (binary_get_symbol_info): Likewise.
2852 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2853 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2854 * coffcode.h (coff_set_alignment_hook): Likewise.
2855 (symname_in_debug_hook): Likewise.
2856 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2857 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2858 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2859 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2860 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2861 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2862 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2863 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2864 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2865 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2866 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2867 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2868 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2869 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2870 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2871 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2872 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2873 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2874 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2875 (bfd_elfNN_bfd_set_private_flags): Likewise.
2876 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2877 (elf_backend_init_index_section): Likewise.
2878 (elf_backend_allow_non_load_phdr): Likewise.
2879 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2880 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2881 * ieee.c (ieee_construct_extended_name_table): Likewise.
2882 (ieee_write_armap): Likewise.
2883 (ieee_write_ar_hdr): Likewise.
2884 (ieee_bfd_is_target_special_symbol): Likewise.
2885 * ihex.c (ihex_canonicalize_symtab): Likewise.
2886 (ihex_bfd_is_target_special_symbol): Likewise.
2887 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2888 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2889 (_bfd_ecoff_set_alignment_hook): Likewise.
2890 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2891 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2892 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2893 * oasys.c (oasys_construct_extended_name_table): Likewise.
2894 (oasys_write_armap): Likewise.
2895 (oasys_write_ar_hdr): Likewise.
2896 (oasys_bfd_is_target_special_symbol): Likewise.
2897 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2898 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2899 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2900 * som.c (som_bfd_is_target_special_symbol): Likewise.
2901 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2902 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2903 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2904 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2905 (versados_bfd_reloc_name_lookup): Likewise.
2906 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2907 (vms_bfd_define_start_stop): Likewise.
2908 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2909 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2910 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2912 2018-02-14 H.J. Lu <hongjiu.lu@intel.com>
2915 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
2916 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2917 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
2918 R_X86_64_PC32 reloc against dynamic function in data section.
2919 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2920 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
2921 against dynamic function in data section.
2922 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
2923 function address only if pcrel_plt is true.
2924 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
2925 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
2926 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
2927 PC-relative relocation against a function definition in data
2928 secton in PIE. Remove the obsolete comments.
2929 (elf_x86_link_hash_table): Add pcrel_plt.
2931 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2933 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
2934 instead of bfd_link_pic, for building shared library.
2936 2018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2939 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
2940 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
2941 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
2942 against protected function in shared object.
2944 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
2947 * po/ru.po: Fix typo in Russian translation.
2949 2018-02-13 Maciej W. Rozycki <macro@mips.com>
2951 * wasm-module.c (wasm_scan_name_function_section): Rename
2952 `index' local variable to `idx'.
2954 2018-02-13 Nick Clifton <nickc@redhat.com>
2957 Fix compile time warnings generated by gcc version 8.
2958 * libbfd-in.h: Remove extraneous text from prototypes.
2959 Add prototypes for bfd_false_any, bfd_true_any,
2960 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
2961 bfd_n1_any, bfd_void_any.
2962 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
2964 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2965 (_bfd_generic_bfd_set_private_flags): Likewise.
2966 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2967 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2968 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2969 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2970 (_bfd_noarchive_construct_extended_name_table): Likewise.
2971 (_bfd_noarchive_truncate_arname): Likewise.
2972 (_bfd_noarchive_write_ar_hdr): Likewise.
2973 (_bfd_noarchive_get_elt_at_index): Likewise.
2974 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2975 (_bfd_nosymbols_print_symbol): Likewise.
2976 (_bfd_nosymbols_get_symbol_info): Likewise.
2977 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2978 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2979 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2980 (_bfd_nosymbols_get_lineno): Likewise.
2981 (_bfd_nosymbols_find_nearest_line): Likewise.
2982 (_bfd_nosymbols_find_line): Likewise.
2983 (_bfd_nosymbols_find_inliner_info): Likewise.
2984 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2985 (_bfd_nosymbols_read_minisymbols): Likewise.
2986 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2987 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2988 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2989 (_bfd_nowrite_set_arch_mach): Likewise.
2990 (_bfd_nowrite_set_section_contents): Likewise.
2991 (_bfd_nolink_sizeof_headers): Likewise.
2992 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2993 (_bfd_nolink_bfd_relax_section): Likewise.
2994 (_bfd_nolink_bfd_gc_sections): Likewise.
2995 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2996 (_bfd_nolink_bfd_merge_sections): Likewise.
2997 (_bfd_nolink_bfd_is_group_section): Likewise.
2998 (_bfd_nolink_bfd_discard_group): Likewise.
2999 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
3000 (_bfd_nolink_bfd_link_add_symbols): Likewise.
3001 (_bfd_nolink_bfd_link_just_syms): Likewise.
3002 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
3003 (_bfd_nolink_bfd_final_link): Likewise.
3004 (_bfd_nolink_bfd_link_split_section): Likewise.
3005 (_bfd_nolink_section_already_linked): Likewise.
3006 (_bfd_nolink_bfd_define_common_symbol): Likewise.
3007 (_bfd_nolink_bfd_define_start_stop): Likewise.
3008 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
3009 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
3010 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
3011 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
3012 * libbfd.c (bfd_false_any): New function. Like bfd_false but
3013 accepts one or more arguments.
3014 (bfd_true_any): Likewise.
3015 (bfd_nullvoidptr_any): Likewise.
3016 (bfd_0_any): Likewise.
3017 (bfd_0u_any): Likewise.
3018 (bfd_0l_any): Likewise.
3019 (_bfd_n1_any): Likewise.
3020 (bfd_void_any): Likewise.
3021 * libbfd.h (extern): Regenerate
3022 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
3023 based dummy function.
3024 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
3025 * binary.c (binary_get_symbol_info): Likewise.
3026 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
3027 * coff-mips.c (mips_ecoff_backend_data): Likewise.
3028 * coffcode.h (coff_set_alignment_hook): Likewise.
3029 (symname_in_debug_hook): Likewise.
3030 (bfd_coff_backend_data bigobj_swap_table): Likewise.
3031 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
3032 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
3033 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
3034 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
3035 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
3036 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
3037 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
3038 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
3039 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
3040 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
3041 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
3042 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
3043 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
3044 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
3045 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
3046 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
3047 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
3048 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
3049 (bfd_elfNN_bfd_set_private_flags): Likewise.
3050 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
3051 (elf_backend_init_index_section): Likewise.
3052 (elf_backend_allow_non_load_phdr): Likewise.
3053 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
3054 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
3055 * ieee.c (ieee_construct_extended_name_table): Likewise.
3056 (ieee_write_armap): Likewise.
3057 (ieee_write_ar_hdr): Likewise.
3058 (ieee_bfd_is_target_special_symbol): Likewise.
3059 * ihex.c (ihex_canonicalize_symtab): Likewise.
3060 (ihex_bfd_is_target_special_symbol): Likewise.
3061 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
3062 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
3063 (_bfd_ecoff_set_alignment_hook): Likewise.
3064 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
3065 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
3066 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
3067 * oasys.c (oasys_construct_extended_name_table): Likewise.
3068 (oasys_write_armap): Likewise.
3069 (oasys_write_ar_hdr): Likewise.
3070 (oasys_bfd_is_target_special_symbol): Likewise.
3071 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
3072 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
3073 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
3074 * som.c (som_bfd_is_target_special_symbol): Likewise.
3075 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
3076 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
3077 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
3078 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
3079 (versados_bfd_reloc_name_lookup): Likewise.
3080 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
3081 (vms_bfd_define_start_stop): Likewise.
3082 (alpha_vms_bfd_is_target_special_symbol): Likewise.
3083 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
3084 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
3085 * elf32-arc.c (get_replace_function): Assign replacement function
3087 * elf32-i370.c (i370_noop): Update prototype.
3089 2018-02-13 Alan Modra <amodra@gmail.com>
3092 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
3093 relocation sections. If size reduces to just the flag word,
3094 remove that too and mark with SEC_EXCLUDE.
3095 * elflink.c (bfd_elf_final_link): Strip empty group sections.
3097 2018-02-13 Alan Modra <amodra@gmail.com>
3100 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
3103 2018-02-12 Zebediah Figura <z.figura12@gmail.com>
3105 * i386msdos.c (msdos_mkobject); New function.
3106 (msdos_object_p): New function.
3107 (i386_msdos_vec): Use msdos_object_p as the check_format
3109 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
3110 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
3112 * peXXigen.c: Likewise.
3113 * coff-ia64.c: Likewise.
3115 2018-02-12 Nick Clifton <nickc@redhat.com>
3117 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
3119 * elf32-arc.c (elf_arc_relocate_section): Likewise.
3121 2018-02-09 Eric Botcazou <ebotcazou@adacore.com>
3123 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
3124 (sparc_elf_append_rela): Assert that there is enough room in section.
3125 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
3126 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
3127 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
3128 For a symbol subject to a GOT relocation, reserve a slot in the
3129 relocation section if the symbol isn't dynamic and we are in PIC mode.
3130 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
3131 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
3132 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
3133 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
3134 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
3135 resolved_to_zero. Do not generate a dynamic GOT relocation for an
3136 undefined weak symbol with non-default visibility. Remove superfluous
3137 'else' and fix formatting.
3139 2018-02-09 H.J. Lu <hongjiu.lu@intel.com>
3141 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
3143 (i386_elf32_sol2_vec): Don't declare.
3144 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
3145 Don't set need_global_offset_table.
3146 (elf_i386_solaris_arch_bed): New.
3147 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
3149 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
3150 target_os != is_nacl instead of target_os == is_normal.
3151 (x86_64_elf64_sol2_vec): Don't declare.
3152 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
3153 is_nacl instead of target_os == is_normal. Don't set
3154 need_global_offset_table.
3155 (elf_x86_64_solaris_arch_bed): New.
3156 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
3158 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
3159 _GLOBAL_OFFSET_TABLE_ for Solaris.
3160 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
3161 need_global_offset_table.
3162 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
3163 (elf_x86_link_hash_table): Remove need_global_offset_table.
3164 (elf_x86_init_table): Likewise.
3166 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
3168 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
3170 (i386_elf32_sol2_vec): Declared.
3171 (elf_i386_link_setup_gnu_properties): Set
3172 need_global_offset_table with info->output_bfd->xvec.
3173 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
3175 (x86_64_elf64_sol2_vec): Declared.
3176 (elf_x86_64_link_setup_gnu_properties): Set
3177 need_global_offset_table with info->output_bfd->xvec.
3179 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
3181 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
3183 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
3185 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
3187 (elf_x86_64_link_setup_gnu_properties): Set
3188 need_global_offset_table for Solaris.
3189 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
3190 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
3191 (_bfd_x86_elf_link_setup_gnu_properties): Copy
3192 need_global_offset_table.
3193 * elfxx-x86.h (elf_x86_link_hash_table): Add
3194 need_global_offset_table.
3195 (elf_x86_init_table): Likewise.
3197 2018-02-08 Jim Wilson <jimw@sifive.com>
3199 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
3202 2018-02-08 Nick Clifton <nickc@redhat.com>
3205 * elf.c (elf_parse_notes): Reject notes with excessuively large
3208 2018-02-07 Alan Modra <amodra@gmail.com>
3210 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
3211 * elf32-ppc.c: Remove speculation barrier support.
3212 * elf32-ppc.h: Likewise.
3213 * elf64-ppc.c: Likewise.
3214 * elf64-ppc.h: Likewise.
3216 2018-02-06 Jim Wilson <jimw@sifive.com>
3218 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
3219 callback to report an error.
3221 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
3224 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
3225 into call to !bfd_link_executable and tidy up.
3226 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
3227 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
3228 !bfd_link_executable.
3229 <R_SPARC_TLS_IE_HI22>: Likewise.
3230 <GOT relocations>: Remove useless code, tidy and merge related blocks.
3231 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
3232 !bfd_link_executable.
3233 <R_SPARC_WPLT30>: Tidy up.
3234 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
3235 !bfd_link_executable.
3236 (allocate_dynrelocs): Likewise.
3237 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
3238 <R_SPARC_TLS_GD_HI22>: Merge into...
3239 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
3240 sparc_elf_tls_transition and remove redundant code.
3241 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
3242 !bfd_link_executable.
3243 <R_SPARC_TLS_LDO_HIX22>: Likewise.
3244 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
3245 <R_SPARC_TLS_LDM_CALL>: Likewise.
3246 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
3247 <R_SPARC_TLS_GD_ADD>: Likewise.
3248 <R_SPARC_TLS_LDM_ADD>: Likewise.
3249 <R_SPARC_TLS_LDO_ADD>: Likewise.
3250 <R_SPARC_TLS_IE_LD>: Likewise.
3252 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
3255 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
3256 functions failed to find the function name, try the generic elf
3257 find function instead.
3259 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
3261 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
3262 'memcpy' instead of 'strncpy' when writing the magic number.
3264 2018-02-06 Nick Clifton <nickc@redhat.com>
3267 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
3268 section before attempting to read it in.
3269 (bfd_get_alt_debug_link_info): Likewise.
3271 2018-02-06 Paul Carroll <pcarroll@codesourcery.com>
3273 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
3274 line information in addition to name, if they can be found.
3276 2018-02-05 Renlin Li <renlin.li@arm.com>
3279 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
3280 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
3281 check for writeable section as well.
3283 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
3286 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
3287 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
3288 undefined weak symbol to 0.
3289 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
3290 if _GLOBAL_OFFSET_TABLE_ is referenced.
3291 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
3292 got_referenced instead of ref_regular_nonweak. Remove the
3293 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
3294 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
3296 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3298 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
3299 initialize `hi_reloc'.
3301 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3303 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
3304 SHT_MIPS_REGINFO sections don't assert the correct size and
3305 report an error instead.
3307 2018-02-05 Maciej W. Rozycki <macro@mips.com>
3309 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
3310 status from `->elf_backend_section_processing'.
3312 2018-02-02 Jim Wilson <jimw@sifive.com>
3315 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
3316 If link_info->wrap_hash, check for a duplicate symbol and ignore.
3317 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
3318 Pass new argument to riscv_relax_delete_bytes.
3319 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
3320 ATTRIBUTE_UNUSED from link_info parameter.
3322 2018-02-02 Alan Modra <amodra@gmail.com>
3324 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
3325 emitted for toc sequence optimization. Set and use "howto" later.
3327 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
3329 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
3330 arithmetic on NULL pointer.
3331 * elflink.c (_bfd_elf_archive_symbol_lookup,
3332 elf_link_add_archive_symbols): Likewise.
3334 2018-01-31 Michael Matz <matz@suse.de>
3336 * elflink.c (bfd_elf_define_start_stop): Fix check of
3339 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
3342 * elflink.c (bfd_elf_define_start_stop): Check if __start and
3343 __stop symbols are referenced by shared objects.
3345 2018-01-30 Alan Modra <amodra@gmail.com>
3348 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
3349 segment when demand paged with lma on the same page. Test this
3350 before load/non-load, executable/non-executable,
3351 writable/non-writable tests and simplify. Delete bogus relro
3352 condition in writable/non-writable test. Delete outdated
3353 comment. Formatting.
3355 2018-01-30 Alan Modra <amodra@gmail.com>
3357 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
3360 2018-01-29 Alan Modra <amodra@gmail.com>
3363 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
3364 range before converting to a symbol table pointer.
3366 2018-01-27 Nick Clifton <nickc@redhat.com>
3368 * po/ru.po: Updated Russian translation.
3370 2018-01-26 Alan Modra <amodra@gmail.com>
3372 * elflink.c (bfd_elf_define_start_stop): Override symbols when
3373 they are defined dynamically.
3375 2018-01-26 Alan Modra <amodra@gmail.com>
3377 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
3378 .branch_lt changes size.
3380 2018-01-25 Alan Modra <amodra@gmail.com>
3383 * elfcode.h (elf_object_p): Avoid integer overflow.
3385 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
3388 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
3389 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
3392 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
3395 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
3396 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
3397 bfd_link_executable for TLS check.
3398 (_bfd_sparc_elf_check_relocs): Likewise.
3399 (allocate_dynrelocs): Likewise.
3400 (_bfd_sparc_elf_relocate_section): Likewise.
3402 2018-01-24 Renlin Li <renlin.li@arm.com>
3404 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
3405 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
3406 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
3407 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
3408 BFD_RELOC_AARCH64_MOVW_PREL_G3.
3409 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
3410 (_bfd_aarch64_elf_resolve_relocation): Likewise.
3412 2018-01-24 Renlin Li <renlin.li@arm.com>
3414 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
3415 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
3416 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
3417 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
3418 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
3419 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
3420 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
3421 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
3422 BFD_RELOC_AARCH64_MOVW_PREL_G3.
3423 * bfd-in2.h: Regenerate.
3424 * libbfd.h: Regenerate.
3426 2018-01-23 Maciej W. Rozycki <macro@mips.com>
3428 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
3429 `mips_elf32_section_processing' comment reference.
3431 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
3434 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
3435 versioned __tls_get_addr symbol.
3437 2018-01-19 Nick Clifton <nickc@redhat.com>
3439 * po/fr.po: Updated French translation.
3441 2018-01-18 Alan Modra <amodra@gmail.com>
3443 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
3444 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
3445 (ppc64_elf_build_stubs): Likewise.
3447 2018-01-17 Nick Clifton <nickc@redhat.com>
3449 * po/ru.po: Updated Russian translation.
3450 * po/uk/po: Updated Ukranian translation.
3452 2018-01-17 Alan Modra <amodra@gmail.com>
3454 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
3456 2018-01-17 Alan Modra <amodra@gmail.com>
3458 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
3459 (CRSETEQ, BEQCTRM): Define.
3460 (is_nonpic_glink_stub): Don't check bctr.
3461 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
3462 (ppc_elf_relax_section): Size speculation barrier.
3463 (output_bctr): New function.
3464 (write_glink_stub): Use output_bctr.
3465 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
3466 (ppc_elf_finish_dynamic_symbol): Likewise.
3467 (ppc_elf_finish_dynamic_sections): Use output_bctr.
3468 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
3469 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
3470 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
3471 (size_global_entry_stubs): Handle speculation barrier sizing.
3472 (plt_stub_size): Likewise.
3473 (output_bctr): New function.
3474 (build_plt_stub, build_tls_get_addr_stub): Output speculation
3476 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
3477 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
3478 (build_global_entry_stubs): Output speculation barrier.
3479 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
3480 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
3482 2018-01-17 Alan Modra <amodra@gmail.com>
3484 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
3485 __tls_get_addr_opt, and alignment sizing.
3486 (TLS_GET_ADDR_GLINK_SIZE): Delete.
3487 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
3488 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
3490 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
3491 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
3492 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
3494 (write_glink_stub): Handle __tls_get_addr_opt stub.
3495 Pad out to size given by GLINK_ENTRY_SIZE.
3496 (ppc_elf_relocate_section): Adjust write_glink_stub call.
3497 (ppc_elf_finish_dynamic_symbol): Likewise.
3498 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
3499 insn array since so many need rewriting.
3500 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
3501 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
3502 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
3503 nops. Adjust all uses.
3504 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
3505 in glink_vma calculation.
3506 (struct ppc_link_hash_table): Add global_entry section pointer.
3507 (create_linkage_sections): Create separate section for global
3509 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
3510 (size_global_entry_stubs): Handle sizing for aligned stubs.
3511 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
3512 and don't stash end of glink branch table in rawsize.
3513 (ppc_build_one_stub): Rewrite stub size calculations.
3514 (build_global_entry_stubs): Use new section.
3515 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
3516 Build lazy link stubs out to end of section. Build global entry
3517 stubs in new section.
3519 2018-01-15 Nick Clifton <nickc@redhat.com>
3521 * po/uk.po: Updated Ukranian translation.
3523 2018-01-13 Nick Clifton <nickc@redhat.com>
3525 * po/bfd.pot: Regenerated.
3527 2018-01-13 Nick Clifton <nickc@redhat.com>
3529 * version.m4: Bump version to 2.30.51
3530 * configure: Regenerate.
3532 2018-01-13 Nick Clifton <nickc@redhat.com>
3534 2.30 branch created.
3536 2018-01-12 Jens Widell <jl@opera.com>
3538 * elf.c (setup_group): Optimize search for group by remembering
3539 last found group and restarting search at that index.
3540 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
3542 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
3544 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
3545 bfd_link_common_skip_none in switch.
3547 2018-01-12 Alan Modra <amodra@gmail.com>
3550 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
3551 references on forced local symbols.
3553 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
3555 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
3556 .reginfo section has wrong size.
3558 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3561 * elf.c (_bfd_elf_map_sections_to_segments): When generating
3562 separate code and read-only data LOAD segments, create a new
3563 LOAD segment if the previous section contains text and the
3564 current section doesn't or vice versa. Don't put a writable
3565 section in a read-only segment if there is a RELRO segment.
3567 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3570 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
3571 references on forced local symbols.
3573 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3576 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
3577 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
3579 2018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com>
3582 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
3584 2018-01-03 John Baldwin <jhb@FreeBSD.org>
3586 * elf.c (elfcore_grok_freebsd_note): Handle
3587 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
3588 NT_FREEBSD_PROCSTAT_VMMAP.
3590 2018-01-03 Alan Modra <amodra@gmail.com>
3592 Update year range in copyright notice of all files.
3594 For older changes see ChangeLog-2017
3596 Copyright (C) 2018 Free Software Foundation, Inc.
3598 Copying and distribution of this file, with or without modification,
3599 are permitted in any medium without royalty provided the copyright
3600 notice and this notice are preserved.
3606 version-control: never