]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link/internal/loadelf: remove useless relocation size information of loong64
authorlimeidan <limeidan@loongson.cn>
Tue, 24 Oct 2023 08:41:25 +0000 (16:41 +0800)
committerGopher Robot <gobot@golang.org>
Sat, 27 Jul 2024 14:13:45 +0000 (14:13 +0000)
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>
src/cmd/link/internal/loadelf/ldelf.go

index c5ea6f7f898376b903541e4dd5d6e10f4dec93c1..9a560e029f7a884d9c7369320dc7c68968ee3241 100644 (file)
@@ -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,