diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2025-01-22 17:29:21 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-22 10:29:21 +0100 |
| commit | 89dcd2566bfa1ef93e740b568cbc3aa5c5409aa4 (patch) | |
| tree | af3e95e694fb620ccb2d955a74a0aab0ad14c29e /src/elfs | |
| parent | 314edea645acacf03930af17aa01783ca735306a (diff) | |
| download | box64-89dcd2566bfa1ef93e740b568cbc3aa5c5409aa4.tar.gz box64-89dcd2566bfa1ef93e740b568cbc3aa5c5409aa4.zip | |
Fixed various issues introduced in the env infra refactor (#2281)
* Open trace file again after apply env files * dynrec_df=1 by default * more fixes * more fixes * more
Diffstat (limited to 'src/elfs')
| -rw-r--r-- | src/elfs/elfloader.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c index 11943c1a..eff1ef69 100644 --- a/src/elfs/elfloader.c +++ b/src/elfs/elfloader.c @@ -1451,30 +1451,6 @@ void* GetDynamicSection(elfheader_t* h) return box64_is32bits?((void*)h->Dynamic._32):((void*)h->Dynamic._64); } -#ifdef DYNAREC -dynablock_t* GetDynablocksFromAddress(box64context_t *context, uintptr_t addr) -{ - (void)context; - // if we are here, the there is not block in standard "space" - /*dynablocklist_t* ret = getDBFromAddress(addr); - if(ret) { - return ret; - }*/ - if(BOX64ENV(dynarec_forced)) { - addDBFromAddressRange(addr, 1); - return getDB(addr); - } - //check if address is in an elf... if yes, grant a block (should I warn) - Dl_info info; - if(dladdr((void*)addr, &info)) { - dynarec_log(LOG_INFO, "Address %p is in a native Elf memory space (function \"%s\" in %s)\n", (void*)addr, info.dli_sname, info.dli_fname); - return NULL; - } - dynarec_log(LOG_INFO, "Address %p not found in Elf memory and is not a native call wrapper\n", (void*)addr); - return NULL; -} -#endif - typedef struct my_dl_phdr_info_s { void* dlpi_addr; const char* dlpi_name; |