]> git.feebdaed.xyz Git - 0xmirror/go.git/commit
cmd/link, cmd/internal/obj: fix a remote call failure issue
authorlimeidan <limeidan@loongson.cn>
Mon, 24 Nov 2025 09:28:42 +0000 (17:28 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Thu, 27 Nov 2025 02:59:35 +0000 (18:59 -0800)
commitd8269ab0d59212fed0f5975f7083f6bbbfc00ec4
tree36be981db2c4423b3ce5d1401c8f8fde3fa8740e
parentc6d64f85565e6a934110c4928ca95fea0045ebaa
cmd/link, cmd/internal/obj: fix a remote call failure issue

When a function call exceeds the immediate value range of the instruction,
a trampoline is required to assist in the jump. Trampoline is only omitted
when plt is needed; otherwise, a check is required.

Change-Id: I7fe2e08d75f6f574475837b560e650bbd4215858
Reviewed-on: https://go-review.googlesource.com/c/go/+/724580
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: sophie zhao <zhaoxiaolin@loongson.cn>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/internal/obj/loong64/asm.go
src/cmd/link/internal/loong64/asm.go