You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am doing binary rewriting on Windows binaries, the tested binary is compiled with Visual Studio 2022 and the dependences are the following:
KERNEL32.dll
VCRUNTIME140.DLL
I have used the following code to load these external libraries and solve the following error:
class NilMsgPass(Pass):
def begin_module(self, module, functions, context):
context.get_or_insert_extern_symbol(
"test", "libraries.dll")
context.register_insert(
#AllFunctionsScope(FunctionPosition.ENTRY, BlockPosition.ENTRY),
SingleBlockScope(module.entry_point, BlockPosition.ENTRY),
Patch.from_function(self.nop_patch),
)
@patch_constraints(x86_syntax=X86Syntax.INTEL)
def nop_patch(self, context):
return """
call test
ret
"""
but it dont work, any solution?
File "C:\Users\mar\AppData\Local\Programs\Python\Python38\lib\site-packages\gtirb_rewriting-0.1.2.dev0-py3.8.egg\gtirb_rewriting\assembler\assembler.py", line 1458, in _resolve_symbol
gtirb_rewriting.assembler.assembler.UndefSymbolError: test is an undefined symbol reference
The text was updated successfully, but these errors were encountered:
I am doing binary rewriting on Windows binaries, the tested binary is compiled with Visual Studio 2022 and the dependences are the following:
KERNEL32.dll
VCRUNTIME140.DLL
I have used the following code to load these external libraries and solve the following error:
but it dont work, any solution?
File "C:\Users\mar\AppData\Local\Programs\Python\Python38\lib\site-packages\gtirb_rewriting-0.1.2.dev0-py3.8.egg\gtirb_rewriting\assembler\assembler.py", line 1458, in _resolve_symbol
gtirb_rewriting.assembler.assembler.UndefSymbolError: test is an undefined symbol reference
The text was updated successfully, but these errors were encountered: