aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-04-10 14:12:56 +0000
committerAlan Modra <amodra@gmail.com>2010-04-10 14:12:56 +0000
commitaa0c8c1ae13d79f06b4539aa377561bc4f8cc202 (patch)
tree96f82f7c1511ed8bcf1492c6c170ed84f3dc6e13 /gas
parent9ec7269fc58c675315ed37d71de36d596b9bd466 (diff)
downloadgdb-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')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-ppc.c1
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;