[PATCH] D59264: [Driver] Support compiler-rt crtbegin.o/crtend.o for Linux
Petr Hosek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 12 22:36:05 PDT 2019
phosek marked an inline comment as done.
phosek added inline comments.
Comment at: clang/lib/Driver/ToolChains/Gnu.cpp:563
+ crtend = Args.hasArg(options::OPT_shared) || IsPIE || IsStaticPIE ?
+ "crtend_shared" : "crtend";
> I believe `crtbegin.o` `crtend.o` should just work. It is not necessary to use `crtbegin_shared.o` `crtend_shared.o`.
This is related to your comments on D28791, specifically that we should be using `crtbegin_shared.o` for `-shared` or `-pie` and `crtbegin.o` otherwise, is that not the case?
CHANGES SINCE LAST ACTION
More information about the cfe-commits