[GHC] #8039: RTS linker: unloadObj() does not actually unload the code
GHC
ghc-devs at haskell.org
Wed Sep 4 16:41:20 CEST 2013
#8039: RTS linker: unloadObj() does not actually unload the code
--------------------------------------+------------------------------------
Reporter: simonmar | Owner: simonmar
Type: task | Status: closed
Priority: high | Milestone: 7.8.1
Component: Runtime System | Version: 7.6.3
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: rts/linker_unload | Blocked By:
Blocking: | Related Tickets:
--------------------------------------+------------------------------------
Comment (by heisenbug):
Replying to [comment:16 simonmar]:
> The big missing piece with unloading of .so's is knowing their
boundaries in memory
[http://eli.thegreenplace.net/2011/08/25/load-time-relocation-of-shared-
libraries Eli Bendersky's article] suggests to use the
[http://linux.die.net/man/3/dl_iterate_phdr dl_iterate_phdr] function for
finding information about loaded libraries. Seems to be linux only. There
is a [http://stackoverflow.com/questions/10009043/dl-iterate-phdr-
equivalent-on-mac workaround on OSX], though, on !StackOverflow.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8039#comment:17>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list