[GHC] #13093: Runtime linker chokes on object files created by MSVC++

GHC ghc-devs at haskell.org
Tue Feb 14 16:03:54 UTC 2017


#13093: Runtime linker chokes on object files created by MSVC++
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  Phyx-
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.2.1
       Component:  Runtime System    |              Version:  8.0.1
  (Linker)                           |
      Resolution:                    |             Keywords:
Operating System:  Windows           |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  GHCi crash        |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #13103            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 Merged 2f1017b924740e66f093b0baba62ac0b1528abf8,
 {{{
 commit 2f1017b924740e66f093b0baba62ac0b1528abf8
 Author: Tamar Christina <tamar at zhox.com>
 Date:   Tue Feb 14 09:44:53 2017 -0500

     Fix ExtraSymbols jump table on Windows.

     This corrects the `jump islands` calculations for Windows.  The code
 was
     incorrectly creating a new entry for every `usage` of a symbol instead
     of every used symbol. e.g. if a symbol is used 5 times it used to
 create
     5 jump islands. This is incorrect and not in line with what the `ELF`
     and `Mach-O` linkers do. Also since we allocate `n` spaces where `n`
 is
     number of symbols, we would quickly run out of space and abort.

     Test Plan: ./validate

     Reviewers: simonmar, hvr, erikd, bgamari, austin

     Reviewed By: bgamari

     Subscribers: thomie, #ghc_windows_task_force

     Differential Revision: https://phabricator.haskell.org/D3026
 }}}

 Phyx, does this resolve this issue?

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


More information about the ghc-tickets mailing list