diff options
author | Nick Clifton <nickc@redhat.com> | 2008-08-17 20:39:34 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-08-17 20:39:34 +0000 |
commit | 3e08fb72d945d9b4279ca66093ac903cb1ca0aa2 (patch) | |
tree | e562f6a48602a516ed7535ed4557e1184147f66b | |
parent | 44feb3ce38dfc995ef492f2c319a6669efe39ff8 (diff) | |
download | gdb-3e08fb72d945d9b4279ca66093ac903cb1ca0aa2.zip gdb-3e08fb72d945d9b4279ca66093ac903cb1ca0aa2.tar.gz gdb-3e08fb72d945d9b4279ca66093ac903cb1ca0aa2.tar.bz2 |
* elfxx-mips.c (_bfd_mips_elf_check_relocs): Handle the situation
where the sym_hashes are not available.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elfxx-mips.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a853525..ee3a2d0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2008-08-17 Nick Clifton <nickc@redhat.com> + + * elfxx-mips.c (_bfd_mips_elf_check_relocs): Handle the situation + where the sym_hashes are not available. + 2008-08-17 Alan Modra <amodra@bigpond.net.au> * bfd.c (struct _bfd): Correct outsymbols comment. diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 80ce5b2..eb6d55e 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -7433,8 +7433,9 @@ _bfd_mips_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, else { h = sym_hashes[r_symndx - extsymoff]; - while (h->root.type == bfd_link_hash_indirect - || h->root.type == bfd_link_hash_warning) + while (h != NULL + && (h->root.type == bfd_link_hash_indirect + || h->root.type == bfd_link_hash_warning)) h = (struct elf_link_hash_entry *) h->root.u.i.link; } |