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

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 18 12:27:59 PDT 2017


ruiu added inline comments.


================
Comment at: ELF/LTO.cpp:165
+
+    // We tell LTO to not apply IPO for following symbols:
+    // 1) Aliased (with --defsym) or wrapped (with --wrap) symbols.
----------------
IPO -> interprocedural optimization


================
Comment at: ELF/LTO.cpp:167
+    // 1) Aliased (with --defsym) or wrapped (with --wrap) symbols.
+    // 2) Symbols redefined in linkerscript.
+    // We have to do this because otherwise LTO can inline these symbols
----------------
Linkerscript is not a word. It's a linker script.

  2) Symbols  redefined in linker scripts.


https://reviews.llvm.org/D37059





More information about the llvm-commits mailing list