[GHC] #11445: Turn on SplitSections by default
GHC
ghc-devs at haskell.org
Mon Jan 18 03:19:17 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):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by refold):
The gold linker only supports ELF, so it can't be used on OS X and
Windows.
GNU ld didn't support `--gc-sections` for PE/COFF
[https://sourceware.org/git/gitweb.cgi?p=binutils-
gdb.git;h=0f088b2a9417b1d4ed597849ffa671eba25f5051 until recently], and
this feature [https://ghc.haskell.org/trac/ghc/ticket/8405#comment:20
still appears to be buggy] according to olsner. So we'll need to fix those
bugs in ld to make `-split-sections` work on Windows.
According to the links you provided, OS X ld doesn't support `--gc-
sections` at all, but maybe the `-dead_strip` option could be used.
So on ELF platforms `-split-sections` should be ready to replace `-split-
objs`; further testing and investigation is necessary on Windows and OS X.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11445#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list