From a622e3bda67faec93e965d54c718d4e804abd2ae Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Tue, 8 Aug 2023 18:41:06 -0500 Subject: [PATCH] Mac: Mark crash info as used so it doesn't get DCE'd --- common/Misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/Misc.cpp b/common/Misc.cpp index 388a77d510..c8263f7dca 100644 --- a/common/Misc.cpp +++ b/common/Misc.cpp @@ -110,7 +110,7 @@ struct crash_info_t u64 reserved; u64 reserved2; }; -#define CRASH_ANNOTATION __attribute__((section("__DATA,__crash_info"))) +#define CRASH_ANNOTATION __attribute__((used, section("__DATA,__crash_info"))) #define CRASH_VERSION 4 extern "C" crash_info_t gCRAnnotations CRASH_ANNOTATION = { CRASH_VERSION }; #endif