diff options
author | 2010-07-16 21:44:06 +0000 | |
---|---|---|
committer | 2010-07-16 21:44:06 +0000 | |
commit | fda99e87dcd52e3850ddd67306da9cb9ae780e97 (patch) | |
tree | f4a48013f7c1dc1a17f7be083ce20a8bcf6417f5 | |
parent | revisison -> revision (diff) | |
download | wireguard-openbsd-fda99e87dcd52e3850ddd67306da9cb9ae780e97.tar.xz wireguard-openbsd-fda99e87dcd52e3850ddd67306da9cb9ae780e97.zip |
Exit strip(1) with an error, if an objfile could not be read.
Input and OK millert@
-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(). |