[GHC] #5435: GHCi linker should run constructors for linked libraries

GHC cvs-ghc at haskell.org
Wed Aug 31 13:07:22 CEST 2011


#5435: GHCi linker should run constructors for linked libraries
---------------------------------+------------------------------------------
    Reporter:  pumpkin           |        Owner:              
        Type:  bug               |       Status:  new         
    Priority:  normal            |    Milestone:              
   Component:  Compiler          |      Version:  7.2.1       
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:              
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by simonmar):

 see also #5386

 Note that if you put the constructor in a shared library (.so or .dll)
 then the constructor will be run when the library is loaded, because GHCi
 invokes the system linker for these.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5435#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list