]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/x86: fix relocation offset for VEX encoded instructions
authorIlya Tocar <ilya.tocar@intel.com>
Mon, 13 Mar 2017 21:30:54 +0000 (16:30 -0500)
committerIlya Tocar <ilya.tocar@intel.com>
Thu, 20 Apr 2017 18:23:31 +0000 (18:23 +0000)
commit7f9832254c78266cf8f3bbd632c806e5c71b6d5a
treee7162474c2fdd564e1fb1fc62795d4150a59482f
parent4646a330905d8195e2664e6142832ad118f7bb03
cmd/internal/obj/x86: fix relocation offset for VEX encoded instructions

VEX encoded instructions don't have a REX byte, so for PC relative
addressing we don't need to recalculate relocation offset.

Fixes #19518

Change-Id: Icf5414962de4350d76fd220817498337f90614fc
Reviewed-on: https://go-review.googlesource.com/38138
Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/internal/obj/x86/asm6.go
src/cmd/internal/obj/x86/issue19518_test.go [new file with mode: 0644]