remove all legacy DYNLOAD code

This commit is contained in:
Nguyen Anh Quynh
2023-06-22 12:19:06 +08:00
parent c5ae96536b
commit 3bba11c402
4 changed files with 0 additions and 57 deletions

View File

@@ -9,16 +9,12 @@
#include <windows.h>
#include <process.h>
#define PRIx64 "llX"
#ifdef DYNLOAD
#include <unicorn_dynload.h>
#else // DYNLOAD
#include <unicorn/unicorn.h>
#ifdef _WIN64
#pragma comment(lib, "unicorn_staload64.lib")
#else // _WIN64
#pragma comment(lib, "unicorn_staload.lib")
#endif // _WIN64
#endif // DYNLOAD
// posix specific
#else // _MSC_VER
@@ -80,11 +76,6 @@ int main(int argc, char **argv, char **envp)
uc_hook hhc;
uint32_t val;
// dynamically load shared library
#ifdef DYNLOAD
uc_dyn_load(NULL, 0);
#endif
// Initialize emulator in MIPS 32bit little endian mode
printf("uc_open()\n");
err = uc_open(UC_ARCH_MIPS, UC_MODE_MIPS32, &uc);
@@ -184,12 +175,6 @@ int main(int argc, char **argv, char **envp)
else
printf("TEST 2 FAILED!\n\n");
// dynamically free shared library
#ifdef DYNLOAD
uc_dyn_free();
#endif
return 0;
}