aboutsummaryrefslogtreecommitdiffstats
path: root/mk/com32.mk
diff options
context:
space:
mode:
authorSylvain Gault <sylvain.gault@gmail.com>2015-11-27 22:41:07 +0100
committerSylvain Gault <sylvain.gault@gmail.com>2015-11-27 23:11:45 +0100
commit7d70885d22e4474407637026c1af12a253281407 (patch)
tree3ca2b5beddae9960d5554408d337e68ffda0663f /mk/com32.mk
parent2d14923c02aa343f650a5bee128e9ea383a0ed59 (diff)
downloadsyslinux-7d70885d22e4474407637026c1af12a253281407.tar.gz
syslinux-7d70885d22e4474407637026c1af12a253281407.tar.xz
syslinux-7d70885d22e4474407637026c1af12a253281407.zip
Makefile: Always use -mno-red-zone for EFI
This option is mandatory when compiling for EFI as some event handlers may interupt the running code and use the space just above the reserved stack space. Signed-off-by: Sylvain Gault <sylvain.gault@gmail.com>
Diffstat (limited to 'mk/com32.mk')
-rw-r--r--mk/com32.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/com32.mk b/mk/com32.mk
index 90eb7edd..2e8591a7 100644
--- a/mk/com32.mk
+++ b/mk/com32.mk
@@ -48,7 +48,9 @@ GCCOPT += $(call gcc_ok,-falign-jumps=0,-malign-jumps=0)
GCCOPT += $(call gcc_ok,-falign-labels=0,-malign-labels=0)
GCCOPT += $(call gcc_ok,-falign-loops=0,-malign-loops=0)
-ifndef EFI_BUILD
+ifdef EFI_BUILD
+GCCOPT += -mno-red-zone
+else
GCCOPT += -mregparm=3 -DREGPARM=3
endif