Fix PE linker wibbles
authorTamar Christina <tamar@zhox.com>
Thu, 4 Oct 2018 17:50:04 +0000 (13:50 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 5 Oct 2018 02:27:54 +0000 (22:27 -0400)
commit98daa34c73ed2a4bccc4cfb6608c6a614da61f8c
tree0bb50573ed507ee6c85a6ef1557d7df1d78a126e
parentbaec3586576c1eed0d6fab32ef34293484cf5a2e
Fix PE linker wibbles

Fix some various issues that popped up because the linker now doesn't
load import libraries for longer than it needs to.

These are all use after free issues.

Test Plan: ./validate

Reviewers: bgamari, erikd, simonmar

Reviewed By: bgamari

Subscribers: simonpj, rwbarton, carter

Differential Revision: https://phabricator.haskell.org/D5175
rts/Linker.c
rts/linker/PEi386.c