]> Cypherpunks repositories - gostls13.git/commit
cmd/link: clean up some relocation handling
authorCherry Mui <cherryyz@google.com>
Thu, 8 Jun 2023 17:23:39 +0000 (13:23 -0400)
committerCherry Mui <cherryyz@google.com>
Thu, 20 Jul 2023 19:41:53 +0000 (19:41 +0000)
commit66c8410c7331edc2762bae3babb58e6e715eb066
tree6b34c06cb1c9ac9bc6559a7d30851f665484f273
parentac81156bce3ff4bfdcf983cf21acb6830a450a4b
cmd/link: clean up some relocation handling

We don't use R_PCREL for calls to dynamic symbols (we use R_CALL
instead). Don't handle R_PCREL as a call.

We don't use R_CALL on ARM64 (we use R_CALLARM64 instead).

Remove those cases, which we don't expect to see.

Change-Id: Idd99022a8eeb65750ffc2936ffdccf8bb0405e30
Reviewed-on: https://go-review.googlesource.com/c/go/+/501859
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/amd64/asm.go
src/cmd/link/internal/arm64/asm.go