rt: Fix saved address of unwinding %rsp in __morestack

I haven't thought too deeply about this, but I think I was telling the
unwinder to use the stack pointer for the wrong frame when unwinding. Not sure
how that could have worked at all, but this results in the correct alignment
for cleanups.
This commit is contained in:
Brian Anderson 2011-12-15 15:12:43 -08:00
parent 9d70c1949e
commit 7d51961b6f

View File

@ -68,7 +68,7 @@ MORESTACK:
.cfi_offset %rsp, -24
// Save the grandparent stack pointer for the unwinder
leaq 16(%rbp), %rax
leaq 24(%rbp), %rax
pushq %rax
// FIXME: libgcc also saves rax. not sure if we need to