mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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: commit729d6d55ea(cherry picked from commit4176b2043f)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user