Commit c9888bd
committed
cmd/internal/obj/arm64: fix frame pointer restore in epilogue
For leaf but nonzero-frame functions.
Currently we're not restoring it properly. We also need to restore
it before popping the stack frame, so that the frame won't get
clobbered by a signal handler in the meantime.
Fixes #63830
Needs a test, but I'm not at all sure how we would actually do that. Leaving for inspiration.
Change-Id: I273a25f2a838f05a959c810145cccc5428eaf164
Reviewed-on: https://go-review.googlesource.com/c/go/+/538635
Reviewed-by: Cherry Mui <[email protected]>
Reviewed-by: Eric Fang <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: David Chase <[email protected]>1 parent ac85f2b commit c9888bd
1 file changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
850 | 850 | | |
851 | 851 | | |
852 | 852 | | |
| 853 | + | |
| 854 | + | |
853 | 855 | | |
854 | 856 | | |
855 | | - | |
| 857 | + | |
| 858 | + | |
856 | 859 | | |
857 | | - | |
858 | | - | |
| 860 | + | |
859 | 861 | | |
860 | | - | |
| 862 | + | |
| 863 | + | |
861 | 864 | | |
862 | | - | |
| 865 | + | |
863 | 866 | | |
864 | | - | |
865 | | - | |
| 867 | + | |
866 | 868 | | |
867 | | - | |
| 869 | + | |
| 870 | + | |
868 | 871 | | |
869 | 872 | | |
870 | 873 | | |
| |||
0 commit comments