[PATCH] D37059: [ELF] - LTO: do not optimize away symbols accessed from linkerscript.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 12 11:07:36 PDT 2017


pcc added inline comments.


================
Comment at: ELF/LTO.cpp:170
       undefine(Sym);
     R.LinkerRedefined = Config->RenamedSymbols.count(Sym);
   }
----------------
I think we should be setting `LinkerRedefined` to true for these symbols instead of `VisibleToRegularObj`, otherwise the optimizer may IPO past them.


https://reviews.llvm.org/D37059





More information about the llvm-commits mailing list