diff options
author | midipix <writeonce@midipix.org> | 2024-02-29 22:42:03 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-02-29 22:42:03 +0000 |
commit | ae486abdd1a2a10b10a84f44b4abe2379c1fb19f (patch) | |
tree | e78020193b3d9fd3ec0e2b34b890e1eb2dc757b1 | |
parent | 132ccdba4a23db9769b8332159b3bddeb500b45b (diff) | |
download | slibtool-ae486abdd1a2a10b10a84f44b4abe2379c1fb19f.tar.bz2 slibtool-ae486abdd1a2a10b10a84f44b4abe2379c1fb19f.tar.xz |
ar mode: driver: -Wdlsyms: fix code path (operation is vector bound).
-rw-r--r-- | src/logic/slbt_exec_ar.c | 8 |
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); |