PR binutils/10321
	* bucomm.c (get_file_size): Return -1 on error.

	* objcopy.c (copy_file): Report empty file.
This commit is contained in:
H.J. Lu
2009-06-27 17:19:02 +00:00
parent 83b89087cf
commit 52a476eeda
3 changed files with 13 additions and 2 deletions

View File

@@ -571,7 +571,7 @@ get_file_size (const char * file_name)
else
return statbuf.st_size;
return 0;
return (off_t) -1;
}
/* Return the filename in a static buffer. */