diff options
| author | Jakob Kaivo <jkk@ung.org> | 2020-08-11 20:49:24 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2020-08-11 20:49:24 -0400 |
| commit | 0655ec83e118e9f35fb2099abfbe4d4d91b9def4 (patch) | |
| tree | 733bb6c473fc7d8b299d8731fc17d545112e2500 /src | |
| parent | 1a79189e74add16bca1a146f36eea8174da9ba19 (diff) | |
add __stack_chk_fail for GCC compatibility
Diffstat (limited to 'src')
| -rw-r--r-- | src/nonstd/x86-64.s | 6 |
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 |
