* elfxx-ia64.c (get_dyn_sym_info): Return NULL gracefully for
authorRichard Henderson <rth@redhat.com>
Tue, 18 Mar 2003 18:57:40 +0000 (18:57 +0000)
committerRichard Henderson <rth@redhat.com>
Tue, 18 Mar 2003 18:57:40 +0000 (18:57 +0000)
        local symbols that have no dyninfo.

bfd/ChangeLog
bfd/elfxx-ia64.c

index bc78750d5b8fbefdabc72378563939f44d673e15..a8424cbf97b066d07dd0e17a153c1bc68aa7801f 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-18  Richard Henderson  <rth@redhat.com>
+
+        * elfxx-ia64.c (get_dyn_sym_info): Return NULL gracefully for
+        local symbols that have no dyninfo.
+
 2003-03-14  Gene Smith  <gene.smith@siemens.com>
 
        * ieee.c (ieee_write_expression): Handle the case where symbol is
index d1a78abfcc776a6aed0363fe1ebc1ca6b4077b05..6778f038f7e9ac0a869071ddc5208efdefdf1cbf 100644 (file)
@@ -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;
     }