diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2015-11-07 17:53:24 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2015-11-07 17:53:24 +0000 |
commit | 1b2bcd306c25281d25fb7657ed70bccf481cbe47 (patch) | |
tree | ab5aa00b72c04a6d5b21cc18c4e50c0cca1616da /sys/arch | |
parent | 060d2a27be35e72c30de37b05b794989ffd259fe (diff) |
Disable red-zone since EFI is running with a different ABI.
This may fixes the issue when loading a compressed kernel on macbook
reported by gonzalo, jung, Joel Roberts, Bryan Vyhmeist and many.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/stand/efiboot/Makefile.common | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/stand/efiboot/Makefile.common b/sys/arch/amd64/stand/efiboot/Makefile.common index e2d5afe690d..f01b4970e3e 100644 --- a/sys/arch/amd64/stand/efiboot/Makefile.common +++ b/sys/arch/amd64/stand/efiboot/Makefile.common @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.common,v 1.3 2015/09/23 03:27:59 yasuoka Exp $ +# $OpenBSD: Makefile.common,v 1.4 2015/11/07 17:53:23 yasuoka Exp $ S= ${.CURDIR}/../../../../.. SADIR= ${.CURDIR}/../.. @@ -14,7 +14,7 @@ LDFLAGS+= -nostdlib -T${.CURDIR}/../${LDSCRIPT} -Bsymbolic -shared COPTS+= -DEFIBOOT -DNEEDS_HEAP_H -I${.CURDIR}/.. COPTS+= -I${EFIDIR}/include -I${S}/stand/boot COPTS+= -ffreestanding -std=gnu99 -COPTS+= -fshort-wchar -fPIC +COPTS+= -fshort-wchar -fPIC -mno-red-zone .if ${SOFTRAID:L} == "yes" COPTS+= -DSOFTRAID .endif |