diff options
| author | Camille Mougey <commial@gmail.com> | 2018-04-18 10:28:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-18 10:28:54 +0200 |
| commit | c8efea6234bf73b607d506047726ed5ff311fcfb (patch) | |
| tree | 6755b04a11906be9fc09e9ed7f905aef2bbb8c68 /example | |
| parent | ca1b50cf7a174d0ad1bbcd1438e885f21f5bfab7 (diff) | |
| parent | 747103d22b6c8df744bb54dbbce1dbf7eb58dcdb (diff) | |
| download | miasm-c8efea6234bf73b607d506047726ed5ff311fcfb.tar.gz miasm-c8efea6234bf73b607d506047726ed5ff311fcfb.zip | |
Merge pull request #718 from serpilliere/fix_ida_symbol_load
Example/IDA: fix symbol loading
Diffstat (limited to 'example')
| -rw-r--r-- | example/ida/graph_ir.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/example/ida/graph_ir.py b/example/ida/graph_ir.py index 7e303aac..6dfa1f7d 100644 --- a/example/ida/graph_ir.py +++ b/example/ida/graph_ir.py @@ -121,6 +121,10 @@ def build_graph(verbose=False, simplify=False): # print hex(ad), repr(name) if name is None: continue + if (mdis.symbol_pool.getby_offset(addr) or + mdis.symbol_pool.getby_name(name)): + # Symbol alias + continue mdis.symbol_pool.add_label(name, addr) if verbose: |