jmpews / Dobby

a lightweight, multi-platform, multi-architecture hook framework.
Apache License 2.0
3.88k stars 794 forks source link

built-in plugin ImportTableReplace cannot be enabled with compile parameter '-DPlugin.ImportTableReplace=ON' #227

Open skervesen opened 1 year ago

skervesen commented 1 year ago

use '-DPlugin.ImportTableReplace=ON' parameter to compile, but there is no DobbyImportTableReplace function in the compiled dynamic library.

wg138940 commented 1 year ago

https://github.com/jmpews/Dobby/blob/b0176de574104726bb68dff3b77ee666300fc338/builtin-plugin/ImportTableReplace/dobby_import_replace.h#L7

DobbyImportTableReplace function is commented out in dobby_import_replace.h

https://github.com/jmpews/Dobby/blob/b0176de574104726bb68dff3b77ee666300fc338/builtin-plugin/CMakeLists.txt#L1

Also, it looks like this CMake option is prepared for DobbyHook for the Darwin system.