From: Jan Janssen Date: Thu, 9 Feb 2023 20:03:14 +0000 (+0100) Subject: boot: Fix undefined reference to raise() on arm X-Git-Tag: v253-rc3~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59833064742310bfccf028b0278811ba5cff8dcf;p=thirdparty%2Fsystemd.git boot: Fix undefined reference to raise() on arm This is just a workaround. Once we drop gnu-efi, the arm build system for EFI binaries should be changed to use the arm-none-eabi toolchain, which should not exhibit this behavior. --- diff --git a/src/boot/efi/util.c b/src/boot/efi/util.c index 403b78c033c..0133919706a 100644 --- a/src/boot/efi/util.c +++ b/src/boot/efi/util.c @@ -721,3 +721,9 @@ void *find_configuration_table(const EFI_GUID *guid) { return NULL; } + +/* libgcc's __aeabi_ldiv0 intrinsic will call raise() on division by zero, so we + * need to provide one ourselves for now. */ +_noreturn_ int raise(int sig) { + assert_not_reached(); +}