diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-03-01 23:39:01 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-03-01 23:39:01 +0100 |
| commit | 8b1f55aff0201549279684dc3f1d59f42a8fb0d4 (patch) | |
| tree | 2c4480443e86913bd870fff033865dc2e8e38a49 /src/elfs | |
| parent | b00764d658fbf3a9068a57cfe1fe41e2283ad5cb (diff) | |
| download | box64-8b1f55aff0201549279684dc3f1d59f42a8fb0d4.tar.gz box64-8b1f55aff0201549279684dc3f1d59f42a8fb0d4.zip | |
More work on readlinkat and clone syscall
Diffstat (limited to 'src/elfs')
| -rwxr-xr-x | src/elfs/elfloader.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c index 761d2ee4..afd9002d 100755 --- a/src/elfs/elfloader.c +++ b/src/elfs/elfloader.c @@ -147,6 +147,12 @@ const char* ElfName(elfheader_t* head) return "(noelf)"; return head->name; } +const char* ElfPath(elfheader_t* head) +{ + if(!head) + return NULL; + return head->path; +} int AllocElfMemory(box64context_t* context, elfheader_t* head, int mainbin) { uintptr_t offs = 0; @@ -1368,6 +1374,13 @@ void* GetTLSPointer(box64context_t* context, elfheader_t* h) return ptr->tlsdata+(ptr->tlssize+h->tlsbase); } +void* GetDynamicSection(elfheader_t* h) +{ + if(!h) + return NULL; + return h->Dynamic; +} + #ifdef DYNAREC dynablocklist_t* GetDynablocksFromAddress(box64context_t *context, uintptr_t addr) { |