[LLVMbugs] [Bug 23228] New: RuntimeDyldCOFF should handle relocations for external symbols

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 14 12:00:42 PDT 2015


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

            Bug ID: 23228
           Summary: RuntimeDyldCOFF should handle relocations for external
                    symbols
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: Generic Execution Engine Support
          Assignee: unassignedbugs at nondot.org
          Reporter: lhames at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

RuntimeDyldCOFF does not currently handle relocations for external symbols (see
addRelocationForSymbol).

In MCJIT and Orc this causes failures when bitcode containing references to
external symbols is JIT'd on Windows. Manoel Teixeira brought this to my
attention, as he has run in to it while bringing up a new JIT.

In the short term this can be worked around by pre-resolving symbols and baking
their addresses into the bitcode. Unfortunately that prevents use of object
caches, and in the future may be a barrier to JIT debugging support. In the
longer term it would be great to get support for external 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/20150414/73f8f901/attachment.html>


More information about the llvm-bugs mailing list