public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PR11486, uninitialized section contents
@ 2010-04-10 14:13 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2010-04-10 14:13 UTC (permalink / raw)
  To: binutils

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

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

only message in thread, other threads:[~2010-04-10 14:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-10 14:13 PR11486, uninitialized section contents 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).