[GHC] #9907: "Unknown PEi386 section name `.text$printf'" error in GHCi on Windows

GHC ghc-devs at haskell.org
Fri Sep 11 16:19:59 UTC 2015


#9907: "Unknown PEi386 section name `.text$printf'" error in GHCi on Windows
-------------------------------------+-------------------------------------
        Reporter:  mmikolajczyk      |                   Owner:  Phyx-
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:  7.10.3
       Component:  GHCi              |                 Version:  7.8.3
      Resolution:                    |                Keywords:
Operating System:  Windows           |            Architecture:  x86
 Type of failure:  GHCi crash        |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:  #7103, #10051,    |  Differential Revisions:  Phab:D671
  #7056, #8546                       |
-------------------------------------+-------------------------------------

Comment (by Phyx-):

 @thoughtpolice Yes there will be a fix :) I have changed the code to
 identify most of the sections based on the flags in the PE file instead of
 the section names. So we don't have to keep a list of white-listed
 sections, so it should be much more resilient to changes.

 The only sections still being ignored by names are a few debugging ones,
 but it's fine since those are reserved names and currently we don't do
 debug section relocations.

 I'm just trying to find where the constant 17 comes from, but from looking
 at the generated .s files, I think this might be a bug in GAS. I'll submit
 a diff this weekend after I finish checking if the related bug reports are
 also fixed :)

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


More information about the ghc-tickets mailing list