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,