From: Jan Janssen Date: Sun, 12 Feb 2023 19:23:18 +0000 (+0100) Subject: boot: Ensure raise() is not dropped by LTO X-Git-Tag: v253~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ec96dad2f456c5dc062bb402483722385b01d63d;p=thirdparty%2Fsystemd.git boot: Ensure raise() is not dropped by LTO --- diff --git a/src/boot/efi/util.c b/src/boot/efi/util.c index 0133919706a..683724b66ce 100644 --- a/src/boot/efi/util.c +++ b/src/boot/efi/util.c @@ -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(); }