diff options
Diffstat (limited to 'src/elfs/elfloader.c')
| -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) { |