[GHC] #12913: Port SplitSections to Windows

GHC ghc-devs at haskell.org
Wed Mar 22 17:40:02 UTC 2017


#12913: Port SplitSections to Windows
-------------------------------------+-------------------------------------
        Reporter:  olsner            |                Owner:  (none)
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
  (Linking)                          |
      Resolution:                    |             Keywords:
Operating System:  Windows           |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #8405             |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Phyx-):

 @Awson.

 I have `-Wa,-mbig-objs` setup in every call, and I'm using binutils 2.28
 which should have your patched included and I'm using a linker script to
 merge the sections back together. But I'm still getting an invalid exec
 format error from Windows when I try to run the exe.

 My assumption is that `-gc-sections` is removing a section it shouldn't
 be. Before I dive too much into this, did I miss a step? Since you seem to
 have a working version.

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


More information about the ghc-tickets mailing list