Skip to content

Commit aec5cc5

Browse files
limeidangopherbot
authored andcommitted
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 <[email protected]> Reviewed-by: Cherry Mui <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Than McIntosh <[email protected]> Auto-Submit: abner chenc <[email protected]> Commit-Queue: abner chenc <[email protected]> Reviewed-by: Qiqi Huang <[email protected]> Reviewed-by: abner chenc <[email protected]>
1 parent c6117e8 commit aec5cc5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/cmd/link/internal/loadelf/ldelf.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,11 +1026,7 @@ func relSize(arch *sys.Arch, pn string, elftype uint32) (uint8, uint8, error) {
10261026
LOONG64 | uint32(elf.R_LARCH_SUB16)<<16:
10271027
return 2, 2, nil
10281028

1029-
case LOONG64 | uint32(elf.R_LARCH_SOP_PUSH_PCREL)<<16,
1030-
LOONG64 | uint32(elf.R_LARCH_SOP_PUSH_GPREL)<<16,
1031-
LOONG64 | uint32(elf.R_LARCH_SOP_PUSH_ABSOLUTE)<<16,
1032-
LOONG64 | uint32(elf.R_LARCH_MARK_LA)<<16,
1033-
LOONG64 | uint32(elf.R_LARCH_SOP_POP_32_S_0_10_10_16_S2)<<16,
1029+
case LOONG64 | uint32(elf.R_LARCH_MARK_LA)<<16,
10341030
LOONG64 | uint32(elf.R_LARCH_MARK_PCREL)<<16,
10351031
LOONG64 | uint32(elf.R_LARCH_ADD24)<<16,
10361032
LOONG64 | uint32(elf.R_LARCH_ADD32)<<16,

0 commit comments

Comments
 (0)