#3333: GHCi doesn't load weak symbols
--------------------------------------+-------------------------------------
    Reporter:  heatsink               |        Owner:              
        Type:  bug                    |       Status:  new         
    Priority:  normal                 |    Milestone:  6.14.1      
   Component:  GHCi                   |      Version:  6.10.4      
    Keywords:  weak, dynamic loading  |   Difficulty:  Unknown     
          Os:  Linux                  |     Testcase:              
Architecture:  x86                    |      Failure:  None/Unknown
--------------------------------------+-------------------------------------

Comment(by hgolden):

 Replying to [ticket:3333 heatsink]:
 > GHCi fails to load modules with weak symbols.

 I want to clarify the current situation. GHCi's linker loads modules with
 weak symbols. However, it doesn't put the weak symbols into the symbol
 table.

 It would be easy to add weak symbols to the symbol table, but I'm not sure
 what the correct semantics should be. Perhaps weak symbols should be
 subordinated to global (STB_GLOBAL) and local (STB_LOCAL) symbols. Is this
 sufficient? (I haven't studied the documentation yet.)

 Question: Is it possible to have the same weak symbol defined in more than
 one module? If so, how does the linker choose?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3333#comment:6>
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