[PATCH] D44229: Don't use -pie in relocatable link.
Mandeep Singh Grang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 7 15:09:48 PST 2018
mgrang added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Gnu.cpp:311
+ if (Args.hasArg(options::OPT_shared) || Args.hasArg(options::OPT_static) ||
+ Args.hasArg(options::OPT_r))
return false;
----------------
We also need to check for -Wl,-r and -Xlinker -r options.
https://reviews.llvm.org/D44229
More information about the cfe-commits
mailing list