]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/riscv: store relocation details in obj.Prog.RestArgs
authorJoel Sing <joel@sing.id.au>
Wed, 5 Feb 2020 17:47:52 +0000 (04:47 +1100)
committerJoel Sing <joel@sing.id.au>
Sun, 15 Mar 2020 06:17:36 +0000 (06:17 +0000)
commit2b920cba8fa68f8ded28150ec1b1a5cea61ae0f0
tree12211944993c911294999433071d6c9f1566330b
parentdad94e7c39e748a4134efc67ff9256a5addf34b7
cmd/internal/obj/riscv: store relocation details in obj.Prog.RestArgs

Store the relocation offset and symbol in obj.Prog.RestArgs, rather than
overloading obj.Prog.From and having to deal with invalid offsets
potentially existing when the instruction is encoded.

Change-Id: Iff0d678361677e78b41b887f6eba08cee94fccb3
Reviewed-on: https://go-review.googlesource.com/c/go/+/218197
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