summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2016-01-08 16:50:04 +0000
committerdim <dim@FreeBSD.org>2016-01-08 16:50:04 +0000
commitce1e0a9997edb90979d645fdd6160b14d1cf3d86 (patch)
tree42316502316806fed57722ddcb0ee804af05342c
parent05629042ccfa935931e495e3ce47b2b1cc3790ab (diff)
downloadFreeBSD-src-ce1e0a9997edb90979d645fdd6160b14d1cf3d86.zip
FreeBSD-src-ce1e0a9997edb90979d645fdd6160b14d1cf3d86.tar.gz
Similar to r293384, for libstand, also use the new -mno-movt flag with
clang >= 3.8.0 targeting arm.
-rw-r--r--lib/libstand/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile
index ee8087b..9740d29 100644
--- a/lib/libstand/Makefile
+++ b/lib/libstand/Makefile
@@ -49,7 +49,11 @@ SRCS+= bcmp.c bcopy.c bzero.c ffs.c fls.c \
# Do not generate movt/movw, because the relocation fixup for them does not
# translate to the -Bsymbolic -pie format required by self_reloc() in loader(8).
# Also, the fpu is not available in a standalone environment.
+.if ${COMPILER_VERSION} < 30800
CFLAGS.clang+= -mllvm -arm-use-movt=0
+.else
+CFLAGS.clang+= -mno-movt
+.endif
CFLAGS.clang+= -mfpu=none
# Compiler support functions
OpenPOWER on IntegriCloud