Skip to content

Commit

Permalink
cmd/link/internal/loadelf: remove useless relocation size information…
Browse files Browse the repository at this point in the history
… 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]>
  • Loading branch information
limeidan authored and gopherbot committed Jul 27, 2024
1 parent c6117e8 commit aec5cc5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/cmd/link/internal/loadelf/ldelf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit aec5cc5

Please sign in to comment.