ubsan: spu: left shift of negative value
[deliverable/binutils-gdb.git] / binutils / bfdtest1.c
index b246a045a4d08274f24df61efb31024b791e5991..3e6acbe280d2ab346e167e1f3a575d42115a0d77 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
 
@@ -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))
     {
This page took 0.024095 seconds and 4 git commands to generate.