aboutsummaryrefslogtreecommitdiff
path: root/test/codegen
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2020-04-02 22:12:38 -0400
committerCherry Zhang <cherryyz@google.com>2020-04-03 13:43:12 +0000
commit5dde10c3044f75fbcc29193608a7b7156a3c9ef6 (patch)
treed24b4ee14612fa6d66edac83272bc12d11b5258d /test/codegen
parent6117275788ae5f63a1229cf058baf55a818a34c1 (diff)
downloadgo-5dde10c3044f75fbcc29193608a7b7156a3c9ef6.tar.xz
cmd/internal/obj/mips: don't emit spurious CALLIND relocations
Generate a CALLIND relocation only for indirect calls, not for indirect jumps. In particular, the RET instruction is lowered to JMP (LR), an indirect jump, and occurs frequently. The large amount of spurious relocations causes the linker to do a lot of extra work. Change-Id: Ie0edc04609788f5a687fd00c22558c3f83867697 Reviewed-on: https://go-review.googlesource.com/c/go/+/227079 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'test/codegen')
0 files changed, 0 insertions, 0 deletions