#4210: LLVM: Dynamic Library Support
---------------------------------+------------------------------------------
Reporter: dterei | Owner: dterei
Type: feature request | Status: new
Priority: normal | Component: Compiler (LLVM)
Version: 6.13 | Keywords:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: Runtime crash
---------------------------------+------------------------------------------
The LLVM backend doesn't support dynamic libraries at the moment.
LLC supports a flag called '-relocation-mode' that can be used to support
this, it takes the following options:
{{{
default - let the target choose.
static - static code.
pic - PIC code.
dynamic-no-pic - Dynamic references but static code
}}}
This roughly corresponds to GHC -fPIC, and -dynamic flags.
Linux: Simply adding the correct flag to LLC seems to work fine.
Mac OSX, Windows: Adding the correct flag doesn't work at all, all
programs segfault.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4210>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs