提交 7d51961b 编写于 作者: B Brian Anderson

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.
上级 9d70c194
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册