From a77f8d5a6e4cd54ef6a45ef93d30bb2fb742d86f Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 15 Mar 2024 21:52:36 +0000 Subject: ar mode: PE mapfile generation: indent symbols as to match ld's .def output. --- src/arbits/slbt_archive_mapfile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/arbits/slbt_archive_mapfile.c b/src/arbits/slbt_archive_mapfile.c index 3034905..3e7d4df 100644 --- a/src/arbits/slbt_archive_mapfile.c +++ b/src/arbits/slbt_archive_mapfile.c @@ -73,7 +73,10 @@ static int slbt_ar_output_mapfile_impl( for (symv=symstrv; *symv; symv++) { if (!fcoff || slbt_is_strong_coff_symbol(*symv)) { if (!regex || !regexec(®ctx,*symv,1,pmatch,0)) { - if (fcoff || fmach) { + if (fcoff) { + if (slbt_dprintf(fdout," %s\n",*symv) < 0) + return SLBT_SYSTEM_ERROR(dctx,0); + } else if (fmach) { if (slbt_dprintf(fdout,"%s\n",*symv) < 0) return SLBT_SYSTEM_ERROR(dctx,0); } else { -- cgit v1.2.3