* sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
authorIan Lance Taylor <ian@airs.com>
Mon, 11 Sep 1995 14:56:49 +0000 (14:56 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 11 Sep 1995 14:56:49 +0000 (14:56 +0000)
a symbol with a non-zero plt_offset.

bfd/ChangeLog
bfd/sunos.c

index e19279c..4181377 100644 (file)
@@ -1,3 +1,8 @@
+Mon Sep 11 10:55:47 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
+       a symbol with a non-zero plt_offset.
+
 Fri Sep  8 11:47:24 1995  Ian Lance Taylor  <ian@cygnus.com>
 
        * elfcode.h (align_file_position): Remove; not used.
index c1a2855..2e2f1fd 100644 (file)
@@ -1426,10 +1426,12 @@ sunos_scan_std_relocs (info, abfd, sec, relocs, rel_size)
        }
 
       BFD_ASSERT ((h->flags & SUNOS_REF_REGULAR) != 0);
-      BFD_ASSERT ((h->root.root.type == bfd_link_hash_defined
-                  || h->root.root.type == bfd_link_hash_defweak)
-                 ? (h->root.root.u.def.section->owner->flags & DYNAMIC) != 0
-                 : (h->root.root.u.undef.abfd->flags & DYNAMIC) != 0);
+      BFD_ASSERT (h->plt_offset != 0
+                 || ((h->root.root.type == bfd_link_hash_defined
+                      || h->root.root.type == bfd_link_hash_defweak)
+                     ? (h->root.root.u.def.section->owner->flags
+                        & DYNAMIC) != 0
+                     : (h->root.root.u.undef.abfd->flags & DYNAMIC) != 0));
 
       /* This reloc is against a symbol defined only by a dynamic
         object.  */