diff options
author | Nick Clifton <nickc@redhat.com> | 2011-12-21 17:07:21 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-12-21 17:07:21 +0000 |
commit | e9e2f11729833d4aae7723cc0119373a611808a1 (patch) | |
tree | d816cad6ac2200f98bda411c97136b74a0b412e5 | |
parent | 50300bc7ec875dcd364035b3ec1f4ae8a303feda (diff) | |
download | binutils-redhat-e9e2f11729833d4aae7723cc0119373a611808a1.tar.gz |
PR gas/13449
* config/tc-arm.c (create_unwind_entry): Zero allocated table
entries.
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/tc-arm.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 6cfd3dbe5b..6479a1f89f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2011-12-21 Nick Clifton <nickc@redhat.com> + + PR gas/13449 + * config/tc-arm.c (create_unwind_entry): Zero allocated table + entries. + 2011-12-19 Iain Sandoe <idsandoe@googlemail.com> * config/obj-macho.c (obj_mach_o_section): Account for target- diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 865f430cd5..02a63a6e3c 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -19944,6 +19944,8 @@ create_unwind_entry (int have_data) /* Allocate the table entry. */ ptr = frag_more ((size << 2) + 4); + /* PR 13449: Zero the table entries in case some of them are not used. */ + memset (ptr, 0, (size << 2) + 4); where = frag_now_fix () - ((size << 2) + 4); switch (unwind.personality_index) |