[GHC] #5620: Dynamic linking and threading does not work on Windows

GHC ghc-devs at haskell.org
Sun Oct 9 18:15:01 UTC 2016


#5620: Dynamic linking and threading does not work on Windows
-------------------------------------+-------------------------------------
        Reporter:  Lennart           |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.2.1
       Component:  Compiler          |              Version:  7.2.1
  (Linking)                          |
      Resolution:                    |             Keywords:
Operating System:  Windows           |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Runtime crash     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #10352            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by Phyx-):

 * cc: Phyx- (added)
 * architecture:  x86 => Unknown/Multiple
 * related:   => #10352
 * milestone:   => 8.2.1


Comment:

 @dobenour, what you suggested is basically the same as what @rassilon
 suggested 4 years ago.

 The answer is it won't work, this redirect would break for references to
 const data. and GHC makes use of it a lot. Addresses of closures are
 usually extracted directly from the export table of the rts. Having the
 redirects would give you the address of the redirect and not the data.

 So it won't work unless significant rewrites are done. But I believe SxS
 assemblies does hold the answer. It will be fixed once #10352 is fixed.

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


More information about the ghc-tickets mailing list