aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmisc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldmisc.c')
-rw-r--r--ld/ldmisc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/ldmisc.c b/ld/ldmisc.c
index e07ce1b..a27cf11 100644
--- a/ld/ldmisc.c
+++ b/ld/ldmisc.c
@@ -399,6 +399,9 @@ vfinfo (fp, fmt, arg)
}
}
+ if (config.fatal_warnings)
+ config.make_executable = false;
+
if (fatal == true)
xexit (1);
}