]> Cypherpunks repositories - gostls13.git/commit
cmd/link: pass architecture to isPLTCall
authorlimeidan <limeidan@loongson.cn>
Wed, 17 Apr 2024 03:29:13 +0000 (11:29 +0800)
committerGopher Robot <gobot@golang.org>
Sat, 27 Jul 2024 14:02:24 +0000 (14:02 +0000)
commitc6117e8f05a55dad96b5d36cd04702b5424eab5a
treed65e3eb53e9a6dc3bf31444d28766642174f5281
parent0a9321ad7f8c91e1b0c7184731257df923977eb9
cmd/link: pass architecture to isPLTCall

The relocation number of each architecture starts from 0. objabi.ElfRelocOffset
+ objabi.RelocType(xxx) cannot uniquely represent a relocation, so the new
argument 'arch' was added to help identify relocation.

Change-Id: Ic8121dbfd1a4f31f279d50ffdc9c932ce3066efd
Reviewed-on: https://go-review.googlesource.com/c/go/+/580275
Commit-Queue: abner chenc <chenguoqi@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Auto-Submit: abner chenc <chenguoqi@loongson.cn>
src/cmd/link/internal/ld/data.go