[PATCH] Entry point function should never be dead-stripped.
Shankar Kalpathi Easwaran
shankarke at gmail.com
Mon Aug 12 15:10:14 PDT 2013
================
Comment at: include/lld/Core/LinkingContext.h:181-182
@@ +180,4 @@
+ void setEntrySymbolName(StringRef name) {
+ // Entry function should never be dead-stripped.
+ _deadStripRoots.push_back(name);
+ _entrySymbolName = name;
----------------
Why is this done by default ? This should be only if we are deadstripping. I think a more cleaner interface would be to add a list of atoms that we dont want to deadstrip and add the entry symbol name in that by default.
http://llvm-reviews.chandlerc.com/D1366
More information about the llvm-commits
mailing list