Split SRT tables on Mac OS
Split off from https://phabricator.haskell.org/D1242#inline-11490
Mac uses subsections via symbols to allow dead code stripping, but doesn't seem to do anything special with the SRT tables (in HscMain.doCodeGen
), so either I'm missing something or Mac doesn't actually get much useful dead code stripping at all from the subsections feature because the SRT tables would keep everything alive.
Perhaps Mac should just always do SRT splitting.
Looks like you need to manually add -optl-Wl,-dead_strip
to test this, since that's not enabled by default.
Trac metadata
Trac field | Value |
---|---|
Version | 7.10.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |