- Amend patch to fix arm unwind table corruption. [bso#13449]

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=83
This commit is contained in:
Richard Biener 2012-01-25 14:13:15 +00:00 committed by Git OBS Bridge
parent bd22e1ff87
commit 1c734b34b0
16 changed files with 116 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 25 14:12:40 UTC 2012 - rguenther@suse.com
- Amend patch to fix arm unwind table corruption. [bso#13449]
-------------------------------------------------------------------
Wed Jan 4 12:31:02 UTC 2012 - rguenther@suse.com

View File

@ -2,6 +2,45 @@
* config/tc-arm.c (create_unwind_entry): Zero allocated table
entries.
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arm.c,v
retrieving revision 1.511
retrieving revision 1.512
diff -u -r1.511 -r1.512
--- src/gas/config/tc-arm.c 2011/12/07 16:58:34 1.511
+++ src/gas/config/tc-arm.c 2011/12/15 10:21:49 1.512
@@ -3540,6 +3540,7 @@
record_alignment (now_seg, 2);
ptr = frag_more (8);
+ memset (ptr, 0, 8);
where = frag_now_fix () - 8;
/* Self relative offset of the function start. */
@@ -19926,8 +19927,12 @@
size = unwind.opcode_count - 2;
}
else
- /* An extra byte is required for the opcode count. */
- size = unwind.opcode_count + 1;
+ {
+ gas_assert (unwind.personality_index == -1);
+
+ /* An extra byte is required for the opcode count. */
+ size = unwind.opcode_count + 1;
+ }
size = (size + 3) >> 2;
if (size > 0xff)
@@ -19953,7 +19958,7 @@
ptr += 4;
/* Set the first byte to the number of additional words. */
- data = size - 1;
+ data = size > 0 ? size - 1 : 0;
n = 3;
break;
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arm.c,v
retrieving revision 1.512
@ -18,3 +57,5 @@ diff -u -r1.512 -r1.513
where = frag_now_fix () - ((size << 2) + 4);
switch (unwind.personality_index)

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 25 14:12:40 UTC 2012 - rguenther@suse.com
- Amend patch to fix arm unwind table corruption. [bso#13449]
-------------------------------------------------------------------
Wed Jan 4 12:31:02 UTC 2012 - rguenther@suse.com

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 25 14:12:40 UTC 2012 - rguenther@suse.com
- Amend patch to fix arm unwind table corruption. [bso#13449]
-------------------------------------------------------------------
Wed Jan 4 12:31:02 UTC 2012 - rguenther@suse.com

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 25 14:12:40 UTC 2012 - rguenther@suse.com
- Amend patch to fix arm unwind table corruption. [bso#13449]
-------------------------------------------------------------------
Wed Jan 4 12:31:02 UTC 2012 - rguenther@suse.com

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 25 14:12:40 UTC 2012 - rguenther@suse.com
- Amend patch to fix arm unwind table corruption. [bso#13449]
-------------------------------------------------------------------
Wed Jan 4 12:31:02 UTC 2012 - rguenther@suse.com

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 25 14:12:40 UTC 2012 - rguenther@suse.com
- Amend patch to fix arm unwind table corruption. [bso#13449]
-------------------------------------------------------------------
Wed Jan 4 12:31:02 UTC 2012 - rguenther@suse.com

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 25 14:12:40 UTC 2012 - rguenther@suse.com
- Amend patch to fix arm unwind table corruption. [bso#13449]
-------------------------------------------------------------------
Wed Jan 4 12:31:02 UTC 2012 - rguenther@suse.com

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 25 14:12:40 UTC 2012 - rguenther@suse.com
- Amend patch to fix arm unwind table corruption. [bso#13449]
-------------------------------------------------------------------
Wed Jan 4 12:31:02 UTC 2012 - rguenther@suse.com

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 25 14:12:40 UTC 2012 - rguenther@suse.com
- Amend patch to fix arm unwind table corruption. [bso#13449]
-------------------------------------------------------------------
Wed Jan 4 12:31:02 UTC 2012 - rguenther@suse.com

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 25 14:12:40 UTC 2012 - rguenther@suse.com
- Amend patch to fix arm unwind table corruption. [bso#13449]
-------------------------------------------------------------------
Wed Jan 4 12:31:02 UTC 2012 - rguenther@suse.com

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 25 14:12:40 UTC 2012 - rguenther@suse.com
- Amend patch to fix arm unwind table corruption. [bso#13449]
-------------------------------------------------------------------
Wed Jan 4 12:31:02 UTC 2012 - rguenther@suse.com

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 25 14:12:40 UTC 2012 - rguenther@suse.com
- Amend patch to fix arm unwind table corruption. [bso#13449]
-------------------------------------------------------------------
Wed Jan 4 12:31:02 UTC 2012 - rguenther@suse.com

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 25 14:12:40 UTC 2012 - rguenther@suse.com
- Amend patch to fix arm unwind table corruption. [bso#13449]
-------------------------------------------------------------------
Wed Jan 4 12:31:02 UTC 2012 - rguenther@suse.com

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 25 14:12:40 UTC 2012 - rguenther@suse.com
- Amend patch to fix arm unwind table corruption. [bso#13449]
-------------------------------------------------------------------
Wed Jan 4 12:31:02 UTC 2012 - rguenther@suse.com

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 25 14:12:40 UTC 2012 - rguenther@suse.com
- Amend patch to fix arm unwind table corruption. [bso#13449]
-------------------------------------------------------------------
Wed Jan 4 12:31:02 UTC 2012 - rguenther@suse.com