aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link/internal
diff options
context:
space:
mode:
authorlimeidan <limeidan@loongson.cn>2023-10-24 16:41:25 +0800
committerGopher Robot <gobot@golang.org>2024-07-27 14:13:45 +0000
commitaec5cc52add9d8da0b5ac4e51758d10ee35589db (patch)
tree339bda64a6ff03d9c1ca238ff039d6a58c4be33e /src/cmd/link/internal
parentc6117e8f05a55dad96b5d36cd04702b5424eab5a (diff)
downloadgo-aec5cc52add9d8da0b5ac4e51758d10ee35589db.tar.xz
cmd/link/internal/loadelf: remove useless relocation size information of loong64
As of CL 455017 we have switched to following the new style relocations on loong64, these stack based relocations should be removed. Change-Id: Ic129a5665cf6f183a32e13b6f1a55d712a99d721 Reviewed-on: https://go-review.googlesource.com/c/go/+/537335 Reviewed-by: sophie zhao <zhaoxiaolin@loongson.cn> Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Than McIntosh <thanm@google.com> Auto-Submit: abner chenc <chenguoqi@loongson.cn> Commit-Queue: abner chenc <chenguoqi@loongson.cn> Reviewed-by: Qiqi Huang <huangqiqi@loongson.cn> Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Diffstat (limited to 'src/cmd/link/internal')
-rw-r--r--src/cmd/link/internal/loadelf/ldelf.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cmd/link/internal/loadelf/ldelf.go b/src/cmd/link/internal/loadelf/ldelf.go
index c5ea6f7f89..9a560e029f 100644
--- a/src/cmd/link/internal/loadelf/ldelf.go
+++ b/src/cmd/link/internal/loadelf/ldelf.go
@@ -1026,11 +1026,7 @@ func relSize(arch *sys.Arch, pn string, elftype uint32) (uint8, uint8, error) {
LOONG64 | uint32(elf.R_LARCH_SUB16)<<16:
return 2, 2, nil
- case LOONG64 | uint32(elf.R_LARCH_SOP_PUSH_PCREL)<<16,
- LOONG64 | uint32(elf.R_LARCH_SOP_PUSH_GPREL)<<16,
- LOONG64 | uint32(elf.R_LARCH_SOP_PUSH_ABSOLUTE)<<16,
- LOONG64 | uint32(elf.R_LARCH_MARK_LA)<<16,
- LOONG64 | uint32(elf.R_LARCH_SOP_POP_32_S_0_10_10_16_S2)<<16,
+ case LOONG64 | uint32(elf.R_LARCH_MARK_LA)<<16,
LOONG64 | uint32(elf.R_LARCH_MARK_PCREL)<<16,
LOONG64 | uint32(elf.R_LARCH_ADD24)<<16,
LOONG64 | uint32(elf.R_LARCH_ADD32)<<16,