[syslinux:master] mk/efi.mk: Disable stack protector

syslinux-bot for Magnus Granberg zorry at gentoo.org
Fri Feb 21 17:00:05 PST 2014


Commit-ID:  5055cc713488b799a899faa488f04e2895f587f1
Gitweb:     http://www.syslinux.org/commit/5055cc713488b799a899faa488f04e2895f587f1
Author:     Magnus Granberg <zorry at gentoo.org>
AuthorDate: Fri, 21 Feb 2014 16:55:37 -0800
Committer:  H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Fri, 21 Feb 2014 16:56:17 -0800

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 at linux.intel.com>

---
 mk/efi.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mk/efi.mk b/mk/efi.mk
index 592a235..d4f8a35 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


More information about the Syslinux-commits mailing list