diff options
| author | Peter Smith <peter.smith@linaro.org> | 2018-10-16 09:21:17 +0000 |
|---|---|---|
| committer | Peter Smith <peter.smith@linaro.org> | 2018-10-16 09:21:17 +0000 |
| commit | e75b6d78e0f90c1bdcf16d59fdacbbc0ffe6ec4a (patch) | |
| tree | 9032adfd39bd7bb9385095220592a1d5a3544721 /clang/lib/Driver/ToolChains/NetBSD.cpp | |
| parent | 87de55ad01a092164f77f12f8aaccb0c5d7f6a7b (diff) | |
| download | bcm5719-llvm-e75b6d78e0f90c1bdcf16d59fdacbbc0ffe6ec4a.tar.gz bcm5719-llvm-e75b6d78e0f90c1bdcf16d59fdacbbc0ffe6ec4a.zip | |
[ARM][AArch64] Pass through endian flags to assembler and linker.
The big-endian arm32 Linux builds are currently failing when the
-mbig-endian flag is used but the binutils default on the system is little
endian. This also holds when -mlittle-endian is used and the binutils
default is big endian.
The patch always passes through -EL or -BE to the assembler and linker,
taking into account the target and the -mbig-endian and -mlittle-endian
flag.
Fixes pr38770
Differential Revision: https://reviews.llvm.org/D52784
llvm-svn: 344597
Diffstat (limited to 'clang/lib/Driver/ToolChains/NetBSD.cpp')
| -rw-r--r-- | clang/lib/Driver/ToolChains/NetBSD.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains/NetBSD.cpp b/clang/lib/Driver/ToolChains/NetBSD.cpp index 02caafda165..73e230b3ea4 100644 --- a/clang/lib/Driver/ToolChains/NetBSD.cpp +++ b/clang/lib/Driver/ToolChains/NetBSD.cpp @@ -164,7 +164,7 @@ void netbsd::Linker::ConstructJob(Compilation &C, const JobAction &JA, break; case llvm::Triple::armeb: case llvm::Triple::thumbeb: - arm::appendEBLinkFlags(Args, CmdArgs, ToolChain.getEffectiveTriple()); + arm::appendBE8LinkFlag(Args, CmdArgs, ToolChain.getEffectiveTriple()); CmdArgs.push_back("-m"); switch (ToolChain.getTriple().getEnvironment()) { case llvm::Triple::EABI: |

