<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
@@ -184,9 +184,7 @@ public:<br>
   // Set the entry symbol name. You may also need to call addDeadStripRoot() for<br>
   // the symbol if your platform supports dead-stripping, so that the symbol<br>
   // will not be removed from the output.<br>
-  void setEntrySymbolName(StringRef name) {<br>
-    // Entry function have to be resolved as an undefined symbol.<br>
-    addInitialUndefinedSymbol(name);<br>
+  virtual void setEntrySymbolName(StringRef name) {<br>
     _entrySymbolName = name;<br>
   }<br></blockquote><div><br></div><div>You just removed addInitialUndefinedSymbol() and did not add the equivalent code to anywhere, so entry symbol is not added to dead stripping root. As a result the linker is now producing an incorrect output at least in -flavor link mode. I'll resurrect this code as well as adding a test to find this kind of breakage.</div>

</div></div></div>