]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/x86: add support for the endbr64 instruction on amd64
authorJoel Sing <joel@sing.id.au>
Fri, 14 Jun 2024 15:29:32 +0000 (01:29 +1000)
committerJoel Sing <joel@sing.id.au>
Thu, 20 Feb 2025 11:20:03 +0000 (03:20 -0800)
commit04de448c6d9d0ceab7f04b1f3d44f91e8b129d58
tree48dfaf7647a5749f0275c8644f765b0e051f51ce
parent9b842e2e63b660dd5e9ac39bac58a578d7b69824
cmd/internal/obj/x86: add support for the endbr64 instruction on amd64

Add support for endbr64, which terminates an indirect branch in 64-bit
mode. This is effectively used to mark locations where an indirect branch
is permitted to land, when Indirect Branch Tracking (IBT) is enforced on
Intel CPUs.

Updates #66054

Change-Id: Ib898031711cfaaa6e05c197bfe727ded0bce6f52
Reviewed-on: https://go-review.googlesource.com/c/go/+/649215
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/asm/internal/asm/testdata/amd64enc_extra.s
src/cmd/internal/obj/x86/aenum.go
src/cmd/internal/obj/x86/anames.go
src/cmd/internal/obj/x86/asm6.go