diff options
Diffstat (limited to 'ld/ldmisc.c')
-rw-r--r-- | ld/ldmisc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ld/ldmisc.c b/ld/ldmisc.c index 5f7d0e9..8fe0b43 100644 --- 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 |