Issue an error message when attmepting to copy an empty input file.
[binutils-gdb.git] / binutils / objcopy.c
index 2d25b1361eee406f0b2229c81b6af6b7659ae645..856b348888b828805c5fd1e5c358f01698e63517 100644 (file)
@@ -1701,6 +1701,7 @@ copy_file (const char *input_filename, const char *output_filename,
 
   if (get_file_size (input_filename) < 1)
     {
+      non_fatal (_("error: the input file '%s' is empty"), input_filename);
       status = 1;
       return;
     }