[PATCH] D46452: [sanitizer] Don't add --export-dynamic for Myriad
Walter Lee via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 17 11:08:33 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rC332635: [sanitizer] Don't add --export-dynamic for Myriad (authored by waltl, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D46452?vs=147233&id=147355#toc
Repository:
rC Clang
https://reviews.llvm.org/D46452
Files:
lib/Driver/ToolChains/CommonArgs.cpp
Index: lib/Driver/ToolChains/CommonArgs.cpp
===================================================================
--- lib/Driver/ToolChains/CommonArgs.cpp
+++ lib/Driver/ToolChains/CommonArgs.cpp
@@ -538,6 +538,11 @@
// the option, so don't try to pass it.
if (TC.getTriple().getOS() == llvm::Triple::Solaris)
return true;
+ // Myriad is static linking only. Furthermore, some versions of its
+ // linker have the bug where --export-dynamic overrides -static, so
+ // don't use --export-dynamic on that platform.
+ if (TC.getTriple().getVendor() == llvm::Triple::Myriad)
+ return true;
SmallString<128> SanRT(TC.getCompilerRT(Args, Sanitizer));
if (llvm::sys::fs::exists(SanRT + ".syms")) {
CmdArgs.push_back(Args.MakeArgString("--dynamic-list=" + SanRT + ".syms"));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46452.147355.patch
Type: text/x-patch
Size: 795 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180517/eb3373b4/attachment.bin>
More information about the cfe-commits
mailing list