]> granicus.if.org Git - clang/commit
[ARM][AArch64] Pass through endian flags to assembler and linker.
authorPeter Smith <peter.smith@linaro.org>
Tue, 16 Oct 2018 09:21:17 +0000 (09:21 +0000)
committerPeter Smith <peter.smith@linaro.org>
Tue, 16 Oct 2018 09:21:17 +0000 (09:21 +0000)
commit00837084bea626693768ee3cb58f13094cfa9981
tree00c314b8b36bf5e66323e20e885423c6b79353b1
parent750cd67a8e656ea9964f5109a3538c832ff55701
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344597 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Arch/ARM.cpp
lib/Driver/ToolChains/Arch/ARM.h
lib/Driver/ToolChains/Gnu.cpp
lib/Driver/ToolChains/NetBSD.cpp
test/Driver/linux-as.c
test/Driver/linux-ld.c