From e1371ad18cad6f0eaf3a9909ea57b779823489c2 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 26 Oct 1995 18:42:46 +0000 Subject: [PATCH] tweak .loader reloc counting --- bfd/xcofflink.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c index 0e272f5d24..33251b1bd0 100644 --- a/bfd/xcofflink.c +++ b/bfd/xcofflink.c @@ -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: -- 2.34.1