]> Cypherpunks repositories - gostls13.git/commit
cmd/link,cmd/internal/objabi: factor out direct call identification
authorJoel Sing <joel@sing.id.au>
Thu, 19 Sep 2019 17:25:16 +0000 (03:25 +1000)
committerJoel Sing <joel@sing.id.au>
Wed, 6 Nov 2019 17:03:51 +0000 (17:03 +0000)
commita2b1dc863fe8effbb2aba2598fd37d3944c1dc4f
tree925190eb558df3880f34324978ec4c1dbd2ce7f2
parent4cb926001cbc068dac62012d86ed1dfbd0a66690
cmd/link,cmd/internal/objabi: factor out direct call identification

Factor out the direct CALL identification code from objabi.IsDirectJump and
use this in two places that have separately maintained lists of reloc types.
Provide an objabi.IsDirectCallOrJump function that implements the original
behaviour of objabi.IsDirectJump.

Change-Id: I48131bae92b2938fd7822110d53df0b4ffb35766
Reviewed-on: https://go-review.googlesource.com/c/go/+/196577
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/internal/objabi/reloctype.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/pcln.go