From ec96dad2f456c5dc062bb402483722385b01d63d Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Sun, 12 Feb 2023 20:23:18 +0100 Subject: [PATCH] boot: Ensure raise() is not dropped by LTO --- src/boot/efi/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.47.3