From ae486abdd1a2a10b10a84f44b4abe2379c1fb19f Mon Sep 17 00:00:00 2001
From: midipix <writeonce@midipix.org>
Date: Thu, 29 Feb 2024 22:42:03 +0000
Subject: ar mode: driver: -Wdlsyms: fix code path (operation is vector bound).

---
 src/logic/slbt_exec_ar.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src')

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);
-- 
cgit v1.2.3