diff options
author | Nick Clifton <nickc@redhat.com> | 2005-04-15 16:28:52 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-04-15 16:28:52 +0000 |
commit | ac559f4a6daae06b15dbcaeaa9c383a91e9e3e41 (patch) | |
tree | 0e0eddcd34462a7f53ab47dd68518edbdbe5ae77 /binutils | |
parent | e2f4edfd006e47c385b715b535e5515f3ffd9a43 (diff) | |
download | gdb-ac559f4a6daae06b15dbcaeaa9c383a91e9e3e41.zip gdb-ac559f4a6daae06b15dbcaeaa9c383a91e9e3e41.tar.gz gdb-ac559f4a6daae06b15dbcaeaa9c383a91e9e3e41.tar.bz2 |
Issue an error message when attmepting to copy an empty input file.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/objcopy.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 899a117..a9596ad 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 2d25b13..856b348 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; } |