Skip to content

Commit

Permalink
Merge pull request cea-sec#1031 from serpilliere/fix_elf_loader_static
Browse files Browse the repository at this point in the history
Loader: fix static elf symtab
  • Loading branch information
commial authored May 2, 2019
2 parents 2d65efa + f1ef94e commit 82ec0ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions miasm/loader/elf_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 82ec0ab

Please sign in to comment.