Skip to content

Commit 0b41b67

Browse files
committed
runtime: use explicit NOFRAME on openbsd/amd64
This CL marks some openbsd assembly functions as NOFRAME to avoid relying on the implicit amd64 NOFRAME heuristic, where NOSPLIT functions without stack were also marked as NOFRAME. Updates #58378 Change-Id: I993549df41a93255fb714357443f8b24c3dfb0a4 Reviewed-on: https://go-review.googlesource.com/c/go/+/466455 Reviewed-by: Keith Randall <[email protected]> Run-TryBot: Quim Muntal <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Joel Sing <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
1 parent 132fae9 commit 0b41b67

File tree

2 files changed

+12
-138
lines changed

2 files changed

+12
-138
lines changed

src/cmd/internal/obj/x86/obj6.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
614614
var usefpheuristic bool
615615
switch ctxt.Headtype {
616616
case objabi.Hwindows, objabi.Hdarwin, objabi.Hlinux, objabi.Hdragonfly,
617-
objabi.Hfreebsd, objabi.Hnetbsd:
617+
objabi.Hfreebsd, objabi.Hnetbsd, objabi.Hopenbsd:
618618
default:
619619
usefpheuristic = true
620620
}

0 commit comments

Comments
 (0)