aboutsummaryrefslogtreecommitdiff
path: root/gold/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/main.cc')
-rw-r--r--gold/main.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gold/main.cc b/gold/main.cc
index 2966d03..9b6ded0 100644
--- a/gold/main.cc
+++ b/gold/main.cc
@@ -220,5 +220,8 @@ main(int argc, char** argv)
layout.print_stats();
}
- gold_exit(errors.error_count() == 0);
+ // If the user used --noinhibit-exec, we force the exit status to be
+ // successful. This is compatible with GNU ld.
+ gold_exit(errors.error_count() == 0
+ || parameters->options().noinhibit_exec());
}