diff options
-rw-r--r-- | project/common.mk | 3 | ||||
-rw-r--r-- | src/arbits/output/slbt_au_output_mapfile.c | 12 | ||||
-rw-r--r-- | src/arbits/slbt_archive_mapfile.c (renamed from src/arbits/output/slbt_ar_output_mapfile.c) | 10 |
3 files changed, 16 insertions, 9 deletions
diff --git a/project/common.mk b/project/common.mk index e82ddc1..ef4c8af 100644 --- a/project/common.mk +++ b/project/common.mk @@ -1,5 +1,6 @@ API_SRCS = \ src/arbits/slbt_archive_ctx.c \ + src/arbits/slbt_archive_mapfile.c \ src/arbits/slbt_archive_mapstrv.c \ src/arbits/slbt_archive_merge.c \ src/arbits/slbt_archive_meta.c \ @@ -9,7 +10,7 @@ API_SRCS = \ src/arbits/slbt_armap_sysv_32.c \ src/arbits/slbt_armap_sysv_64.c \ src/arbits/output/slbt_ar_output_arname.c \ - src/arbits/output/slbt_ar_output_mapfile.c \ + src/arbits/output/slbt_au_output_mapfile.c \ src/arbits/output/slbt_ar_output_members.c \ src/arbits/output/slbt_ar_output_symbols.c \ src/driver/slbt_amain.c \ diff --git a/src/arbits/output/slbt_au_output_mapfile.c b/src/arbits/output/slbt_au_output_mapfile.c new file mode 100644 index 0000000..8a84cc2 --- /dev/null +++ b/src/arbits/output/slbt_au_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_au_output_mapfile(const struct slbt_archive_meta * meta) +{ + return slbt_ar_create_mapfile(meta,0,0); +} diff --git a/src/arbits/output/slbt_ar_output_mapfile.c b/src/arbits/slbt_archive_mapfile.c index f8cc1b7..2bca16d 100644 --- a/src/arbits/output/slbt_ar_output_mapfile.c +++ b/src/arbits/slbt_archive_mapfile.c @@ -15,7 +15,7 @@ #include "slibtool_errinfo_impl.h" #include "slibtool_ar_impl.h" -static int slbt_au_output_mapfile_impl( +static int slbt_ar_output_mapfile_impl( const struct slbt_driver_ctx * dctx, struct slbt_archive_meta_impl * mctx, int fdout) @@ -91,17 +91,11 @@ static int slbt_ar_create_mapfile_impl( fdout = fdctx.fdout; } - return slbt_au_output_mapfile_impl( + return slbt_ar_output_mapfile_impl( dctx,mctx,fdout); } -int slbt_au_output_mapfile(const struct slbt_archive_meta * meta) -{ - return slbt_ar_create_mapfile_impl(meta,0,0); -} - - int slbt_ar_create_mapfile( const struct slbt_archive_meta * meta, const char * path, |