diff options
author | Ben Gamari <ben@smart-cactus.org> | 2021-01-04 15:57:46 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2021-01-06 10:44:58 -0500 |
commit | c53c9d297b8c2342bd1cff5d2344da98d387fe69 (patch) | |
tree | 3036681ddcd5897c33116d0a8d3e458a06f34b6e /rts/Linker.c | |
parent | 26a928b8fdb1b4ccb75e8edb620b8cf12cb38621 (diff) | |
download | haskell-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.c | 1 |
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; |