From: Alan Modra Date: Sat, 10 Apr 2010 14:12:56 +0000 (+0000) Subject: PR gas/11486 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa0c8c1ae13d79f06b4539aa377561bc4f8cc202;p=binutils-gdb.git PR gas/11486 * config/tc-ppc.c (ppc_elf_cons): Clear frag contents. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index ddaad5286d0..6100ba7a66e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2010-04-10 Alan Modra + + PR gas/11486 + * config/tc-ppc.c (ppc_elf_cons): Clear frag contents. + 2010-04-09 Nick Clifton * as.c (create_obj_attrs_section): Remove unused variable addr. diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 5a26d36a0d7..5b5be0a72cb 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -1943,6 +1943,7 @@ ppc_elf_cons (int nbytes /* 1=.byte, 2=.word, 4=.long, 8=.llong */) int offset; p = frag_more (nbytes); + memset (p, 0, nbytes); offset = 0; if (target_big_endian) offset = nbytes - size;