summaryrefslogtreecommitdiffstats
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-04-15 16:28:52 +0000
committerNick Clifton <nickc@redhat.com>2005-04-15 16:28:52 +0000
commitac559f4a6daae06b15dbcaeaa9c383a91e9e3e41 (patch)
tree0e0eddcd34462a7f53ab47dd68518edbdbe5ae77 /binutils
parente2f4edfd006e47c385b715b535e5515f3ffd9a43 (diff)
downloadppe42-binutils-ac559f4a6daae06b15dbcaeaa9c383a91e9e3e41.tar.gz
ppe42-binutils-ac559f4a6daae06b15dbcaeaa9c383a91e9e3e41.zip
Issue an error message when attmepting to copy an empty input file.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/objcopy.c1
2 files changed, 6 insertions, 0 deletions
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 <nickc@redhat.com>
+
+ * objcopy.c (copy_file): Issue an error message when attmepting to
+ copy an empty input file.
+
2005-04-14 Alan Modra <amodra@bigpond.net.au>
* 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;
}
OpenPOWER on IntegriCloud