summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-28 04:29:00 +0000
committermidipix <writeonce@midipix.org>2024-02-28 08:14:25 +0000
commit36c2032af89b26e9c407cd11052a611db65a2ff6 (patch)
treefb3147778ec08ad12c3157154b816d767568d0e6
parent2ec747715bab39c6b849f128b1e75218123583f6 (diff)
downloadslibtool-36c2032af89b26e9c407cd11052a611db65a2ff6.tar.bz2
slibtool-36c2032af89b26e9c407cd11052a611db65a2ff6.tar.xz
ar mode: pretty printing: added slbt_au_output_dlsyms().
-rw-r--r--include/slibtool/slibtool.h2
-rw-r--r--project/common.mk1
-rw-r--r--src/arbits/output/slbt_au_output_dlsyms.c12
3 files changed, 15 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h
index a11af4e..e6d5ed5 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -489,6 +489,8 @@ slbt_api int slbt_au_output_members (const struct slbt_archive_meta *);
slbt_api int slbt_au_output_symbols (const struct slbt_archive_meta *);
slbt_api int slbt_au_output_mapfile (const struct slbt_archive_meta *);
+slbt_api int slbt_au_output_dlsyms (struct slbt_archive_ctx **, const char *);
+
/* package info */
slbt_api const struct slbt_source_version * slbt_api_source_version(void);
diff --git a/project/common.mk b/project/common.mk
index 97ed871..8499440 100644
--- a/project/common.mk
+++ b/project/common.mk
@@ -13,6 +13,7 @@ API_SRCS = \
src/arbits/slbt_armap_sysv_32.c \
src/arbits/slbt_armap_sysv_64.c \
src/arbits/output/slbt_au_output_arname.c \
+ src/arbits/output/slbt_au_output_dlsyms.c \
src/arbits/output/slbt_au_output_mapfile.c \
src/arbits/output/slbt_au_output_members.c \
src/arbits/output/slbt_au_output_symbols.c \
diff --git a/src/arbits/output/slbt_au_output_dlsyms.c b/src/arbits/output/slbt_au_output_dlsyms.c
new file mode 100644
index 0000000..5963b5d
--- /dev/null
+++ b/src/arbits/output/slbt_au_output_dlsyms.c
@@ -0,0 +1,12 @@
+/*******************************************************************/
+/* slibtool: a skinny libtool implementation, written in C */
+/* Copyright (C) 2016--2024 SysDeer Technologies, LLC */
+/* Released under the Standard MIT License; see COPYING.SLIBTOOL. */
+/*******************************************************************/
+
+#include <slibtool/slibtool.h>
+
+int slbt_au_output_dlsyms(struct slbt_archive_ctx ** arctxv, const char * dlunit)
+{
+ return slbt_ar_create_dlsyms(arctxv,dlunit,0,0);
+}