[llvm-bugs] [Bug 40733] New: lld-link does not preserve @llvm.used symbols with -opt:ref

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 14 14:59:25 PST 2019


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: unassignedbugs at nondot.org
          Reporter: llvm at inglorion.net
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190214/494373fd/attachment.html>


More information about the llvm-bugs mailing list