Have the RTS linker search symbols in the originating windows binary.
authorFacundo Domínguez <facundo.dominguez@tweag.io>
Tue, 19 Aug 2014 02:50:33 +0000 (21:50 -0500)
committerAustin Seipp <austin@well-typed.com>
Tue, 19 Aug 2014 04:26:19 +0000 (23:26 -0500)
commitd2f01000ac07678b971743ebf1650837aad19b9f
tree3288dec145df9f1587f7cfd7bb8557deeae83ff3
parent0138110125400581dc9872dedfcb21bd50b372f1
Have the RTS linker search symbols in the originating windows binary.

Summary: In initLinker, this patch adds the handle of the module corresponding to the program binary to the list of DLL handles that lookupSymbol uses to search for symbols.

Test Plan: validate

Reviewers: simonmar, austin

Reviewed By: simonmar, austin

Subscribers: phaskell, simonmar, relrod, ezyang, carter

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

GHC Trac Issues: #9382
rts/Linker.c
testsuite/tests/rts/all.T