From f1ef94eaf82276bb2fa129bce54344c2d481cd7a Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Thu, 2 May 2019 07:51:47 +0200 Subject: [PATCH] Loader: fix static elf symtab --- miasm/loader/elf_init.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miasm/loader/elf_init.py b/miasm/loader/elf_init.py index 36c4cfafc..786d030b8 100644 --- a/miasm/loader/elf_init.py +++ b/miasm/loader/elf_init.py @@ -104,6 +104,8 @@ class WRel64(StructWrapper): wrapped._fields.append(("type", "u32")) def get_sym(self): + if not hasattr(self.parent.linksection, 'symtab'): + return None return self.parent.linksection.symtab[self.cstr.info >> 32].name def get_type(self):