summaryrefslogtreecommitdiff
path: root/rts/Linker.c
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-01-04 15:57:46 -0500
committerBen Gamari <ben@smart-cactus.org>2021-01-06 10:44:58 -0500
commitc53c9d297b8c2342bd1cff5d2344da98d387fe69 (patch)
tree3036681ddcd5897c33116d0a8d3e458a06f34b6e /rts/Linker.c
parent26a928b8fdb1b4ccb75e8edb620b8cf12cb38621 (diff)
downloadhaskell-wip/T19159.tar.gz
rts/linker: Don't assume existence of dlinfowip/T19159
The native-code codepath uses dlinfo to identify memory regions owned by a loaded dynamic object, facilitating safe unload. Unfortunately, this interface is not always available. Add an autoconf check for it and introduce a safe fallback behavior. Fixes #19159.
Diffstat (limited to 'rts/Linker.c')
-rw-r--r--rts/Linker.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/rts/Linker.c b/rts/Linker.c
index 176127da24..6af70b4f91 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -1459,7 +1459,6 @@ mkOc( ObjectType type, pathchar *path, char *image, int imageSize,
oc->rx_m32 = m32_allocator_new(true);
#endif
- oc->l_addr = NULL;
oc->nc_ranges = NULL;
oc->dlopen_handle = NULL;