Skip to content

Commit 885509a

Browse files
committed
Add loong64 support in seccomp and PIE
Signed-off-by: zhaixiaojuan <[email protected]>
1 parent f023e1c commit 885509a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ TRIMPATH := -trimpath
3131

3232
GO_BUILDMODE :=
3333
# Enable dynamic PIE executables on supported platforms.
34-
ifneq (,$(filter $(GOARCH),386 amd64 arm arm64 ppc64le riscv64 s390x))
34+
ifneq (,$(filter $(GOARCH),386 amd64 arm arm64 loong64 ppc64le riscv64 s390x))
3535
ifeq (,$(findstring -race,$(EXTRA_FLAGS)))
3636
GO_BUILDMODE := "-buildmode=pie"
3737
endif

docs/spec-conformance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ runc binary | seccomp
2222
`ppc64le` | `SCMP_ARCH_PPC64LE`
2323
`riscv64` | `SCMP_ARCH_RISCV64`
2424
`s390x` | `SCMP_ARCH_S390`, `SCMP_ARCH_S390X`
25+
`loong64` | `SCMP_ARCH_LOONGARCH64`
2526

2627
The runc binary might be compilable for i386, big-endian PPC64,
2728
and several MIPS variants too, but these architectures are not officially supported.

libcontainer/seccomp/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ var archs = map[string]string{
6565
"SCMP_ARCH_RISCV64": "riscv64",
6666
"SCMP_ARCH_S390": "s390",
6767
"SCMP_ARCH_S390X": "s390x",
68+
"SCMP_ARCH_LOONGARCH64": "loong64",
6869
}
6970

7071
// KnownArchs returns the list of the known archs.

0 commit comments

Comments
 (0)