#4210: LLVM: Dynamic Library Support
---------------------------------+------------------------------------------
    Reporter:  dterei            |        Owner:  dterei       
        Type:  feature request   |       Status:  new          
    Priority:  normal            |    Milestone:  7.4.1        
   Component:  Compiler (LLVM)   |      Version:  6.13         
    Keywords:                    |     Testcase:               
   Blockedby:                    |   Difficulty:               
          Os:  Unknown/Multiple  |     Blocking:               
Architecture:  Unknown/Multiple  |      Failure:  Runtime crash
---------------------------------+------------------------------------------
Description changed by dterei:

Old description:

> 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.

New description:

 dynamic library status:
 {{{
  * Supported: Linux 64bit, Mac OSX 64bit
  * Unsupported: Linux 32bit, Mac OSX 32bit, Windows 32bit
 }}}

 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#comment:18>
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

Reply via email to