about summary refs log tree commit diff stats
path: root/example/asm/shellcode.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-05-14 13:53:04 +0200
committerGitHub <noreply@github.com>2018-05-14 13:53:04 +0200
commitd7c7527fbc4dea0f340402b62e7146b1d1916d2a (patch)
tree45413ece50186f74a046ef2e2f30b4df8a19b963 /example/asm/shellcode.py
parentf6e1c074f6a17b6a895dcf5352c213a1b6bacb99 (diff)
parentab3635f44ab45e22150bc373e33b7cf11ea46f63 (diff)
downloadmiasm-d7c7527fbc4dea0f340402b62e7146b1d1916d2a.tar.gz
miasm-d7c7527fbc4dea0f340402b62e7146b1d1916d2a.zip
Merge pull request #734 from serpilliere/enhance_parser
Enhance parser
Diffstat (limited to 'example/asm/shellcode.py')
-rwxr-xr-xexample/asm/shellcode.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/example/asm/shellcode.py b/example/asm/shellcode.py
index bacb65fb..0c08a8a3 100755
--- a/example/asm/shellcode.py
+++ b/example/asm/shellcode.py
@@ -64,7 +64,10 @@ else:
 with open(args.source) as fstream:
     source = fstream.read()
 
-blocks, symbol_pool = parse_asm.parse_txt(machine.mn, attrib, source)
+
+symbol_pool = asmblock.AsmSymbolPool()
+
+blocks, symbol_pool = parse_asm.parse_txt(machine.mn, attrib, source, symbol_pool)
 
 # Fix shellcode addrs
 symbol_pool.set_offset(symbol_pool.getby_name("main"), addr_main)