save a little memory

Alan Modra amodra@bigpond.net.au
Thu May 30 21:20:00 GMT 2002


	* elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
	space for bss .plt.

Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.46
diff -u -p -r1.46 elf64-ppc.c
--- bfd/elf64-ppc.c	29 May 2002 05:00:01 -0000	1.46
+++ bfd/elf64-ppc.c	31 May 2002 03:29:25 -0000
@@ -3923,6 +3923,10 @@ ppc64_elf_size_dynamic_sections (output_
 	  continue;
 	}
 
+      /* .plt is in the bss section.  We don't initialise it.  */
+      if ((s->flags & SEC_LOAD) == 0)
+	continue;
+
       /* Allocate memory for the section contents.  We use bfd_zalloc
 	 here in case unused entries are not reclaimed before the
 	 section's contents are written out.  This should not happen,

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list