https://bugs.llvm.org/show_bug.cgi?id=40733
Bug ID: 40733
Summary: lld-link does not preserve @llvm.used symbols with
-opt:ref
Product: lld
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: COFF
Assignee: unassignedb...@nondot.org
Reporter: l...@inglorion.net
CC: llvm-bugs@lists.llvm.org
Discovered when building Chromium: crbug.com/930886
We use @llvm.used to list symbols that are required to be preserved. We
translate this to COFF object files by emitting /include directives for those
symbols. However, when using LTO, these directives are generated after
directives have already been processed and so have no effect. This can cause
such symbols to be discarded when linking with -opt:ref.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs