[PATCH] D59264: [Driver] Support compiler-rt crtbegin.o/crtend.o for Linux

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 12 22:17:34 PDT 2019


MaskRay added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Gnu.cpp:563
+          crtend = Args.hasArg(options::OPT_shared) || IsPIE || IsStaticPIE ?
+              "crtend_shared" : "crtend";
+          CmdArgs.push_back(ToolChain.getCompilerRTArgString(
----------------
I believe `crtbegin.o` `crtend.o` should just work. It is not necessary to use `crtbegin_shared.o` `crtend_shared.o`.


Repository:
  rC Clang

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

https://reviews.llvm.org/D59264





More information about the cfe-commits mailing list