Issue |
136493
|
Summary |
lto and optimised out symbols
|
Labels |
new issue
|
Assignees |
|
Reporter |
ilobilo
|
I'm compiling and linking my project with full lto.
During runtime, the executable reads and parses its own symbol table and uses those entries for loading shared objects. Unfortunately, lto optimises out some of those symbols, so those objects can not be relocated and loaded. I can mark each unresolved symbol with ``[[gnu::used]]``, but I don't have access to many of them, as they are from external projects.
I'm wondering, is there a way to force the linker to not remove/optimise out symbols from the target executable?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs