diff options
Diffstat (limited to 'gold/gold.cc')
-rw-r--r-- | gold/gold.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/gold.cc b/gold/gold.cc index 9baebaf6022..0b7c2ecfee3 100644 --- a/gold/gold.cc +++ b/gold/gold.cc @@ -47,7 +47,7 @@ const char* program_name; void gold_exit(bool status) { - if (!status && parameters != NULL) + if (!status && parameters != NULL && parameters->options_valid()) unlink_if_ordinary(parameters->output_file_name()); exit(status ? EXIT_SUCCESS : EXIT_FAILURE); } |