]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Fix undefined reference to raise() on arm
authorJan Janssen <medhefgo@web.de>
Thu, 9 Feb 2023 20:03:14 +0000 (21:03 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 9 Feb 2023 21:55:40 +0000 (21:55 +0000)
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.

src/boot/efi/util.c

index 403b78c033cc333f64e952d3ea048121a8f99748..0133919706aa49015f6205643431b1dce42d36a4 100644 (file)
@@ -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();
+}