summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nonstd/x86-64.s6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nonstd/x86-64.s b/src/nonstd/x86-64.s
index f78a09fb..5b13587c 100644
--- a/src/nonstd/x86-64.s
+++ b/src/nonstd/x86-64.s
@@ -64,10 +64,12 @@ __longjmp:
mov 0x00(%rax), %rax
ret
-/* FIXME: this seems to be unpossible to put in a shared library */
-/* FIXME: it may be worthwhile to separate this into crt1.s */
.global _start
_start:
popq %rdi
movq %rsp, %rsi
call __libc_start
+
+.global __stack_chk_fail
+__stack_chk_fail:
+ ret