diff options
author | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2010-07-16 21:44:07 +0000 |
---|---|---|
committer | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2010-07-16 21:44:07 +0000 |
commit | e5f57d0bf749571f0c1be797ee882214a84ce21f (patch) | |
tree | 3233656c5a6a90c8dc56ec10b4e4cf0c843623c8 /gnu/usr.bin | |
parent | 2011433af85cfa64a0323ca4ec2c8d5a5fb8a8c8 (diff) |
Exit strip(1) with an error, if an objfile could not be read.
Input and OK millert@
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/binutils/binutils/objcopy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/binutils/objcopy.c b/gnu/usr.bin/binutils/binutils/objcopy.c index 181f14440a5..0f7ce85561e 100644 --- a/gnu/usr.bin/binutils/binutils/objcopy.c +++ b/gnu/usr.bin/binutils/binutils/objcopy.c @@ -2367,7 +2367,10 @@ strip_main (int argc, char *argv[]) char *tmpname; if (get_file_size (argv[i]) < 1) - continue; + { + status = 1; + continue; + } if (preserve_dates) /* No need to check the return value of stat(). |