* ldmisc.c (vfinfo): Handle the case where %B is passed a NULL BFD.
This commit is contained in:
parent
7a6d0b32af
commit
f2763b012e
|
@ -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>
|
2004-12-07 Ben Elliston <bje@gnu.org>
|
||||||
|
|
||||||
* ldemul.h: Forward declare struct option.
|
* ldemul.h: Forward declare struct option.
|
||||||
|
|
|
@ -188,7 +188,10 @@ vfinfo (FILE *fp, const char *fmt, va_list arg)
|
||||||
/* filename from a bfd */
|
/* filename from a bfd */
|
||||||
{
|
{
|
||||||
bfd *abfd = va_arg (arg, 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,
|
fprintf (fp, "%s(%s)", abfd->my_archive->filename,
|
||||||
abfd->filename);
|
abfd->filename);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue