[GHC] #11072: Runtime linker doesn't search for DLLs referenced in import libraries on Windows

GHC ghc-devs at haskell.org
Mon Apr 4 09:51:24 UTC 2016


#11072: Runtime linker doesn't search for DLLs referenced in import libraries on
Windows
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  Phyx-
            Type:  feature request   |               Status:  patch
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  7.10.2-rc2
  (Linking)                          |
      Resolution:                    |             Keywords:
Operating System:  Windows           |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Runtime crash     |            Test Case:  T11072gcc
                                     |  T11072msvc
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1564
       Wiki Page:                    |  Phab:D1696
-------------------------------------+-------------------------------------

Comment (by Phyx-):

 Turns out the GCC import libraries contain mostly ASCII text and very
 little program code. What it does contain is invalid. So I reverted to an
 approach similar to what @Matt had except at the `Linker.c` level.

 Also while theoretically possible I haven't seen an import library
 pointing to more than one DLL at a time. So I removed the code to handle
 that to simplify things.

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


More information about the ghc-tickets mailing list