aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-04-03 02:54:52 +0000
committerAlan Modra <amodra@gmail.com>2003-04-03 02:54:52 +0000
commit2b98e6c0320bf85b83cf0e3e0aafae272b066075 (patch)
tree0dc8c579a7d9e198649e55aae7f9ee29a04de2b9 /bfd/elf32-ppc.c
parent8fbf1ae5963208bdafb1e8e02446d2665be00410 (diff)
downloadgdb-2b98e6c0320bf85b83cf0e3e0aafae272b066075.zip
gdb-2b98e6c0320bf85b83cf0e3e0aafae272b066075.tar.gz
gdb-2b98e6c0320bf85b83cf0e3e0aafae272b066075.tar.bz2
* 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.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r--bfd/elf32-ppc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 6d54419..6fdfebe 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -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 */