Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151907106
D2054.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D2054.id.diff
View Options
Index: head/lib/libstand/Makefile
===================================================================
--- head/lib/libstand/Makefile
+++ head/lib/libstand/Makefile
@@ -28,7 +28,7 @@
CFLAGS.gcc+= -mpreferred-stack-boundary=2
.endif
.if ${MACHINE_CPUARCH} == "amd64"
-CFLAGS+= -fPIC
+CFLAGS+= -fPIC -mno-red-zone
.endif
.if ${MACHINE} == "pc98"
CFLAGS+= -Os
Index: head/sys/boot/amd64/Makefile.inc
===================================================================
--- head/sys/boot/amd64/Makefile.inc
+++ head/sys/boot/amd64/Makefile.inc
@@ -5,7 +5,7 @@
BINDIR?= /boot
# See conf/kern.mk for the correct set of these
-CFLAGS+= -ffreestanding
+CFLAGS+= -ffreestanding -mno-red-zone
CFLAGS+= -mno-mmx -mno-sse -mno-aes -mno-avx -msoft-float
LDFLAGS+= -nostdlib
Index: head/sys/boot/efi/libefi/Makefile
===================================================================
--- head/sys/boot/efi/libefi/Makefile
+++ head/sys/boot/efi/libefi/Makefile
@@ -9,7 +9,7 @@
SRCS+= nullconsole.c comconsole.c
.if ${MACHINE_ARCH} == "amd64"
-CFLAGS+= -fPIC
+CFLAGS+= -fPIC -mno-red-zone
.endif
CFLAGS+= -I${.CURDIR}/../include
CFLAGS+= -I${.CURDIR}/../include/${MACHINE_CPUARCH}
Index: head/sys/boot/ficl/Makefile
===================================================================
--- head/sys/boot/ficl/Makefile
+++ head/sys/boot/ficl/Makefile
@@ -21,6 +21,9 @@
CFLAGS+= -march=i386
CFLAGS.gcc+= -mpreferred-stack-boundary=2
.endif
+.if ${MACHINE_CPUARCH} == "amd64"
+CFLAGS+= -mno-red-zone
+.endif
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 12, 11:42 AM (10 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31346010
Default Alt Text
D2054.id.diff (1 KB)
Attached To
Mode
D2054: Disable stack redzone for amd64 EFI binaries.
Attached
Detach File
Event Timeline
Log In to Comment