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:
parent
dd753df337
commit
4037d03620
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue