weakdef list handling
[deliverable/binutils-gdb.git] / bfd / elflink.c
index 122549c594b1034553383200abe225f1146cf95d..72886d57e50d2bdad83c3930c364fe01063e79f6 100644 (file)
@@ -5145,10 +5145,10 @@ error_free_dyn:
          weaks = hlook->u.weakdef;
          hlook->u.weakdef = NULL;
 
-         BFD_ASSERT (hlook->root.type == bfd_link_hash_defined
-                     || hlook->root.type == bfd_link_hash_defweak
-                     || hlook->root.type == bfd_link_hash_common
-                     || hlook->root.type == bfd_link_hash_indirect);
+         if (hlook->root.type != bfd_link_hash_defined
+             && hlook->root.type != bfd_link_hash_defweak)
+           continue;
+
          slook = hlook->root.u.def.section;
          vlook = hlook->root.u.def.value;
 
This page took 0.029081 seconds and 4 git commands to generate.