Last active
May 27, 2016 03:04
-
-
Save yamori813/c79c3f73d9ef04f0851ca37773348f8b to your computer and use it in GitHub Desktop.
armv4 compiler-rt
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
% cd contrib/compiler-rt/lib/builtins/arm | |
% find . -type f | xargs sed -i "" "s/bx.*lr/mov pc,lr/g" | |
% find . -type f | xargs sed -i "" "s/bx.*ip/mov pc,ip/g" | |
diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk | |
index 7081c9e..f4a3747 100644 | |
--- a/share/mk/bsd.cpu.mk | |
+++ b/share/mk/bsd.cpu.mk | |
@@ -115,6 +115,8 @@ _CPUCFLAGS = -mfloat-abi=softfp | |
_CPUCFLAGS = -march=${CPUTYPE} -DARM_ARCH_6=1 | |
. elif ${CPUTYPE} == "cortexa" | |
_CPUCFLAGS = -march=armv7 -DARM_ARCH_6=1 -mfpu=vfp | |
+. elif ${CPUTYPE:Marmv4} != "" | |
+_CPUCFLAGS = -march=armv4 -mno-thumb-interwork | |
. elif ${CPUTYPE:Marmv[4567]*} != "" | |
# Handle all the armvX types that FreeBSD runs: | |
# armv4, armv4t, armv5, armv5te, armv6, armv6t2, armv7, armv7-a, armv7ve |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment