From f86b235ae5cb80e78859673edaaf4ee96c3f2164 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 18 Mar 2003 18:57:40 +0000 Subject: [PATCH] * elfxx-ia64.c (get_dyn_sym_info): Return NULL gracefully for local symbols that have no dyninfo. --- bfd/ChangeLog | 5 +++++ bfd/elfxx-ia64.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index bc78750d5b8..a8424cbf97b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-03-18 Richard Henderson + + * elfxx-ia64.c (get_dyn_sym_info): Return NULL gracefully for + local symbols that have no dyninfo. + 2003-03-14 Gene Smith * ieee.c (ieee_write_expression): Handle the case where symbol is diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c index d1a78abfcc7..6778f038f7e 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; } -- 2.30.2