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

GHC ghc-devs at haskell.org
Fri Nov 13 13:28:34 UTC 2015


#11072: Runtime linker doesn't search for DLLs referenced in import libraries on
Windows
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  Phyx-
            Type:  bug               |               Status:  new
        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:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Matt):

 I have been playing with this for few months now and i have my own patched
 GHC that can in rather hackish way resolve real DLL name from import
 library. It does so by guessing it from 2 symbol names that only seem to
 appear in import libraries. However its not 100% accurate.

 I have been looking for better way to find that info and and so far i
 found that in all import libraries DLL name seems to be in {{{.idata$7}}}
 section in some random object file. Also most object files have
 {{{.idata$7}}} section, but all but that one have either no data
 associated with it or some have just NULLs stored in there.

 I'm now working on little test program that will parse import library and
 try to extract DLL name from {{{.idata$7}}} section.

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


More information about the ghc-tickets mailing list