ghci: Load static objects in batches

Authored by bgamari on Jun 14 2019, 3:53 PM.

Description

ghci: Load static objects in batches

Previously in the case where GHC was dynamically linked we would load
static objects one-by-one by linking each into its own shared object and
dlopen'ing each in order. However, this meant that the link would fail
in the event that the objects had cyclic symbol dependencies.

Here we fix this by merging each "run" of static objects into a single
shared object and loading this.

Fixes Trac #13786 for the case where GHC is dynamically linked.

Details

Committed
Marge Bot <ben+marge-bot@smart-cactus.org>Sun, Jun 23, 4:19 PM
Parents
rGHCade3db5392d0: testsuite: Test for #13786
Branches
Unknown
Tags
Unknown
Marge Bot <ben+marge-bot@smart-cactus.org> committed rGHC5a502cd1431b: ghci: Load static objects in batches (authored by bgamari).Sun, Jun 23, 4:19 PM