[PATCH] D45536: Do not keep shared symbols to garbage-collected eliminated DSOs.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 16 17:53:51 PDT 2018


pcc added inline comments.


================
Comment at: lld/trunk/ELF/Driver.cpp:1070
+      if (!S->getFile<ELFT>().IsNeeded)
+        replaceSymbol<Undefined>(S, nullptr, S->getName(), STB_WEAK, S->StOther,
+                                 S->Type);
----------------
Does it work to replace these with absolute symbols with value 0?


Repository:
  rL LLVM

https://reviews.llvm.org/D45536





More information about the llvm-commits mailing list