[GHC] #7056: GHCi loadArchive "libiconv.a":failed Unknown PEi386 section name `.drectve'

GHC ghc-devs at haskell.org
Sun Jul 14 04:59:14 CEST 2013


#7056: GHCi loadArchive "libiconv.a":failed Unknown PEi386 section name `.drectve'
----------------------------+----------------------------------------------
        Reporter:  songpp   |            Owner:
            Type:  bug      |           Status:  new
        Priority:  high     |        Milestone:  7.6.2
       Component:  GHCi     |          Version:  7.4.1
      Resolution:           |         Keywords:  loadArchive Unknown PEi386
Operating System:  Windows  |     Architecture:  x86
 Type of failure:  GHCi     |       Difficulty:  Unknown
  crash                     |       Blocked By:  3658
       Test Case:           |  Related Tickets:  #2487, #7103
        Blocking:           |
----------------------------+----------------------------------------------

Comment (by thoughtpolice):

 I looked into this. See http://msdn.microsoft.com/en-
 us/library/ms809762.aspx

 > The `.drective` section only appears in OBJ files. It contains text
 representations of commands for the linker. For example, in any OBJ I
 compile with the Microsoft compiler, the following strings appear in the
 `.drectve` section...

 This is with Microsoft compilers. Presumably, MinGW or something is doing
 this now too? Some searching suggests `ld` generally doesn't understand
 the directives placed in `.drectve`, although maybe something changed or
 it puts something else there.

 It's probably just best to ignore the section (a simple fix); I'll try to
 get GCC 4.8 on my Windows build machine and reproduce it.

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



More information about the ghc-tickets mailing list