diff options
author | midipix <writeonce@midipix.org> | 2025-05-26 15:11:40 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2025-05-26 15:11:40 +0000 |
commit | 6ae837de14498801942906362825a95ae2483e8f (patch) | |
tree | 92edaa5ab5131ca8317a4ab096381f9d9737bb45 | |
parent | 32ed0a3ba90ddac4ef7a40969c3c32ebd45a7d21 (diff) | |
download | slibtool-6ae837de14498801942906362825a95ae2483e8f.tar.bz2 slibtool-6ae837de14498801942906362825a95ae2483e8f.tar.xz |
slbt_exec_ar(): fix ordering of argument integrity checks.
-rw-r--r-- | src/logic/slbt_exec_ar.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/logic/slbt_exec_ar.c b/src/logic/slbt_exec_ar.c index 50ff864..9d76c16 100644 --- a/src/logic/slbt_exec_ar.c +++ b/src/logic/slbt_exec_ar.c @@ -300,13 +300,7 @@ int slbt_exec_ar(const struct slbt_driver_ctx * dctx) } /* at least one action must be specified */ - if (cctx->fmtflags & SLBT_DRIVER_MODE_AR_OUTPUTS) { - (void)0; - - } else if (cctx->fmtflags & SLBT_OUTPUT_ARCHIVE_MAPFILE) { - (void)0; - - } else if (cctx->fmtflags & SLBT_OUTPUT_ARCHIVE_DLSYMS) { + if (cctx->fmtflags & SLBT_OUTPUT_ARCHIVE_DLSYMS) { if (!cctx->dlunit) { slbt_dprintf(fderr, "%s: missing -Wdlunit: generation of a dlsyms vtable " @@ -321,6 +315,12 @@ int slbt_exec_ar(const struct slbt_driver_ctx * dctx) dctx, SLBT_ERR_AR_DLUNIT_NOT_SPECIFIED)); } + } else if (cctx->fmtflags & SLBT_DRIVER_MODE_AR_OUTPUTS) { + (void)0; + + } else if (cctx->fmtflags & SLBT_OUTPUT_ARCHIVE_MAPFILE) { + (void)0; + } else if (!(cctx->drvflags & SLBT_DRIVER_MODE_AR_ACTIONS)) { if (cctx->drvflags & SLBT_DRIVER_VERBOSITY_ERRORS) slbt_dprintf(fderr, |