public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Small powerpc64 linker speedup
@ 2006-08-17  9:41 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2006-08-17  9:41 UTC (permalink / raw)
  To: binutils

This should prevent some unnecessary scanning of relocs.

	* elf64-ppc.c (ppc64_elf_size_stubs): Ignore non-code sections.

Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.242
diff -u -p -r1.242 elf64-ppc.c
--- bfd/elf64-ppc.c	8 Aug 2006 14:21:46 -0000	1.242
+++ bfd/elf64-ppc.c	17 Aug 2006 07:32:55 -0000
@@ -9080,6 +9080,9 @@ ppc64_elf_size_stubs (bfd *output_bfd,
 	      /* If there aren't any relocs, then there's nothing more
 		 to do.  */
 	      if ((section->flags & SEC_RELOC) == 0
+		  || (section->flags & SEC_ALLOC) == 0
+		  || (section->flags & SEC_LOAD) == 0
+		  || (section->flags & SEC_CODE) == 0
 		  || section->reloc_count == 0)
 		continue;
 

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-08-17  8:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-17  9:41 Small powerpc64 linker speedup Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).