summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 {