diff options
author | dim <dim@FreeBSD.org> | 2016-02-11 20:16:11 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2016-02-11 20:16:11 +0000 |
commit | 0fcbd80cfc7cfbf997f34115b7b17d8c679c71fc (patch) | |
tree | 8e65d056fc8435dc89ffb1ec5cff0ada714f18bf | |
parent | afa214d26dae14a294ff215b5a55e9acaf67d18f (diff) | |
download | FreeBSD-src-0fcbd80cfc7cfbf997f34115b7b17d8c679c71fc.zip FreeBSD-src-0fcbd80cfc7cfbf997f34115b7b17d8c679c71fc.tar.gz |
Similar to r293384 and r293426, for sys/boot, also use the new -mno-movt
flag with clang >= 3.8.0 targeting arm.
-rw-r--r-- | sys/boot/Makefile.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/boot/Makefile.inc b/sys/boot/Makefile.inc index 17088d7..9c39953 100644 --- a/sys/boot/Makefile.inc +++ b/sys/boot/Makefile.inc @@ -1,11 +1,17 @@ # $FreeBSD$ +.include <bsd.own.mk> + SSP_CFLAGS= .if ${MACHINE_CPUARCH} == "arm" # 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. -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 .endif |