Mac: Mark crash info as used so it doesn't get DCE'd

This commit is contained in:
TellowKrinkle 2023-08-08 18:41:06 -05:00 committed by Connor McLaughlin
parent 4d54e28e63
commit a622e3bda6
1 changed files with 1 additions and 1 deletions

View File

@ -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