Skip to content
Snippets Groups Projects
Commit 9fc785dc authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add stack_chk functionality

parent 6c11a182
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,9 @@ fn main() {
.flag("-fno-stack-protector")
.file("src/c/dlmalloc.c")
.file("src/c/fcntl.c")
.file("src/c/stack_chk.c")
.file("src/c/stdio.c")
.file("src/c/unistd.c")
.compile("relibc_c");
println!("cargo:rustc-link-lib=static=relibc_c");
......
#include <stdint.h>
void abort();
uintptr_t __stack_chk_guard = 0xd048c37519fcadfe;
__attribute__((noreturn))
void __stack_chk_fail(void) {
abort();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment