From db218bfa167662eec12c2016472399e858d621ba Mon Sep 17 00:00:00 2001 From: serpilliere Date: Mon, 3 Dec 2012 10:55:34 +0100 Subject: core: fix add_label api for asm_bloc (louis granboulan) --- example/asm_box.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/asm_box.py') diff --git a/example/asm_box.py b/example/asm_box.py index 86ff7e71..f1e4bde5 100644 --- a/example/asm_box.py +++ b/example/asm_box.py @@ -26,7 +26,7 @@ title: msg: .string "World!" ''') -symbol_pool.add(asmbloc.asm_label('base_address', 0)) +symbol_pool.add_label('base_address', 0) symbol_pool.getby_name("MessageBoxA").offset = e.DirImport.get_funcvirt('MessageBoxA') symbol_pool.getby_name("main").offset = e.rva2virt(s_text.addr) resolved_b, patches = asmbloc.asm_resolve_final(x86_mn, all_bloc[0], symbol_pool) -- cgit 1.4.1