diff --git a/Makefile b/Makefile index 8369d9ac748..dba7d7a8f81 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ TRIMPATH := -trimpath GO_BUILDMODE := # Enable dynamic PIE executables on supported platforms. -ifneq (,$(filter $(GOARCH),386 amd64 arm arm64 ppc64le riscv64 s390x)) +ifneq (,$(filter $(GOARCH),386 amd64 arm arm64 loong64 ppc64le riscv64 s390x)) ifeq (,$(findstring -race,$(EXTRA_FLAGS))) GO_BUILDMODE := "-buildmode=pie" endif diff --git a/docs/spec-conformance.md b/docs/spec-conformance.md index ea2daca6986..2eb7fc4e64b 100644 --- a/docs/spec-conformance.md +++ b/docs/spec-conformance.md @@ -22,6 +22,7 @@ runc binary | seccomp `ppc64le` | `SCMP_ARCH_PPC64LE` `riscv64` | `SCMP_ARCH_RISCV64` `s390x` | `SCMP_ARCH_S390`, `SCMP_ARCH_S390X` +`loong64` | `SCMP_ARCH_LOONGARCH64` The runc binary might be compilable for i386, big-endian PPC64, and several MIPS variants too, but these architectures are not officially supported. diff --git a/libcontainer/seccomp/config.go b/libcontainer/seccomp/config.go index 06849c83c10..476f51d5887 100644 --- a/libcontainer/seccomp/config.go +++ b/libcontainer/seccomp/config.go @@ -65,6 +65,7 @@ var archs = map[string]string{ "SCMP_ARCH_RISCV64": "riscv64", "SCMP_ARCH_S390": "s390", "SCMP_ARCH_S390X": "s390x", + "SCMP_ARCH_LOONGARCH64": "loong64", } // KnownArchs returns the list of the known archs.