summaryrefslogtreecommitdiffstats
path: root/src/boot/efi
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2023-02-09 21:03:14 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2023-02-09 22:55:40 +0100
commit59833064742310bfccf028b0278811ba5cff8dcf (patch)
tree5c287e29a487e6f43a9b6bc0d623e9b8afcb75f9 /src/boot/efi
parentvarious: boldify version output (diff)
downloadsystemd-59833064742310bfccf028b0278811ba5cff8dcf.tar.xz
systemd-59833064742310bfccf028b0278811ba5cff8dcf.zip
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.
Diffstat (limited to 'src/boot/efi')
-rw-r--r--src/boot/efi/util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/boot/efi/util.c b/src/boot/efi/util.c
index 403b78c033..0133919706 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();
+}