summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-29 22:42:03 +0000
committermidipix <writeonce@midipix.org>2024-02-29 22:42:03 +0000
commitae486abdd1a2a10b10a84f44b4abe2379c1fb19f (patch)
treee78020193b3d9fd3ec0e2b34b890e1eb2dc757b1 /src
parent132ccdba4a23db9769b8332159b3bddeb500b45b (diff)
downloadslibtool-ae486abdd1a2a10b10a84f44b4abe2379c1fb19f.tar.bz2
slibtool-ae486abdd1a2a10b10a84f44b4abe2379c1fb19f.tar.xz
ar mode: driver: -Wdlsyms: fix code path (operation is vector bound).
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_ar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/logic/slbt_exec_ar.c b/src/logic/slbt_exec_ar.c
index 4bf7c41..612648e 100644
--- a/src/logic/slbt_exec_ar.c
+++ b/src/logic/slbt_exec_ar.c
@@ -107,12 +107,12 @@ static int slbt_exec_ar_perform_archive_actions(
if (dctx->cctx->fmtflags & SLBT_OUTPUT_ARCHIVE_MAPFILE)
if (slbt_au_output_mapfile((*arctxp)->meta) < 0)
return SLBT_NESTED_ERROR(dctx);
-
- if (dctx->cctx->fmtflags & SLBT_OUTPUT_ARCHIVE_DLSYMS)
- if (slbt_au_output_dlsyms(arctxv,dctx->cctx->dlunit) < 0)
- return SLBT_NESTED_ERROR(dctx);
}
+ if (dctx->cctx->fmtflags & SLBT_OUTPUT_ARCHIVE_DLSYMS)
+ if (slbt_au_output_dlsyms(arctxv,dctx->cctx->dlunit) < 0)
+ return SLBT_NESTED_ERROR(dctx);
+
if (dctx->cctx->drvflags & SLBT_DRIVER_MODE_AR_MERGE) {
if (slbt_ar_merge_archives(arctxv,&arctx) < 0)
return SLBT_NESTED_ERROR(dctx);