projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a6d0b3
)
* ldmisc.c (vfinfo): Handle the case where %B is passed a NULL BFD.
author
Nick Clifton
<nickc@redhat.com>
Thu, 16 Dec 2004 15:40:36 +0000
(15:40 +0000)
committer
Nick Clifton
<nickc@redhat.com>
Thu, 16 Dec 2004 15:40:36 +0000
(15:40 +0000)
ld/ChangeLog
patch
|
blob
|
history
ld/ldmisc.c
patch
|
blob
|
history
diff --git
a/ld/ChangeLog
b/ld/ChangeLog
index 418bc939feee7a23b8848852be83b3ab4bcf65c9..478993b90ae4ff034e41a1a42ca226ec650eff67 100644
(file)
--- a/
ld/ChangeLog
+++ b/
ld/ChangeLog
@@
-1,3
+1,8
@@
+2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
+
+ * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
+ BFD.
+
2004-12-07 Ben Elliston <bje@gnu.org>
* ldemul.h: Forward declare struct option.
diff --git
a/ld/ldmisc.c
b/ld/ldmisc.c
index 5f7d0e99aac1531d79df0dfd32fe6d5f77d8a267..8fe0b43f1488db9431552e651fbe395e3cf3e990 100644
(file)
--- a/
ld/ldmisc.c
+++ b/
ld/ldmisc.c
@@
-188,7
+188,10
@@
vfinfo (FILE *fp, const char *fmt, va_list arg)
/* filename from a bfd */
{
bfd *abfd = va_arg (arg, bfd *);
- if (abfd->my_archive)
+
+ if (abfd == NULL)
+ fprintf (fp, "<none>");
+ else if (abfd->my_archive)
fprintf (fp, "%s(%s)", abfd->my_archive->filename,
abfd->filename);
else