From 718b0bab38cf4e62dd79ff7c0da5a094628f8cd0 Mon Sep 17 00:00:00 2001 From: nickc Date: Sun, 17 Aug 2008 20:39:34 +0000 Subject: [PATCH] * elfxx-mips.c (_bfd_mips_elf_check_relocs): Handle the situation where the sym_hashes are not available. --- bfd/ChangeLog | 5 +++++ bfd/elfxx-mips.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a85352579f..ee3a2d09d9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2008-08-17 Nick Clifton + + * elfxx-mips.c (_bfd_mips_elf_check_relocs): Handle the situation + where the sym_hashes are not available. + 2008-08-17 Alan Modra * bfd.c (struct _bfd): Correct outsymbols comment. diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 80ce5b23aa..eb6d55e042 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; } -- 2.11.0