aboutsummaryrefslogtreecommitdiff
path: root/binutils/bfdtest1.c
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/bfdtest1.c')
-rw-r--r--binutils/bfdtest1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/binutils/bfdtest1.c b/binutils/bfdtest1.c
index b246a04..eaee2fd 100644
--- a/binutils/bfdtest1.c
+++ b/binutils/bfdtest1.c
@@ -35,9 +35,11 @@ main (int argc, char **argv)
bfd *last, *next;
if (argc != 2)
- die ("bad usage");
+ die ("usage: bfdtest1 <archive>");
archive = bfd_openr (argv[1], NULL);
+ if (archive == NULL)
+ die ("no such archive");
if (!bfd_check_format (archive, bfd_archive))
{