Don't use ld.gold when building libraries for GHCi
authorSimon Marlow <marlowsd@gmail.com>
Wed, 21 Feb 2018 14:16:00 +0000 (14:16 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 21 Feb 2018 17:03:01 +0000 (17:03 +0000)
commit0a3629af36e89de73b7012c726fd533c4c5460fb
tree98c109e2168f6c9d80eee23b08a35bbf05ddd33b
parenta032ff77210736df45cf49820c882f40dc10230e
Don't use ld.gold when building libraries for GHCi

Summary:
ld.gold is buggy when using -r and a linker script.  See upstream bug
https://sourceware.org/bugzilla/show_bug.cgi?id=22266

This has been causing various brokenness for the GHC runtime linker,
where we load these broken object files.

Test Plan: Test program from #14675

Reviewers: bgamari, RyanGlScott, alpmestan, hvr, erikd

Subscribers: rwbarton, thomie, erikd, carter

GHC Trac Issues: #14328, #14675, #14291

Differential Revision: https://phabricator.haskell.org/D4431
aclocal.m4
configure.ac
mk/config.mk.in
rules/build-package-way.mk