rts/linker: Use mmapForLinker to map PLT

The PLT needs to be located within a close distance of
the code calling it under the small memory model.

Fixes #16784.
19 jobs for !1139 with wip/T16784 in 486 minutes and 32 seconds (queued for 2 seconds)
detached
Status Job ID Name Coverage
  Lint
passed #95744
lint
ghc-linters

00:00:19

passed #95745
lint
lint-submods-mr

00:00:18

 
  Build
passed #95747
x86_64-linux
hadrian-ghc-in-ghci

00:15:03

failed #95749
x86_64-linux allowed to fail
release-x86_64-linux-deb9-dwarf

01:56:41

passed #95748
x86_64-linux
validate-x86_64-linux-deb9-debug

01:22:54

failed #95746
x86_64-linux allowed to fail
validate-x86_64-linux-deb9-hadrian

01:59:32

 
  Full Build
failed #95751
aarch64-linux allowed to fail
validate-aarch64-linux-deb9

01:11:02

passed #95752
x86_64-linux
validate-i386-linux-deb9

01:36:39

passed #95750
x86_64-darwin
validate-x86_64-darwin

00:59:06

passed #95753
x86_64-linux
validate-x86_64-linux-deb9

01:19:03

passed #95755
x86_64-linux
validate-x86_64-linux-deb9-integer-simple

01:45:39

passed #95754
x86_64-linux
validate-x86_64-linux-deb9-llvm

02:18:44

passed #95756
x86_64-linux
validate-x86_64-linux-deb9-unreg

03:15:54

passed #95757
x86_64-linux
validate-x86_64-linux-fedora27

01:24:28

failed #95759
x86_64-windows allowed to fail
validate-x86_64-windows

02:20:59

passed #95758
x86_64-windows
validate-x86_64-windows-hadrian

01:39:29

 
  Cleanup
passed #95760
x86_64-darwin
cleanup-darwin

00:00:14

 
  Packaging
passed #95761
x86_64-linux
doc-tarball

00:08:36

 
  Hackage
manual #95762
x86_64-linux allowed to fail manual
hackage
 
Name Stage Failure
failed
validate-x86_64-linux-deb9-hadrian Build
Exit code: 1
Stderr:
)


Uploading artifacts...
junit.xml: found 1 matching files
Uploading artifacts to coordinator... ok
id=95746 responseStatus=201 Created token=2GJY9e_x
ERROR: Job failed: exit code 1
failed
validate-aarch64-linux-deb9 Full Build
$ cp -Rf $HOME/.cabal cabal-cache
Uploading artifacts...
WARNING: ghc-*.tar.xz: no matching files
WARNING: junit.xml: no matching files
ERROR: No files to upload
Uploading artifacts...
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
validate-x86_64-windows Full Build
junit.xml: found 1 matching files                  
WARNING: Failed to load system CertPool:crypto/x509: system root pool is not available on Windows
Uploading artifacts to coordinator... ok
id=95759 responseStatus=201 Created token=d1Q_JdiF
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=3492 revision=1f513601 version=11.10.1
junit.xml: found 1 matching files

WARNING: Failed to load system CertPool:crypto/x509: system root pool is not available on Windows
Uploading artifacts to coordinator... ok
id=95759 responseStatus=201 Created token=d1Q_JdiF
ERROR: Job failed: exit status 2
failed
release-x86_64-linux-deb9-dwarf Build
$ cp -Rf $HOME/.cabal cabal-cache
Uploading artifacts...
ghc-*.tar.xz: found 1 matching files
junit.xml: found 1 matching files

Uploading artifacts to coordinator... ok
id=95749 responseStatus=201 Created token=gkERzyGu
Uploading artifacts...
junit.xml: found 1 matching files

Uploading artifacts to coordinator... ok
id=95749 responseStatus=201 Created token=gkERzyGu
ERROR: Job failed: exit code 1