* options.h (class General_options): Add --noinhibit-exec option.
* main.cc (main): Check --noinhibit-exec.
This commit is contained in:
parent
0864d55193
commit
cdb0b8f565
3 changed files with 10 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue