diff options
| author | Camille Mougey <commial@gmail.com> | 2019-05-02 11:20:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-02 11:20:38 +0200 |
| commit | 82ec0ab9b24553c894540bb1f560df2cf062679b (patch) | |
| tree | 899b1907df89f0dab101acd1dbeac2d5456061f7 | |
| parent | 2d65efa72eb1692a24706041954be244c72b7865 (diff) | |
| parent | f1ef94eaf82276bb2fa129bce54344c2d481cd7a (diff) | |
| download | miasm-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.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): |