[PATCH] D124356: [Driver][Solaris] -r: imply -nostdlib like GCC

Brad Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 25 00:58:51 PDT 2022


brad added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Solaris.cpp:168
   }
-  CmdArgs.push_back(Args.MakeArgString(getToolChain().GetFilePath("crtn.o")));
 
----------------
MaskRay wrote:
> This appears to fix another bug.
> This appears to fix another bug.

It appears that crtn.o should be handled in the same manner as crti.o further up in Solaris.cpp.

https://blogs.oracle.com/solaris/post/new-crt-objects-or-what-are-crt-objects


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124356/new/

https://reviews.llvm.org/D124356



More information about the cfe-commits mailing list