From: laqieer Date: Thu, 27 Oct 2022 20:05:50 +0000 (+0800) Subject: add support for arm to dwarfdump (#449) X-Git-Tag: v0.30~16 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a74c8f9ca466de0738b1e94394aac494ff3db39;p=pyelftools.git add support for arm to dwarfdump (#449) refer to: https://github.com/eliben/pyelftools/pull/445 --- diff --git a/scripts/dwarfdump.py b/scripts/dwarfdump.py index 4050fe5..0e26a89 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_AARCH64": "littleaarch64"} + arches = {"EM_386": "i386", "EM_X86_64": "x86-64", "EM_ARM": "littlearm", "EM_AARCH64": "littleaarch64"} arch = arches[self.elffile['e_machine']] bits = self.elffile.elfclass self._emitline("%s: file format elf%d-%s" % (filename, bits, arch))