]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: only emit R_CALLIND relocations on calls
authorCherry Zhang <cherryyz@google.com>
Wed, 7 Oct 2020 18:39:47 +0000 (14:39 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 7 Oct 2020 20:18:43 +0000 (20:18 +0000)
commit3f7b4d12075277f28427e6b57708258225841ecd
tree0f77f5ca609bc680c60ade51ddc1d7e804fb4225
parentade5161f51f2b7239705047875dc36c35139b253
cmd/internal/obj/arm64: only emit R_CALLIND relocations on calls

Don't emit it for jumps. In particular, not for the return
instruction, which is JMP (LR).

Reduce some binary size and linker resources.

Change-Id: Idb3242b86c5a137597fb8accb8aadfe0244c14cf
Reviewed-on: https://go-review.googlesource.com/c/go/+/260341
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/internal/obj/arm64/asm7.go