aboutsummaryrefslogtreecommitdiffstats
path: root/mk
diff options
context:
space:
mode:
authorMagnus Granberg <zorry@gentoo.org>2014-02-21 16:55:37 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2014-02-21 16:56:17 -0800
commit5055cc713488b799a899faa488f04e2895f587f1 (patch)
tree68446377acd10bd8193f15e4a7849b340552396c /mk
parent9692baed476a71d5225174f8d7bba31bcc0393d1 (diff)
downloadsyslinux-5055cc713488b799a899faa488f04e2895f587f1.tar.gz
syslinux-5055cc713488b799a899faa488f04e2895f587f1.tar.xz
syslinux-5055cc713488b799a899faa488f04e2895f587f1.zip
mk/efi.mk: Disable stack protector
Disable the stack protector if on by default. Copied from https://bugs.gentoo.org/show_bug.cgi?id=495146. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/efi.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/efi.mk b/mk/efi.mk
index 592a2357..d4f8a353 100644
--- a/mk/efi.mk
+++ b/mk/efi.mk
@@ -7,6 +7,7 @@ core = $(topdir)/core
# Set up architecture specifics; for cross compilation, set ARCH as apt
# gnuefi sets up architecture specifics in ia32 or x86_64 sub directories
# set up the LIBDIR and EFIINC for building for the appropriate architecture
+GCCOPT := $(call gcc_ok,-fno-stack-protector,)
EFIINC = $(objdir)/include/efi
LIBDIR = $(objdir)/lib
@@ -37,7 +38,7 @@ CFLAGS = -I$(EFIINC) -I$(EFIINC)/$(EFI_SUBARCH) \
-DELF_DEBUG -DSYSLINUX_EFI -I$(objdir) \
$(GCCWARN) -D__COM32__ -mno-red-zone \
-DLDLINUX=\"$(LDLINUX)\" -fvisibility=hidden \
- -Wno-unused-parameter
+ -Wno-unused-parameter $(GCCOPT)
CRT0 := $(LIBDIR)/crt0-efi-$(EFI_SUBARCH).o
LDSCRIPT := $(LIBDIR)/elf_$(EFI_SUBARCH)_efi.lds