From ec177e4c83a5f318e3d65e6405ffbd0715834a98 Mon Sep 17 00:00:00 2001 From: Gawen Arab Date: Wed, 10 Jun 2020 20:31:57 +0000 Subject: [PATCH] cmd/internal/objabi: enable frame-pointer for iOS arm64 This improves stack unwinding of Go code running on iOS arm64. Change-Id: I0494f750c15dcb895f9d4a072352f050d731df17 GitHub-Last-Rev: 435a2a1690dad98975f7463f91241831cd73d3df GitHub-Pull-Request: golang/go#37403 Reviewed-on: https://go-review.googlesource.com/c/go/+/220588 Run-TryBot: Elias Naur TryBot-Result: Gobot Gobot Reviewed-by: Cherry Zhang --- src/cmd/internal/objabi/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/internal/objabi/util.go b/src/cmd/internal/objabi/util.go index 2f94ec6a67d99f..f7873a42b9d6d0 100644 --- a/src/cmd/internal/objabi/util.go +++ b/src/cmd/internal/objabi/util.go @@ -134,7 +134,7 @@ func init() { } func Framepointer_enabled(goos, goarch string) bool { - return framepointer_enabled != 0 && (goarch == "amd64" || goarch == "arm64" && goos == "linux") + return framepointer_enabled != 0 && (goarch == "amd64" || goarch == "arm64" && (goos == "linux" || goos == "darwin")) } func addexp(s string) {