about summary refs log tree commit diff stats
path: root/example/ida/graph_ir.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-04-14 20:42:46 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-04-15 00:04:27 +0200
commit747103d22b6c8df744bb54dbbce1dbf7eb58dcdb (patch)
tree874b408c974385f2605c222e7621508ac780f10c /example/ida/graph_ir.py
parent26a551b57b7d8dd7e9a9245eef5dee1d16864c47 (diff)
downloadmiasm-747103d22b6c8df744bb54dbbce1dbf7eb58dcdb.tar.gz
miasm-747103d22b6c8df744bb54dbbce1dbf7eb58dcdb.zip
Example/IDA: fix symbol loading
Diffstat (limited to 'example/ida/graph_ir.py')
-rw-r--r--example/ida/graph_ir.py4
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: