Date: Thu, 11 Feb 2016 20:16:11 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r295545 - projects/clang380-import/sys/boot Message-ID: <201602112016.u1BKGBXA097235@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Thu Feb 11 20:16:11 2016 New Revision: 295545 URL: https://svnweb.freebsd.org/changeset/base/295545 Log: Similar to r293384 and r293426, for sys/boot, also use the new -mno-movt flag with clang >= 3.8.0 targeting arm. Modified: projects/clang380-import/sys/boot/Makefile.inc Modified: projects/clang380-import/sys/boot/Makefile.inc ============================================================================== --- projects/clang380-import/sys/boot/Makefile.inc Thu Feb 11 20:07:09 2016 (r295544) +++ projects/clang380-import/sys/boot/Makefile.inc Thu Feb 11 20:16:11 2016 (r295545) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602112016.u1BKGBXA097235>