This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PR11486, uninitialized section contents


Applied.

	PR gas/11486
	* config/tc-ppc.c (ppc_elf_cons): Clear frag contents.

Index: gas/config/tc-ppc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ppc.c,v
retrieving revision 1.164
diff -u -p -r1.164 tc-ppc.c
--- gas/config/tc-ppc.c	10 Feb 2010 19:59:07 -0000	1.164
+++ gas/config/tc-ppc.c	10 Apr 2010 14:06:29 -0000
@@ -1943,6 +1943,7 @@ ppc_elf_cons (int nbytes /* 1=.byte, 2=.
 	      int offset;
 
 	      p = frag_more (nbytes);
+	      memset (p, 0, nbytes);
 	      offset = 0;
 	      if (target_big_endian)
 		offset = nbytes - size;

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]