From 37d2379be243ff1d931951aa268b00df2336a76f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 7 Mar 2024 16:46:58 +0000 Subject: [PATCH] daemon: Fix file architecture translation for LoongArch Fixes: commit 729d6d55ea84494f0398d02450bd29c39c55f0bd --- daemon/filearch.ml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/filearch.ml b/daemon/filearch.ml index cf784f18a..7dfc1cb71 100644 --- a/daemon/filearch.ml +++ b/daemon/filearch.ml @@ -98,6 +98,8 @@ and canonical_elf_arch bits endianness elf_arch = | "64" -> "s390x" | _ -> failwithf "unknown S/390 bit size: %s" bits ) + else if substr "LoongArch" then + sprintf "loongarch%s" bits else elf_arch