summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-20 04:56:33 +0000
committermidipix <writeonce@midipix.org>2024-02-20 05:12:52 +0000
commit24d7f9437d997031b7d786630fb7a5aaa6e4a205 (patch)
tree1011ece3341441095d13ce594fe7775145a0c737
parentf7b3fdbb145ce292ae9c468c63b6d32c1a75ffde (diff)
downloadslibtool-24d7f9437d997031b7d786630fb7a5aaa6e4a205.tar.bz2
slibtool-24d7f9437d997031b7d786630fb7a5aaa6e4a205.tar.xz
utility output api's: added slbt_output_mapfile().
-rw-r--r--include/slibtool/slibtool.h1
-rw-r--r--project/common.mk1
-rw-r--r--src/output/slbt_output_mapfile.c12
3 files changed, 14 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h
index 38d47a0..fbeaf3e 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -436,6 +436,7 @@ slbt_api int slbt_output_link (const struct slbt_driver_ctx *, const s
slbt_api int slbt_output_uninstall (const struct slbt_driver_ctx *, const struct slbt_exec_ctx *);
slbt_api int slbt_output_error_record (const struct slbt_driver_ctx *, const struct slbt_error_info *);
slbt_api int slbt_output_error_vector (const struct slbt_driver_ctx *);
+slbt_api int slbt_output_mapfile (const struct slbt_symlist_ctx *);
/* archiver utility api */
slbt_api int slbt_au_output_arname (const struct slbt_archive_ctx *);
diff --git a/project/common.mk b/project/common.mk
index fbd81fd..a31536e 100644
--- a/project/common.mk
+++ b/project/common.mk
@@ -47,6 +47,7 @@ API_SRCS = \
src/output/slbt_output_features.c \
src/output/slbt_output_info.c \
src/output/slbt_output_machine.c \
+ src/output/slbt_output_mapfile.c \
src/skin/slbt_skin_ar.c \
src/skin/slbt_skin_default.c \
src/skin/slbt_skin_install.c \
diff --git a/src/output/slbt_output_mapfile.c b/src/output/slbt_output_mapfile.c
new file mode 100644
index 0000000..49e50ed
--- /dev/null
+++ b/src/output/slbt_output_mapfile.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_output_mapfile(const struct slbt_symlist_ctx * sctx)
+{
+ return slbt_util_create_mapfile(sctx,0,0);
+}