[llvm-bugs] [Bug 34238] New: LTO is optimizing away symbols referenced from linker scripts
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Aug 18 14:47:35 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34238
Bug ID: 34238
Summary: LTO is optimizing away symbols referenced from linker
scripts
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: phosek at chromium.org
CC: llvm-bugs at lists.llvm.org
LTO doesn't see the symbols that are referenced from linker scripts, and if
there are no other references to these symbols, it optimizes them away as
unused. We need to teach LLD to pass the information about these symbols to LTO
backend same as it already does for __start_* and __stop_* symbols.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170818/5a3f167b/attachment.html>
More information about the llvm-bugs
mailing list