]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Ensure raise() is not dropped by LTO
authorJan Janssen <medhefgo@web.de>
Sun, 12 Feb 2023 19:23:18 +0000 (20:23 +0100)
committerJan Janssen <medhefgo@web.de>
Sun, 12 Feb 2023 21:23:22 +0000 (22:23 +0100)
src/boot/efi/util.c

index 0133919706aa49015f6205643431b1dce42d36a4..683724b66cec83b82a05e8ff96ebca4c8870041b 100644 (file)
@@ -724,6 +724,6 @@ void *find_configuration_table(const EFI_GUID *guid) {
 
 /* 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) {
+_used_ _noreturn_ int raise(int sig) {
         assert_not_reached();
 }