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: #12913 Differential Revision: https://phabricator.haskell.org/D3383
Showing
- compiler/llvmGen/LlvmCodeGen/Data.hs 15 additions, 5 deletionscompiler/llvmGen/LlvmCodeGen/Data.hs
- compiler/nativeGen/PprBase.hs 20 additions, 11 deletionscompiler/nativeGen/PprBase.hs
- docs/users_guide/8.4.1-notes.rst 3 additions, 0 deletionsdocs/users_guide/8.4.1-notes.rst
- driver/utils/merge_sections_pe.ld 26 additions, 0 deletionsdriver/utils/merge_sections_pe.ld
- mk/config.mk.in 1 addition, 1 deletionmk/config.mk.in
- rules/build-package-way.mk 7 additions, 1 deletionrules/build-package-way.mk
driver/utils/merge_sections_pe.ld
0 → 100644
Please register or sign in to comment