diff options
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-ppc.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index ddaad52..6100ba7 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2010-04-10 Alan Modra <amodra@gmail.com> + + PR gas/11486 + * config/tc-ppc.c (ppc_elf_cons): Clear frag contents. + 2010-04-09 Nick Clifton <nickc@redhat.com> * 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 5a26d36..5b5be0a 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; |