From 0655ec83e118e9f35fb2099abfbe4d4d91b9def4 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 11 Aug 2020 20:49:24 -0400 Subject: add __stack_chk_fail for GCC compatibility --- src/nonstd/x86-64.s | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.1