[llvm-bugs] [Bug 32276] New: LinkOnceAnyLinkage doesn't seem to be handled well within ORC JIT (regression)

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 15 01:20:45 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=32276

            Bug ID: 32276
           Summary: LinkOnceAnyLinkage doesn't seem to be handled well
                    within ORC JIT (regression)
           Product: new-bugs
           Version: 4.0
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: georgellvmb at oss3d.com
                CC: llvm-bugs at lists.llvm.org

There seems to be a regression in how LinkOnceAnyLinkage is handled in ORC JIT. 

Specifically, inner symbols of the module are passed to the Resolver's
findSymbolInLogicalDylib, which then cannot resolve them via
compilerLayer.findSymbol(name,false) 

(the above call returns nullptr)

This happens for symbols that have LinkOnceAnyLinkage. Iterating over the
module symbols (after module loading) and changing their linkage to
ExternalLinkage or InternalLinkage prevents symbols from being passed to
findSymbolInLogicalDylib, and things work as before.

This problem did not occur with LLVM 3.9.1 release.

-- 
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/20170315/90ea66f3/attachment.html>


More information about the llvm-bugs mailing list