PR gas/11486
authorAlan Modra <amodra@gmail.com>
Sat, 10 Apr 2010 14:12:56 +0000 (14:12 +0000)
committerAlan Modra <amodra@gmail.com>
Sat, 10 Apr 2010 14:12:56 +0000 (14:12 +0000)
* config/tc-ppc.c (ppc_elf_cons): Clear frag contents.

gas/ChangeLog
gas/config/tc-ppc.c

index ddaad5286d038faabe1ac8181e611390a443bcc7..6100ba7a66e11fd2a1b0e5c82d58dc8587243f01 100644 (file)
@@ -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.
index 5a26d36a0d77e9ec6dd1ef3c7a80ab40e993b32c..5b5be0a72cbf442b2fb3ded8aca3447ff9993537 100644 (file)
@@ -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;