Dynamically link all loaded packages in new object
authorPeter Trommler <ptrommler@acm.org>
Sat, 7 Mar 2015 17:13:37 +0000 (11:13 -0600)
committerAustin Seipp <austin@well-typed.com>
Sat, 7 Mar 2015 17:13:37 +0000 (11:13 -0600)
commit0fcc454329c4e3e0dc4474412bff599d0e9bdfcd
treee82ad6ced849aabac0a11df129703f9e8f90dc86
parent76b1e11943d794da61d342c072a783862a9e2a1a
Dynamically link all loaded packages in new object

Summary:
As a result of fixing #8935 we needed to open shared libraries
with RTLD_LOCAL and so symbols from packages loaded earlier
cannot be found anymore. We need to include in the link all
packages loaded so far.

This fixes #10058

Test Plan: validate

Reviewers: hvr, simonmar, austin

Reviewed By: austin

Subscribers: rwbarton, thomie

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

GHC Trac Issues: #10058
compiler/ghci/Linker.hs