about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2019-05-02 11:20:38 +0200
committerGitHub <noreply@github.com>2019-05-02 11:20:38 +0200
commit82ec0ab9b24553c894540bb1f560df2cf062679b (patch)
tree899b1907df89f0dab101acd1dbeac2d5456061f7
parent2d65efa72eb1692a24706041954be244c72b7865 (diff)
parentf1ef94eaf82276bb2fa129bce54344c2d481cd7a (diff)
downloadmiasm-82ec0ab9b24553c894540bb1f560df2cf062679b.tar.gz
miasm-82ec0ab9b24553c894540bb1f560df2cf062679b.zip
Merge pull request #1031 from serpilliere/fix_elf_loader_static
Loader: fix static elf symtab
-rw-r--r--miasm/loader/elf_init.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/miasm/loader/elf_init.py b/miasm/loader/elf_init.py
index 36c4cfaf..786d030b 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):