rt: Make unwinding through __morestack work on mac
Had to bump the min stack size in some of the tests from 256 bytes to 1024 bytes. Not sure why yet.
This commit is contained in:
parent
3e32f6623c
commit
887d970fee
1 changed files with 1 additions and 3 deletions
|
|
@ -73,13 +73,11 @@ MORESTACK:
|
|||
|
||||
// During unwinding we want to skip our caller since it's not
|
||||
// a complete frame and will make the unwinder sad
|
||||
#if defined(__linux__)
|
||||
// Don't understand this line
|
||||
.cfi_offset 16, 0
|
||||
// Tell the unwinding where to get the stack pointer for
|
||||
// our grandparent frame
|
||||
.cfi_offset %rsp, -24
|
||||
#endif
|
||||
|
||||
// Save the grandparent stack pointer for the unwinder
|
||||
leaq 16(%rbp), %rax
|
||||
|
|
@ -162,4 +160,4 @@ MORESTACK:
|
|||
#else
|
||||
MORESTACK:
|
||||
ret
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue