Skip to content

Commit cb5022f

Browse files
committed
Add loong64 support in seccomp and PIE
1 parent f023e1c commit cb5022f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-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

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)