diff options
author | Ian Lance Taylor <ian@airs.com> | 2008-04-09 01:19:09 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2008-04-09 01:19:09 +0000 |
commit | cdb0b8f5655411f9926c49ae39386430d3df67b0 (patch) | |
tree | ff62401d83cb501f65b0bbe748d0a1e3bdf92559 /gold/main.cc | |
parent | 0864d55193d9ad757c26cba29da1de1c00be4ba8 (diff) | |
download | gdb-cdb0b8f5655411f9926c49ae39386430d3df67b0.zip gdb-cdb0b8f5655411f9926c49ae39386430d3df67b0.tar.gz gdb-cdb0b8f5655411f9926c49ae39386430d3df67b0.tar.bz2 |
* options.h (class General_options): Add --noinhibit-exec option.
* main.cc (main): Check --noinhibit-exec.
Diffstat (limited to 'gold/main.cc')
-rw-r--r-- | gold/main.cc | 5 |
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()); } |