projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Power10 tidies
[deliverable/binutils-gdb.git]
/
binutils
/
bfdtest1.c
diff --git
a/binutils/bfdtest1.c
b/binutils/bfdtest1.c
index b246a045a4d08274f24df61efb31024b791e5991..3e6acbe280d2ab346e167e1f3a575d42115a0d77 100644
(file)
--- a/
binutils/bfdtest1.c
+++ b/
binutils/bfdtest1.c
@@
-1,5
+1,5
@@
/* A program to test BFD.
/* 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.
This file is part of the GNU Binutils.
@@
-35,9
+35,11
@@
main (int argc, char **argv)
bfd *last, *next;
if (argc != 2)
bfd *last, *next;
if (argc != 2)
- die ("
bad usage
");
+ die ("
usage: bfdtest1 <archive>
");
archive = bfd_openr (argv[1], NULL);
archive = bfd_openr (argv[1], NULL);
+ if (archive == NULL)
+ die ("no such archive");
if (!bfd_check_format (archive, bfd_archive))
{
if (!bfd_check_format (archive, bfd_archive))
{
This page took
0.023466 seconds
and
4
git commands to generate.