From 6c36d795c5f97df17803dc6db1832f4b90ccf086 Mon Sep 17 00:00:00 2001 From: haomi123 <68223875+haomi123@users.noreply.github.com> Date: Tue, 31 Jan 2023 00:49:56 +0800 Subject: [PATCH] add support for loongarch64 to dwarfdump (#458) --- scripts/dwarfdump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dwarfdump.py b/scripts/dwarfdump.py index 0e26a89..10464e4 100644 --- a/scripts/dwarfdump.py +++ b/scripts/dwarfdump.py @@ -342,7 +342,7 @@ class ReadElf(object): self.elffile = ELFFile(file) self.output = output self._dwarfinfo = self.elffile.get_dwarf_info() - arches = {"EM_386": "i386", "EM_X86_64": "x86-64", "EM_ARM": "littlearm", "EM_AARCH64": "littleaarch64"} + arches = {"EM_386": "i386", "EM_X86_64": "x86-64", "EM_ARM": "littlearm", "EM_AARCH64": "littleaarch64", "EM_LOONGARCH64": "loongarch64"} arch = arches[self.elffile['e_machine']] bits = self.elffile.elfclass self._emitline("%s: file format elf%d-%s" % (filename, bits, arch)) -- 2.30.2