summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-15 21:52:36 +0000
committermidipix <writeonce@midipix.org>2024-03-15 21:52:36 +0000
commita77f8d5a6e4cd54ef6a45ef93d30bb2fb742d86f (patch)
tree3ae69d447e5606addb70e0e5c8c47092a85460c4 /src
parenta35ec15eded4cd786aae1e7795c1909df9b04075 (diff)
downloadslibtool-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.c5
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(&regctx,*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 {