Add stack_chk functionality

This commit is contained in:
Jeremy Soller
2018-07-12 07:40:53 -06:00
parent 6c11a18240
commit 9fc785dcc6
2 changed files with 12 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#include <stdint.h>
void abort();
uintptr_t __stack_chk_guard = 0xd048c37519fcadfe;
__attribute__((noreturn))
void __stack_chk_fail(void) {
abort();
}