From b2e236d639f7809983a4edd0918121e54015a0f8 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 15 Aug 2020 16:28:27 -0400 Subject: remove support for GCC stack protector --- Makefile | 2 +- src/__sys.x86-64.s | 4 ---- 2 files changed, 1 insertion(+), 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 -- cgit v1.2.1