/* A program to test BFD.
- Copyright 2012 Free Software Foundation, Inc.
+ Copyright (C) 2012-2020 Free Software Foundation, Inc.
This file is part of the GNU Binutils.
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))
{