Skip to content

Commit 7d51961

Browse files
committed
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.
1 parent 9d70c19 commit 7d51961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/arch/x86_64/morestack.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ MORESTACK:
6868
.cfi_offset %rsp, -24
6969

7070
// Save the grandparent stack pointer for the unwinder
71-
leaq 16(%rbp), %rax
71+
leaq 24(%rbp), %rax
7272
pushq %rax
7373

7474
// FIXME: libgcc also saves rax. not sure if we need to

0 commit comments

Comments
 (0)