From ac559f4a6daae06b15dbcaeaa9c383a91e9e3e41 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 15 Apr 2005 16:28:52 +0000 Subject: [PATCH] Issue an error message when attmepting to copy an empty input file. --- binutils/ChangeLog | 5 +++++ binutils/objcopy.c | 1 + 2 files changed, 6 insertions(+) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 899a117dad..a9596ad507 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2005-04-15 Nick Clifton + + * objcopy.c (copy_file): Issue an error message when attmepting to + copy an empty input file. + 2005-04-14 Alan Modra * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error. diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 2d25b1361e..856b348888 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -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; }