Similar to r293384 and r293426, for sys/boot, also use the new -mno-movt

flag with clang >= 3.8.0 targeting arm.
This commit is contained in:
Dimitry Andric 2016-02-11 20:16:11 +00:00
parent 4156ce4fed
commit 43a7fce37a

View File

@ -1,11 +1,17 @@
# $FreeBSD$ # $FreeBSD$
.include <bsd.own.mk>
SSP_CFLAGS= SSP_CFLAGS=
.if ${MACHINE_CPUARCH} == "arm" .if ${MACHINE_CPUARCH} == "arm"
# Do not generate movt/movw, because the relocation fixup for them does not # 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). # translate to the -Bsymbolic -pie format required by self_reloc() in loader(8).
# Also, the fpu is not available in a standalone environment. # Also, the fpu is not available in a standalone environment.
CFLAGS.clang+= -mllvm -arm-use-movt=0 .if ${COMPILER_VERSION} < 30800
CFLAGS.clang+= -mllvm -arm-use-movt=0
.else
CFLAGS.clang+= -mno-movt
.endif
CFLAGS.clang+= -mfpu=none CFLAGS.clang+= -mfpu=none
.endif .endif