Ensure assert_fail and abort have noreturn attribute

This commit is contained in:
Jeremy Soller
2023-03-10 11:23:56 -07:00
parent 334e33cfde
commit e7b70fdb93
9 changed files with 275 additions and 112 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
uintptr_t __stack_chk_guard = 0xd048c37519fcadfe;
// manually define detailed abort function
void __abort(const char *func, const char *file, int line);
void __abort(const char *func, const char *file, int line) __attribute__((noreturn));
__attribute__((noreturn))
void __stack_chk_fail(void) {