summaryrefslogtreecommitdiffhomepage
path: root/src/driver/slbt_driver_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-10 22:27:12 +0000
committermidipix <writeonce@midipix.org>2024-03-11 00:48:04 +0000
commite2b5823ceac5e29c6ece483f179207720a7c1dd6 (patch)
treeda42b73a3040b123d9958f16b57ef4ec7fa626e4 /src/driver/slbt_driver_ctx.c
parentc43e0b82a581d2c8bb35ebab96df8a1d2911f60a (diff)
downloadslibtool-e2b5823ceac5e29c6ece483f179207720a7c1dd6.tar.bz2
slibtool-e2b5823ceac5e29c6ece483f179207720a7c1dd6.tar.xz
slbt_ectx_get_exec_ctx(): dl[pre]open: first vector member must be virtual.
Diffstat (limited to 'src/driver/slbt_driver_ctx.c')
-rw-r--r--src/driver/slbt_driver_ctx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index fc242c0..b7c7b4c 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -885,6 +885,10 @@ int slbt_lib_get_driver_ctx(
if (cctx.tag == SLBT_TAG_UNKNOWN)
cctx.tag = SLBT_TAG_CC;
+ /* dlopen/dlpreopen: first vector member is a virtual archive */
+ if (ndlopen)
+ ndlopen++;
+
/* driver context */
if (!(ctx = slbt_driver_ctx_alloc(fdctx,&cctx,&sargv,objlistv,envp,ndlopen)))
return slbt_lib_get_driver_ctx_fail(0,meta);