mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-23 01:08:50 +08:00
Catch NULL bfd pointers passed to bfd_archive_filename
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2004-04-15 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
|
||||||
|
|
||||||
2004-04-15 Alan Modra <amodra@bigpond.net.au>
|
2004-04-15 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
|
* elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
|
||||||
|
@ -512,6 +512,9 @@ DESCRIPTION
|
|||||||
const char *
|
const char *
|
||||||
bfd_archive_filename (bfd *abfd)
|
bfd_archive_filename (bfd *abfd)
|
||||||
{
|
{
|
||||||
|
if (abfd == NULL)
|
||||||
|
return _("<unknown>");
|
||||||
|
|
||||||
if (abfd->my_archive)
|
if (abfd->my_archive)
|
||||||
{
|
{
|
||||||
static size_t curr = 0;
|
static size_t curr = 0;
|
||||||
|
Reference in New Issue
Block a user