]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link/internal/ld: disable execute-only for external linking on openbsd/arm64
authorJoel Sing <joel@sing.id.au>
Thu, 13 Apr 2023 19:47:36 +0000 (05:47 +1000)
committerJoel Sing <joel@sing.id.au>
Fri, 14 Apr 2023 19:17:15 +0000 (19:17 +0000)
commitdd53a439206e9b4bf194eb00fb28577a03d86df5
tree3ad3825c3629e72f2d90068c5eab7d18750199f3
parent35ec948de766e7e8854b95edda3a0bb4723a63ec
cmd/link/internal/ld: disable execute-only for external linking on openbsd/arm64

The Go arm64 assembler places constants into the text section of a binary.
OpenBSD 7.3 enabled xonly by default on OpenBSD/arm64. This means that any
externally linked Go binary now segfaults. Disable execute-only when invoking
the external linker on openbsd/arm64, in order to work around this issue.

Updates #59615

Change-Id: I1a291293da3c6e4409b21873d066ea15e9bfe280
Reviewed-on: https://go-review.googlesource.com/c/go/+/484555
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Aaron Bieber <deftly@gmail.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/lib.go