mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Clear the memory allocated to build the unwind tables. This fixes C++
exceptions on ARM EABI with static binaries.
This commit is contained in:
parent
1c3515d2d5
commit
e63b930908
1 changed files with 2 additions and 0 deletions
|
|
@ -3079,6 +3079,7 @@ s_arm_unwind_fnend (int ignored ATTRIBUTE_UNUSED)
|
|||
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. */
|
||||
|
|
@ -17350,6 +17351,7 @@ create_unwind_entry (int have_data)
|
|||
|
||||
/* Allocate the table entry. */
|
||||
ptr = frag_more ((size << 2) + 4);
|
||||
memset(ptr, 0, (size << 2) + 4);
|
||||
where = frag_now_fix () - ((size << 2) + 4);
|
||||
|
||||
switch (unwind.personality_index)
|
||||
|
|
|
|||
Loading…
Reference in a new issue