From 24d7f9437d997031b7d786630fb7a5aaa6e4a205 Mon Sep 17 00:00:00 2001 From: midipix Date: Feb 20 2024 05:12:52 +0000 Subject: utility output api's: added slbt_output_mapfile(). --- 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 + +int slbt_output_mapfile(const struct slbt_symlist_ctx * sctx) +{ + return slbt_util_create_mapfile(sctx,0,0); +}