Fix two bugs for musl-libc on ARM
authorDiana Picus <diana.picus@linaro.org>
Mon, 8 Aug 2016 08:27:36 +0000 (08:27 +0000)
committerDiana Picus <diana.picus@linaro.org>
Mon, 8 Aug 2016 08:27:36 +0000 (08:27 +0000)
commit86db9e7b66b6f86ad8b249906a88af56c1aaac40
tree30c01d4370a2a79e11688e807d29033612ea64b1
parent0873e7d2186c97499aacda67eb2fea7ef4ccbcf3
Fix two bugs for musl-libc on ARM

Bug 1: triples like armv7-pc-linux-musl use the wrong linker name
ld-musl-armv7.so.1; the right name should be ld-musl-arm.so.1, disregarding the
subarch field.

Bug 2: when compiler option -mhard-float is used, we should use the "hardfloat"
linker, no matter whether the triple itself mentions "hardfloat".

Patch by Lei Zhang!

Differential Revision: https://reviews.llvm.org/D22904

llvm-svn: 277985
clang/lib/Driver/ToolChains.cpp
clang/test/Driver/linux-ld.c