summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lt_path.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/lt_path.c b/src/core/lt_path.c
index 2017a95..0991e95 100644
--- a/src/core/lt_path.c
+++ b/src/core/lt_path.c
@@ -409,6 +409,11 @@ static struct lt_modctx * lt_dlopen_locked(
}
}
+ /* symbol table already preloaded? */
+ for (modctx=lt_modv_head; symtbl && modctx; modctx=modctx->mnext)
+ if (modctx->symtbl == symtbl)
+ return modctx;
+
/* module or symtbl entry */
modctx = lt_modv_next;
modctx->symtbl = symtbl;