]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/riscv: restore the ADDI instruction in jalrToSym
authorJoel Sing <joel@sing.id.au>
Wed, 22 Jan 2020 16:31:49 +0000 (03:31 +1100)
committerJoel Sing <joel@sing.id.au>
Thu, 23 Jan 2020 07:39:53 +0000 (07:39 +0000)
commit9f07cdd99ee70b90e2a5fe998acb48c5fc6e39f2
tree99a2f7c622dd44689e8df013c9f4aff94967c98e
parentfa610c776e4bc659211b65a2dfbc74051ef99159
cmd/internal/obj/riscv: restore the ADDI instruction in jalrToSym

While this instruction is not needed for the relocation (the lower immediate
can be patched directly into the JALR instruction), other code currently
depends on the jump sequence being 12 bytes (or three instructions) long.
Put the ADDI instruction back until these can be found and fixed.

Updates #27532

Change-Id: Idb73d716be8eb2eb796591b30f1ec4dc104f2bf8
Reviewed-on: https://go-review.googlesource.com/c/go/+/215840
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/internal/obj/riscv/obj.go