From 394be60ec8d5eaa817fdf248c4a01e465aa7a082 Mon Sep 17 00:00:00 2001 From: Hengqi Chen Date: Sun, 7 Jan 2024 13:42:16 +0000 Subject: [PATCH] cmd/bpf2go: Make LoongArch a supported target In #975, someone added support for the loong64 GOARCH, but did't provide a Linux string for it. Since the upstream support ([0]) has already landed, let's add the missing Linux string and make LoongArch a supported target. [0]: https://github.com/torvalds/linux/commit/00883922ab40 Signed-off-by: Hengqi Chen --- cmd/bpf2go/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bpf2go/main.go b/cmd/bpf2go/main.go index 92d72277b..a852fcf6f 100644 --- a/cmd/bpf2go/main.go +++ b/cmd/bpf2go/main.go @@ -53,7 +53,7 @@ var targetByGoArch = map[string]target{ "amd64p32": {"bpfel", ""}, "arm": {"bpfel", "arm"}, "arm64": {"bpfel", "arm64"}, - "loong64": {"bpfel", ""}, + "loong64": {"bpfel", "loongarch"}, "mipsle": {"bpfel", ""}, "mips64le": {"bpfel", ""}, "mips64p32le": {"bpfel", ""},