From 0e70a1641991cee3976794f5eaf2b523c7eb8494 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Tue, 3 Sep 2013 03:34:33 +0000 Subject: [PATCH] Do not add entry symbol to the dead strip list. Partially revert r189776. llvm-svn: 189778 --- lld/include/lld/Core/LinkingContext.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/lld/include/lld/Core/LinkingContext.h b/lld/include/lld/Core/LinkingContext.h index d7831218d5ac..0740fc55fc45 100644 --- a/lld/include/lld/Core/LinkingContext.h +++ b/lld/include/lld/Core/LinkingContext.h @@ -185,8 +185,6 @@ public: // the symbol if your platform supports dead-stripping, so that the symbol // will not be removed from the output. void setEntrySymbolName(StringRef name) { - // Entry function have to be resolved as an undefined symbol. - addInitialUndefinedSymbol(name); _entrySymbolName = name; }