Skip to content

Instantly share code, notes, and snippets.

@neeraj9
Created September 2, 2015 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neeraj9/4634bd0cd84de9321790 to your computer and use it in GitHub Desktop.
Save neeraj9/4634bd0cd84de9321790 to your computer and use it in GitHub Desktop.
Workaround for x86_64 target for red zone
diff --git a/build-rr.sh b/build-rr.sh
index 8b5bdf4..3be2a0b 100755
--- a/build-rr.sh
+++ b/build-rr.sh
@@ -217,6 +217,8 @@ EOF
# -mno-red-zone.
if [ "${PLATFORM}" = "xen" -a "${MACHINE_ARCH}" = "x86_64" ]; then
echo "CFLAGS+=-mno-red-zone" >> ${RUMPTOOLS}/mk.conf
+ elif [ "${PLATFORM}" = "hw" -a "${MACHINE_ARCH}" = "x86_64" ]; then
+ echo "CFLAGS+=-mno-red-zone" >> ${RUMPTOOLS}/mk.conf
fi
# build rump kernel
@@ -316,6 +318,9 @@ makeconfigmk ()
if [ "${PLATFORM}" = "xen" -a "${MACHINE_ARCH}" = "x86_64" ]; then
echo "BUILDRUMP_TOOL_CFLAGS+=-mno-red-zone" \
>> $(pwd)/${RUMPTOOLS}/toolchain-conf.mk
+ elif [ "${PLATFORM}" = "hw" -a "${MACHINE_ARCH}" = "x86_64" ]; then
+ echo "BUILDRUMP_TOOL_CFLAGS+=-mno-red-zone" \
+ >> $(pwd)/${RUMPTOOLS}/toolchain-conf.mk
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment