diff options
Diffstat (limited to 'gold/main.cc')
-rw-r--r-- | gold/main.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gold/main.cc b/gold/main.cc index 7ca0d70..7de1b87 100644 --- a/gold/main.cc +++ b/gold/main.cc @@ -291,6 +291,8 @@ main(int argc, char** argv) // 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()); + gold_exit((errors.error_count() == 0 + || parameters->options().noinhibit_exec()) + ? GOLD_OK + : GOLD_ERR); } |