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

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 25 10:39:37 PDT 2017


davide added a subscriber: pcc.
davide added a comment.

FWIW, this is just an incarnation of a more general problem, i.e. the fact that the interaction between LTO and linker scripts is/wasn't well studied in the past.
I guess we may want to fix this case, but I'm afraid several other problems will arise.
I wonder when/where we should draw the line between supporting arbitrary interactions between the two or just suggesting people to pass `-fno-lto` to an handful of files in their link, as GCC seems to be doing.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65252
(also, cc @pcc for thoughts)


https://reviews.llvm.org/D37059





More information about the llvm-commits mailing list