[llvm-bugs] [Bug 32798] New: ThinLTO fails to consider module inline asm refs as gc roots

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Apr 25 18:45:07 PDT 2017


http://bugs.llvm.org/show_bug.cgi?id=32798

            Bug ID: 32798
           Summary: ThinLTO fails to consider module inline asm refs as gc
                    roots
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Interprocedural Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: peter at pcc.me.uk
                CC: llvm-bugs at lists.llvm.org

$ cat mod-asm.cpp 
int main() {}
__asm__(".quad foo");
$ cat mod-asm2.cpp 
int foo = 1;
$ ra/bin/clang mod-asm.cpp mod-asm2.cpp -fuse-ld=lld
$ ra/bin/clang -flto=thin mod-asm.cpp mod-asm2.cpp -fuse-ld=lld
[...]/bin/ld.lld: error: undefined symbol: foo
>>> referenced by mod-asm.cpp
>>>               lto.tmp:(.text+0x0)
clang-5.0: error: linker command failed with exit code 1 (use -v to see
invocation)

-- 
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/20170426/5a3d7cfb/attachment.html>


More information about the llvm-bugs mailing list