diff --git a/src/cmd/link/internal/loong64/asm.go b/src/cmd/link/internal/loong64/asm.go index 2e69594f92..8a6cce177e 100644 --- a/src/cmd/link/internal/loong64/asm.go +++ b/src/cmd/link/internal/loong64/asm.go @@ -263,9 +263,9 @@ func trampoline(ctxt *ld.Link, ldr *loader.Loader, ri int, rs, s loader.Sym) { r := relocs.At(ri) switch r.Type() { case objabi.ElfRelocOffset + objabi.RelocType(elf.R_LARCH_B26): - // Host object relocations that will be turned into a PLT call. - // The PLT may be too far. Insert a trampoline for them. - fallthrough + // Nothing to do. + // The plt symbol has not been added. If we add tramp + // here, plt will not work. case objabi.R_CALLLOONG64: var t int64 // ldr.SymValue(rs) == 0 indicates a cross-package jump to a function that is not yet