Skip to content
Snippets Groups Projects
Commit 2188366b authored by Avi Kivity's avatar Avi Kivity
Browse files

build: disable the x86-64 redzone for now

Using the redzone means any interrupt can clobber local variables, so disable
it.  This isn't a full solution since the payload is not built this way,
but it's better than nothing for now.
parent 65ecb608
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ arch = x64
INCLUDES = -I. -I$(src)/arch/$(arch) -I$(src) -I$(src)/external/libunwind/include
COMMON = $(autodepend) -g -Wall -Wno-pointer-arith -Werror -Wformat=0 \
-U _FORTIFY_SOURCE -fno-stack-protector $(INCLUDES) \
$(arch-cflags) $(cflags-$(mode))
$(arch-cflags) $(cflags-$(mode)) -mno-red-zone
CXXFLAGS = -std=gnu++11 -lstdc++ $(do-sys-includes) $(COMMON)
CFLAGS = -std=gnu99 $(COMMON)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment