diff --git a/src/cmd/link/internal/ld/elf.go b/src/cmd/link/internal/ld/elf.go index 66375b05aee..0fc947fec29 100644 --- a/src/cmd/link/internal/ld/elf.go +++ b/src/cmd/link/internal/ld/elf.go @@ -936,7 +936,7 @@ func Elfinit(ctxt *Link) { fallthrough case sys.AMD64, sys.ARM64, sys.MIPS64: if SysArch.Family == sys.MIPS64 { - ehdr.flags = 0x20000000 /* MIPS 3 */ + ehdr.flags = 0x20000004 /* MIPS 3 CPIC */ } elf64 = true