Apply revision 1.56 from binutils CVS:

Catch NULL bfd pointers passed to bfd_archive_filename.

Fixes a core dump in ld(8) when loading certain LKMs.

Approved by mrg.
This commit is contained in:
peter 2004-10-25 09:45:43 +00:00
parent dd753df337
commit 4037d03620
1 changed files with 3 additions and 0 deletions

View File

@ -526,6 +526,9 @@ const char *
bfd_archive_filename (abfd)
bfd *abfd;
{
if (abfd == NULL)
return _("<unknown>");
if (abfd->my_archive)
{
static size_t curr = 0;