summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-15 16:28:27 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-15 16:28:27 -0400
commitb2e236d639f7809983a4edd0918121e54015a0f8 (patch)
tree6287b2f7657a4ebffd28d4728d34d458b5a661e1
parentf34eead6e1e962aff8603104debd57b92fa2187d (diff)
remove support for GCC stack protector
-rw-r--r--Makefile2
-rw-r--r--src/__sys.x86-64.s4
2 files changed, 1 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index a479b5b4..c7495ef9 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
AR=ar
ARFLAGS=rU
-BASE_CFLAGS=-g -Wall -Wextra -Werror -nostdinc -fno-builtin -Iinclude -Isrc
+BASE_CFLAGS=-g -Wall -Wextra -Werror -nostdinc -fno-builtin -fno-stack-protector -Iinclude -Isrc
OBJDIR=obj
SRCDIR=src
diff --git a/src/__sys.x86-64.s b/src/__sys.x86-64.s
index 415a8084..02fd3dbb 100644
--- a/src/__sys.x86-64.s
+++ b/src/__sys.x86-64.s
@@ -15,7 +15,3 @@ _start:
popq %rdi
movq %rsp, %rsi
call __main
-
-.global __stack_chk_fail
-__stack_chk_fail:
- ret