diff options
author | Alan Modra <amodra@gmail.com> | 2010-04-10 14:12:56 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2010-04-10 14:12:56 +0000 |
commit | aa0c8c1ae13d79f06b4539aa377561bc4f8cc202 (patch) | |
tree | 96f82f7c1511ed8bcf1492c6c170ed84f3dc6e13 /gas/config/tc-ppc.c | |
parent | 9ec7269fc58c675315ed37d71de36d596b9bd466 (diff) | |
download | gdb-aa0c8c1ae13d79f06b4539aa377561bc4f8cc202.zip gdb-aa0c8c1ae13d79f06b4539aa377561bc4f8cc202.tar.gz gdb-aa0c8c1ae13d79f06b4539aa377561bc4f8cc202.tar.bz2 |
PR gas/11486
* config/tc-ppc.c (ppc_elf_cons): Clear frag contents.
Diffstat (limited to 'gas/config/tc-ppc.c')
-rw-r--r-- | gas/config/tc-ppc.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |