aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-ia64.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-03-18 18:57:40 +0000
committerRichard Henderson <rth@redhat.com>2003-03-18 18:57:40 +0000
commitf86b235ae5cb80e78859673edaaf4ee96c3f2164 (patch)
tree611ba1633e90ceb0b17ddb99ea49835f76309ee4 /bfd/elfxx-ia64.c
parent3371ccc06e3e0c51f5e43ffe228cea7161cbd59d (diff)
downloadgdb-f86b235ae5cb80e78859673edaaf4ee96c3f2164.zip
gdb-f86b235ae5cb80e78859673edaaf4ee96c3f2164.tar.gz
gdb-f86b235ae5cb80e78859673edaaf4ee96c3f2164.tar.bz2
* elfxx-ia64.c (get_dyn_sym_info): Return NULL gracefully for
local symbols that have no dyninfo.
Diffstat (limited to 'bfd/elfxx-ia64.c')
-rw-r--r--bfd/elfxx-ia64.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c
index d1a78ab..6778f03 100644
--- a/bfd/elfxx-ia64.c
+++ b/bfd/elfxx-ia64.c
@@ -1965,7 +1965,11 @@ get_dyn_sym_info (ia64_info, h, abfd, rel, create)
struct elfNN_ia64_local_hash_entry *loc_h;
loc_h = get_local_sym_hash (ia64_info, abfd, rel, create);
- BFD_ASSERT (loc_h);
+ if (!loc_h)
+ {
+ BFD_ASSERT (!create);
+ return NULL;
+ }
pp = &loc_h->info;
}