summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-17 01:31:37 +0000
committermidipix <writeonce@midipix.org>2024-02-17 01:31:37 +0000
commitb75e41ac1c90710f85f95f58b81033b3eecbc265 (patch)
treecc37a1fa0bddeb8c656b61a5a91d843406575a9b
parentad18a6c60e23f99c9eae6351756653d860e727df (diff)
downloadslibtool-b75e41ac1c90710f85f95f58b81033b3eecbc265.tar.bz2
slibtool-b75e41ac1c90710f85f95f58b81033b3eecbc265.tar.xz
ar mode: utility: integrated armap symbol printing via -Wprint=symbols.
-rw-r--r--src/logic/slbt_exec_ar.c4
-rw-r--r--src/skin/slbt_skin_ar.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_ar.c b/src/logic/slbt_exec_ar.c
index 9b400af..c808421 100644
--- a/src/logic/slbt_exec_ar.c
+++ b/src/logic/slbt_exec_ar.c
@@ -99,6 +99,10 @@ static int slbt_exec_ar_perform_archive_actions(
if (dctx->cctx->fmtflags & SLBT_OUTPUT_ARCHIVE_MEMBERS)
if (slbt_ar_output_members((*arctxp)->meta) < 0)
return SLBT_NESTED_ERROR(dctx);
+
+ if (dctx->cctx->fmtflags & SLBT_OUTPUT_ARCHIVE_SYMBOLS)
+ if (slbt_ar_output_symbols((*arctxp)->meta) < 0)
+ return SLBT_NESTED_ERROR(dctx);
}
if (dctx->cctx->drvflags & SLBT_DRIVER_MODE_AR_MERGE) {
diff --git a/src/skin/slbt_skin_ar.c b/src/skin/slbt_skin_ar.c
index d424abe..a02372b 100644
--- a/src/skin/slbt_skin_ar.c
+++ b/src/skin/slbt_skin_ar.c
@@ -32,7 +32,7 @@ const struct argv_option slbt_ar_options[] = {
{"Wprint", 0,TAG_AR_PRINT,ARGV_OPTARG_OPTIONAL,
ARGV_OPTION_HYBRID_EQUAL|ARGV_OPTION_HYBRID_COMMA,
- "members",0,
+ "members|symbols",0,
"print out information pertaining to each archive file "
"and its various internal elements"},