]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: fix inline assembly trampoline for arm64
authorKhaled Yakdan <yakdan@code-intelligence.com>
Mon, 23 May 2022 23:20:00 +0000 (23:20 +0000)
committerCherry Mui <cherryyz@google.com>
Tue, 7 Jun 2022 14:47:46 +0000 (14:47 +0000)
commit77d9252ddfc6b3e2e48916240340ea5470b005a6
tree3b437e114721e7de08072b4f8d6f7ac7f73561b8
parent38607c553878da21b5042e63997ecb3b7201e684
runtime: fix inline assembly trampoline for arm64

Use the program counter to compute the address of the first instruction
of the ret sled. The ret sled is located after 5 instructions from the
MOVD instruction saving the value of the program counter.

Change-Id: Ie7ae7a0807785d6fea035cf7a770dba7f37de0ec
GitHub-Last-Rev: 2719208c6a3b049e0f394e5311ce3282b58f8516
GitHub-Pull-Request: golang/go#53039
Reviewed-on: https://go-review.googlesource.com/c/go/+/407895
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/runtime/libfuzzer_arm64.s