summaryrefslogtreecommitdiff
path: root/rts/LinkerInternals.h
diff options
context:
space:
mode:
authorBartosz Nitka <niteria@gmail.com>2017-09-18 07:53:56 -0700
committerBartosz Nitka <niteria@gmail.com>2017-09-18 09:17:31 -0700
commitcdaf5f2027ea9678e9f92e9140c79da2daa78360 (patch)
treef5faf4681779da5f65352639fa85354c97b91c17 /rts/LinkerInternals.h
parent2258a2936bbeebcf671e19e8d6408b3a611c329d (diff)
downloadhaskell-cdaf5f2027ea9678e9f92e9140c79da2daa78360.tar.gz
[RTS] Add getObjectLoadStatus
This adds a function to the RTS linker API which lets the user check the status of dynamically linked objects. It was initially proposed by @afarmer in D2068. It's useful for testing the linker and also for detecting retention problems in production. It takes a path, because it's easier to use path as key instead of producing some stable handle. It returns an enum instead of bool, because I see no reason for destroying information. All the complexity is already out in the open, so there's nothing to save the users from. Test Plan: ./validate Reviewers: simonmar, Phyx, bgamari, austin, erikd Reviewed By: Phyx, bgamari Subscribers: rwbarton, afarmer, thomie Differential Revision: https://phabricator.haskell.org/D3963
Diffstat (limited to 'rts/LinkerInternals.h')
-rw-r--r--rts/LinkerInternals.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/rts/LinkerInternals.h b/rts/LinkerInternals.h
index 2e8491789d..dd17be0992 100644
--- a/rts/LinkerInternals.h
+++ b/rts/LinkerInternals.h
@@ -20,15 +20,6 @@
typedef void SymbolAddr;
typedef char SymbolName;
-/* See Linker.c Note [runtime-linker-phases] */
-typedef enum {
- OBJECT_LOADED,
- OBJECT_NEEDED,
- OBJECT_RESOLVED,
- OBJECT_UNLOADED,
- OBJECT_DONT_RESOLVE
-} OStatus;
-
/* Indication of section kinds for loaded objects. Needed by
the GC for deciding whether or not a pointer on the stack
is a code pointer.