* elf32-ppc.c (ppc_elf_check_relocs): Don't use SYMBOL_REFERENCES_LOCAL
authorAlan Modra <amodra@gmail.com>
Thu, 3 Apr 2003 02:54:52 +0000 (02:54 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 3 Apr 2003 02:54:52 +0000 (02:54 +0000)
here as it's too early to reliably determine locality.
(ppc_elf_gc_sweep_hook): Likewise.

bfd/ChangeLog
bfd/elf32-ppc.c

index ca9eb97ddd68a8b61c59711fc9d2e44e5382dffc..122369d89c4df2d3d25a0bb7493ecb5ea678ea9a 100644 (file)
@@ -1,3 +1,9 @@
+2003-04-03  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-ppc.c (ppc_elf_check_relocs): Don't use SYMBOL_REFERENCES_LOCAL
+       here as it's too early to reliably determine locality.
+       (ppc_elf_gc_sweep_hook): Likewise.
+
 2003-04-02  Bob Wilson  <bob.wilson@acm.org>
 
        * xtensa-modules.c: Remove comment indicating that this is a
index 6d544192987c587d60bd2bd525a5d86db633d042..6fdfebe795f9d20196e0decf7f60a17ab18d791d 100644 (file)
@@ -3459,8 +3459,7 @@ ppc_elf_check_relocs (abfd, info, sec, relocs)
        case R_PPC_REL14_BRNTAKEN:
        case R_PPC_REL32:
          if (h == NULL
-             || strcmp (h->root.root.string, "_GLOBAL_OFFSET_TABLE_") == 0
-             || SYMBOL_REFERENCES_LOCAL (info, h))
+             || strcmp (h->root.root.string, "_GLOBAL_OFFSET_TABLE_") == 0)
            break;
          /* fall through */
 
@@ -3745,8 +3744,7 @@ ppc_elf_gc_sweep_hook (abfd, info, sec, relocs)
        case R_PPC_REL14_BRNTAKEN:
        case R_PPC_REL32:
          if (h == NULL
-             || strcmp (h->root.root.string, "_GLOBAL_OFFSET_TABLE_") == 0
-             || SYMBOL_REFERENCES_LOCAL (info, h))
+             || strcmp (h->root.root.string, "_GLOBAL_OFFSET_TABLE_") == 0)
            break;
          /* Fall thru */