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

GHC ghc-devs at haskell.org
Wed Aug 19 23:33:07 UTC 2015


#9907: "Unknown PEi386 section name `.text$printf'" error in GHCi on Windows
-------------------------------------+-------------------------------------
        Reporter:  mmikolajczyk      |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:  7.10.1
       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                       |
-------------------------------------+-------------------------------------
Changes (by Phyx-):

 * cc: Phyx- (added)


Comment:

 I have been trying something similar, but then I encountered another
 error:
 `unhandled PEi386 relocation type 3`. Looking at the code there is indeed
 no case for relocation type 3 which unless I'm mistaken is:

     IMAGE_REL_AMD64_ADDR32NB    0x0003  The 32-bit address without an
 image base (RVA).

 But curiously while trying to understand what the linker is doing (and I
 may have the wrong idea since I'm new to this part) I see under the
 `x86_64` cases this `case 17: /* R_X86_64_32S */`.

 However in the PE doc I can't find any relocation type `0x0011`. So am I
 looking at the wrong place or should this have been `0x0003`?

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


More information about the ghc-tickets mailing list