summaryrefslogtreecommitdiffhomepage
path: root/src/logic
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/logic
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/logic')
-rw-r--r--src/logic/slbt_exec_ctx.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c
index af45a93..2e0dbbf 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -206,7 +206,6 @@ int slbt_ectx_get_exec_ctx(
struct slbt_exec_ctx_impl * ictx;
struct slbt_driver_ctx_impl * idctx;
struct slbt_error_info** errinfp;
- uint64_t fmask;
char ** parg;
char ** src;
char ** dst;
@@ -632,23 +631,17 @@ int slbt_ectx_get_exec_ctx(
/* dlopen, dlpreopen */
if ((dlopenv = idctx->dlopenv), (dlactxv = ictx->dlactxv)) {
- fmask = SLBT_DRIVER_DLPREOPEN_FORCE;
- fmask |= SLBT_DRIVER_DLPREOPEN_SELF;
- fmask |= SLBT_DRIVER_DLOPEN_FORCE;
-
- if (dctx->cctx->drvflags & fmask) {
- if (slbt_ar_get_varchive_ctx(dctx,dlactxv) < 0)
- return slbt_ectx_free_exec_ctx_impl(
- ictx,
- SLBT_NESTED_ERROR(dctx));
+ if (slbt_ar_get_varchive_ctx(dctx,dlactxv) < 0)
+ return slbt_ectx_free_exec_ctx_impl(
+ ictx,
+ SLBT_NESTED_ERROR(dctx));
- if (slbt_ar_update_syminfo(*dlactxv,&ictx->ctx) < 0)
- return slbt_ectx_free_exec_ctx_impl(
- ictx,
- SLBT_NESTED_ERROR(dctx));
+ if (slbt_ar_update_syminfo(*dlactxv,&ictx->ctx) < 0)
+ return slbt_ectx_free_exec_ctx_impl(
+ ictx,
+ SLBT_NESTED_ERROR(dctx));
- dlactxv++;
- }
+ dlactxv++;
for (; *dlopenv; ) {
dlentry = *dlopenv;