ELIMINATE_COPY_RELOCS problems on ppc

Alan Modra amodra@bigpond.net.au
Thu Apr 3 02:53:00 GMT 2003


Applying.

	* 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.

Index: bfd/elf32-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-ppc.c,v
retrieving revision 1.72
diff -u -p -r1.72 elf32-ppc.c
--- bfd/elf32-ppc.c	10 Mar 2003 23:25:13 -0000	1.72
+++ bfd/elf32-ppc.c	3 Apr 2003 02:20:46 -0000
@@ -3459,8 +3459,7 @@ ppc_elf_check_relocs (abfd, info, sec, r
 	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, 
 	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 */
 

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list