summaryrefslogtreecommitdiff
path: root/binutils/patches/pr13449.diff
blob: e969b56d43d6c1ee27b6007968e1d294782dac51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2011-12-21  Nick Clifton  <nickc@redhat.com>

	PR gas/13449
	* config/tc-arm.c (create_unwind_entry): Zero allocated table
	entries.

 
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 865f430..02a63a6 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)