From cdb0b8f5655411f9926c49ae39386430d3df67b0 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 9 Apr 2008 01:19:09 +0000 Subject: * options.h (class General_options): Add --noinhibit-exec option. * main.cc (main): Check --noinhibit-exec. --- gold/main.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gold/main.cc') 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()); } -- cgit v1.1