[GHC] #11445: Turn on SplitSections by default

GHC ghc-devs at haskell.org
Fri Dec 2 11:12:48 UTC 2016


#11445: Turn on SplitSections by default
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                Owner:
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:  8.2.1
       Component:  Build System      |              Version:  8.0.1-rc1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:  11285
 Related Tickets:                    |  Differential Rev(s):  Phab:D1800
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by awson):

 Scripts attached do section merging on Windows.

 Caveat:

 As far as I remember, when I worked on this (almost year ago) `cabal` (or
 was it GHC?) didn't respect linker flags when building library's prelinked
 object file (for GHCi). I may be wrong or `cabal` may be changed since
 that time, but if you will try to use attached linker scripts with
 existing binutils, please make sure `ld` receives the option, feeding the
 linker script to it. If this problem is still there, please ask `cabal`
 (or GHC?) maintainers to fix it. Also it may be a problem that we need use
 different linker scripts for different scenarios: "x" for building
 executables/dlls and "xr" for building prelinked object files.

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


More information about the ghc-tickets mailing list