Created
September 2, 2015 17:00
-
-
Save neeraj9/4634bd0cd84de9321790 to your computer and use it in GitHub Desktop.
Workaround for x86_64 target for red zone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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