Implement split-sections support for windows.

Authored by Phyx on Mar 26 2017, 1:05 PM.

Description

Implement split-sections support for windows.

Summary:
Initial implementation of split-section on Windows.

This also corrects section namings and uses the platform
convention of $ instead of . to separate sections.

Implementation is based on @awson's patches to binutils.

Binutils requires some extra help when compiling the libraries
for GHCi usage. We drop the -T and use implicit scripts to amend
the linker scripts instead of replacing it.

Because of these very large GHCi object files, we need big-obj support,
which will be added by another patch.

Test Plan: ./validate

Reviewers: awson, austin, bgamari

Subscribers: dfeuer, rwbarton, thomie, snowleopard, #ghc_windows_task_force

GHC Trac Issues: Trac #12913

Differential Revision: https://phabricator.haskell.org/D3383

Details

Committed
PhyxJul 7 2017, 6:02 PM
Pushed
PhyxJul 8 2017, 4:05 AM
Differential Revision
D3383: Implement split-sections support for windows.
Parents
rGHCDIFF99adcc8804e9: Typos in comments [ci skip]
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/13060