Non-contiguous memory regions support: Avoid calls to abort
authorChristophe Lyon <christophe.lyon@linaro.org>
Tue, 17 Mar 2020 15:59:01 +0000 (15:59 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Wed, 18 Mar 2020 10:09:43 +0000 (10:09 +0000)
commit53215f214c61b850085196a8d69774eed026ecd9
treece76a728bc37dea37feb8b6a5c25aecfda4da522
parent5a82b8a12b6a9b8167517ab1df1dcdcc4711ffda
Non-contiguous memory regions support: Avoid calls to abort

Use '%F' format when printing error messages to exit cleanly rather
than by calling abort().

2020-03-18  Christophe Lyon  <christophe.lyon@linaro.org>

bfd/
* elf32-arm.c (arm_build_one_stub): Emit a fatal error message
instead of calling abort.
* elf32-csky.c (csky_build_one_stub): Likewise.
* elf32-hppa.c (hppa_build_one_stub): Likewise.
* elf32-m68hc11.c (m68hc11_elf_build_one_stub): Likewise.
* elf32-m68hc12.c (m68hc12_elf_build_one_stub): Likewise.
* elf32-metag.c (metag_build_one_stub): Likewise.
* elf32-nios2.c (nios2_build_one_stub): Likewise.
* elf64-ppc.c (ppc_build_one_stub): Likewise.
(ppc_size_one_stub): Likewise.
* elfnn-aarch64.c (aarch64_build_one_stub): Likewise.

ld/
* emultempl/xtensaelf.em: Emit a fatal error message
instead of calling abort.
* ldlang.c: Likewise.

Change-Id: I60deaeeee59d4e7cab06b8a40a3e51837c43a8ab
13 files changed:
bfd/ChangeLog
bfd/elf32-arm.c
bfd/elf32-csky.c
bfd/elf32-hppa.c
bfd/elf32-m68hc11.c
bfd/elf32-m68hc12.c
bfd/elf32-metag.c
bfd/elf32-nios2.c
bfd/elf64-ppc.c
bfd/elfnn-aarch64.c
ld/ChangeLog
ld/emultempl/xtensaelf.em
ld/ldlang.c