daemon: Fix loongarch64 detection on RHEL 9

$ rpm -q file
file-5.39-16.el9.x86_64
$ file ./test-data/binaries/bin-loongarch64-dynamic
./test-data/binaries/bin-loongarch64-dynamic: ELF 64-bit LSB pie executable, *unknown arch 0x102* version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-loongarch-lp64d.so.1, BuildID[sha1]=7622a1a70bf6e697851ac3790557e1ca686459b5, for GNU/Linux 5.19.0, stripped

Updates: commit 729d6d55ea
(cherry picked from commit 4176b2043f)
This commit is contained in:
Richard W.M. Jones
2025-03-11 13:36:12 +00:00
parent 19c4d1c8b9
commit 9a5892b8df

View File

@@ -100,6 +100,8 @@ and canonical_elf_arch bits endianness elf_arch =
)
else if substr "LoongArch" then
sprintf "loongarch%s" bits
else if substr "*unknown arch 0x102*" then (* file command on RHEL 9 *)
sprintf "loongarch%s" bits
else
elf_arch