tweak .loader reloc counting
[deliverable/binutils-gdb.git] / bfd / xcofflink.c
index 0e272f5d24e9d37aabc919d8fa08fbbf3d56825f..33251b1bd06e7014fb713fb1a306d7d861f53380 100644 (file)
@@ -2428,7 +2428,13 @@ xcoff_mark (info, sec)
                  if (h == NULL
                      || h->root.type == bfd_link_hash_defined
                      || h->root.type == bfd_link_hash_defweak
-                     || h->root.type == bfd_link_hash_common)
+                     || h->root.type == bfd_link_hash_common
+                     || ((h->flags & XCOFF_CALLED) != 0
+                         && (h->flags & XCOFF_DEF_REGULAR) == 0
+                         && (h->flags & XCOFF_REF_DYNAMIC) != 0
+                         && (h->root.type == bfd_link_hash_undefined
+                             || h->root.type == bfd_link_hash_undefweak)
+                         && h->root.root.string[0] == '.'))
                    break;
                  /* Fall through.  */
                case R_POS:
This page took 0.022644 seconds and 4 git commands to generate.