From 36c2032af89b26e9c407cd11052a611db65a2ff6 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 28 Feb 2024 04:29:00 +0000 Subject: ar mode: pretty printing: added slbt_au_output_dlsyms(). --- include/slibtool/slibtool.h | 2 ++ project/common.mk | 1 + src/arbits/output/slbt_au_output_dlsyms.c | 12 ++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 src/arbits/output/slbt_au_output_dlsyms.c 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 + +int slbt_au_output_dlsyms(struct slbt_archive_ctx ** arctxv, const char * dlunit) +{ + return slbt_ar_create_dlsyms(arctxv,dlunit,0,0); +} -- cgit v1.2.3