Fix linker_unload now that we are running constructors in the linker (#8291)
authorSimon Marlow <marlowsd@gmail.com>
Sun, 22 Sep 2013 12:08:01 +0000 (13:08 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 23 Sep 2013 09:58:35 +0000 (10:58 +0100)
commit1908195261ccf16b0f3d2e77ebd5cd40c9e29cbc
treed0daabd85293a3a12749d7a277f2526576c851df
parentf5879acd018494b84233f26fba828ce376d0f81d
Fix linker_unload now that we are running constructors in the linker (#8291)

See also #5435.

Now we have to remember the the StablePtrs that get created by the
module initializer so that we can free them again in unloadObj().
compiler/deSugar/DsForeign.lhs
includes/rts/Linker.h
rts/Linker.c
rts/LinkerInternals.h