diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2019-05-02 07:51:47 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2019-05-02 07:52:45 +0200 |
| commit | f1ef94eaf82276bb2fa129bce54344c2d481cd7a (patch) | |
| tree | 899b1907df89f0dab101acd1dbeac2d5456061f7 | |
| parent | 2d65efa72eb1692a24706041954be244c72b7865 (diff) | |
| download | miasm-f1ef94eaf82276bb2fa129bce54344c2d481cd7a.tar.gz miasm-f1ef94eaf82276bb2fa129bce54344c2d481cd7a.zip | |
Loader: fix static elf symtab
| -rw-r--r-- | miasm/loader/elf_init.py | 2 |
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): |