Date: Tue, 11 Dec 2018 06:45:54 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r341812 - projects/clang700-import/share/mk Message-ID: <201812110645.wBB6js8A067244@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Tue Dec 11 06:45:53 2018 New Revision: 341812 URL: https://svnweb.freebsd.org/changeset/base/341812 Log: For arm and armv6, only enable LLVM target support for arm by default, to shrink libllvm.a. This is a workaround for "relocation truncated to fit" errors with BFD ld 2.17.50 on arm and armv6, when linking executables against it. The required range extensions are not yet supported by this very old version of BFD ld. When arm and armv6 userland can be successfully linked by lld, this workaround can be removed. Modified: projects/clang700-import/share/mk/src.opts.mk Modified: projects/clang700-import/share/mk/src.opts.mk ============================================================================== --- projects/clang700-import/share/mk/src.opts.mk Tue Dec 11 05:10:22 2018 (r341811) +++ projects/clang700-import/share/mk/src.opts.mk Tue Dec 11 06:45:53 2018 (r341812) @@ -269,6 +269,10 @@ __LLVM_TARGET_FILT= C/(amd64|i386)/x86/:S/sparc64/spar # Default the given TARGET's LLVM_TARGET support to the value of MK_CLANG. .if ${__TT:${__LLVM_TARGET_FILT}} == ${__llt} __DEFAULT_DEPENDENT_OPTIONS+= LLVM_TARGET_${__llt:${__LLVM_TARGET_FILT}:tu}/CLANG +# Disable other targets for arm and armv6, to work around "relocation truncated +# to fit" errors with BFD ld, since libllvm.a will get too large to link. +.elif ${__T} == "arm" || ${__T} == "armv6" +__DEFAULT_NO_OPTIONS+=LLVM_TARGET_${__llt:tu} # aarch64 needs arm for -m32 support. .elif ${__TT} == "arm64" && ${__llt} == "arm" __DEFAULT_DEPENDENT_OPTIONS+= LLVM_TARGET_ARM/LLVM_TARGET_AARCH64
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812110645.wBB6js8A067244>