[LLVMbugs] [Bug 5862] New: JIT cannot load modules linked against Darwin frameworks

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Dec 23 12:23:56 PST 2009


           Summary: JIT cannot load modules linked against Darwin frameworks
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Target-Independent JIT
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: danchr at gmail.com
                CC: llvmbugs at cs.uiuc.edu

It is currently possible to load bitcode modules linked against native
libraries into the JIT, by loading the libraries in the Module::getLibraries()
list. This works for modules compiled with ‘llvm-ld’. 

However, if the module was linked against any frameworks, the load will fail.
While this is experienced using the JIT, the problems are mostly elsewhere:
1) ‘llvm-ld’ does not store frameworks passed in e.g. ‘-framework
Cocoa’ in the module. Such arguments are merely passed to the native linker,
if called.
2) ‘libLLVMSystem’ has no support for loading frameworks.

I've been hacking on allowing Unladen Swallow to load built-in extensions
compiled as bitcode rather than native code. Without support for loading
frameworks, it will be hard to get it to work on Darwin.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list