Allocate bss section within proper range of other sections
Allocate bss section within proper range of other sections:
- when +RTS -xp is passed, allocate it contiguously as we did for jump islands
- when we mmap the code to lower 2Gb, we should allocate bss section there too
DYNAMIC_GHC_PROGRAMS = NO DYNAMIC_BY_DEFAULT = NO
TEST="T15729" make test passed in both linux and macos.
Also test in a use case where we used to encouter error like:
ghc-iserv-prof: R_X86_64_PC32 relocation out of range: (noname) = b90282ba
and now, everything works fine.
Reviewers: simonmar, bgamari, angerman, erikd
Reviewed By: simonmar
Subscribers: rwbarton, carter
GHC Trac Issues: Trac #15729
Differential Revision: https://phabricator.haskell.org/D5219