diff options
author | midipix <writeonce@midipix.org> | 2024-03-15 21:52:36 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-03-15 21:52:36 +0000 |
commit | a77f8d5a6e4cd54ef6a45ef93d30bb2fb742d86f (patch) | |
tree | 3ae69d447e5606addb70e0e5c8c47092a85460c4 /src | |
parent | a35ec15eded4cd786aae1e7795c1909df9b04075 (diff) | |
download | slibtool-a77f8d5a6e4cd54ef6a45ef93d30bb2fb742d86f.tar.bz2 slibtool-a77f8d5a6e4cd54ef6a45ef93d30bb2fb742d86f.tar.xz |
ar mode: PE mapfile generation: indent symbols as to match ld's .def output.
Diffstat (limited to 'src')
-rw-r--r-- | src/arbits/slbt_archive_mapfile.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 { |