diff options
author | Magnus Granberg <zorry@gentoo.org> | 2014-02-21 16:55:37 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-02-21 16:56:17 -0800 |
commit | 5055cc713488b799a899faa488f04e2895f587f1 (patch) | |
tree | 68446377acd10bd8193f15e4a7849b340552396c | |
parent | 9692baed476a71d5225174f8d7bba31bcc0393d1 (diff) | |
download | syslinux-5055cc713488b799a899faa488f04e2895f587f1.tar.gz |
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>
-rw-r--r-- | mk/efi.mk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |