Commit a2a2237a authored by Cherry Zhang's avatar Cherry Zhang
Browse files

cmd/link: emit correct jump instruction on ARM for DYNIMPORT

On ARM, for a JMP/CALL relocation, the instruction bytes is
encoded in Reloc.Add (issue #19811). I really hate it, but before
it is fixed we have to follow the rule and emit the right bits
from r.Add.

Fixes #40769.

Change-Id: I862e105408d344c5cc58ca9140d2e552e4364453
Reviewed-on: https://go-review.googlesource.com/c/go/+/248399


Reviewed-by: default avatarJeremy Faller <jeremy@golang.org>
Reviewed-by: default avatarJoel Sing <joel@sing.id.au>
Reviewed-by: default avatarThan McIntosh <thanm@google.com>
parent 7ee26224
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment