diff --git a/binutils/objcopy.c b/binutils/objcopy.c index eb2e54b9602..b9d946a38e4 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -3934,14 +3934,12 @@ copy_file (const char *input_filename, const char *output_filename, int ofd, { status = 1; bfd_nonfatal_message (output_filename, NULL, NULL, NULL); - return; } if (!bfd_close (ibfd)) { status = 1; bfd_nonfatal_message (input_filename, NULL, NULL, NULL); - return; } } else @@ -6093,5 +6091,6 @@ main (int argc, char *argv[]) END_PROGRESS (program_name); + xexit (status); return status; }