[PATCH] D105869: [Driver] fix PowerPC SPE musl dynamic linker name
Patrick Oppenlander via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 12 22:03:02 PDT 2021
pattop created this revision.
Herald added subscribers: steven.zhang, shchenz, nemanjai.
pattop requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Musl treats PowerPC SPE as a soft-float target (as the PowerPC SPE ABI
is soft-float compatible).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D105869
Files:
clang/lib/Driver/ToolChains/Linux.cpp
Index: clang/lib/Driver/ToolChains/Linux.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Linux.cpp
+++ clang/lib/Driver/ToolChains/Linux.cpp
@@ -410,6 +410,9 @@
(Triple.getEnvironment() == llvm::Triple::MuslEABIHF ||
tools::arm::getARMFloatABI(*this, Args) == tools::arm::FloatABI::Hard))
ArchName += "hf";
+ if (Arch == llvm::Triple::ppc &&
+ Triple.getSubArch() == llvm::Triple::PPCSubArch_spe)
+ ArchName = "powerpc-sf";
return "/lib/ld-musl-" + ArchName + ".so.1";
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105869.358145.patch
Type: text/x-patch
Size: 578 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210713/3969d59e/attachment.bin>
More information about the cfe-commits
mailing list