]> Cypherpunks repositories - gostls13.git/commit
cmd/link: emit correct jump instruction on ARM for DYNIMPORT
authorCherry Zhang <cherryyz@google.com>
Thu, 13 Aug 2020 20:59:52 +0000 (16:59 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 17 Aug 2020 14:55:08 +0000 (14:55 +0000)
commita2a2237ae02016dd9ce16388963cfceece6744f3
tree827d2db4643492247991b282d6606054d477efa6
parent7ee26224436d80dca3f7e98c8fcf21185522d8e6
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: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Joel Sing <joel@sing.id.au>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/arm/asm.go