about summary refs log tree commit diff stats
path: root/src/elfs
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-03-01 23:39:01 +0100
committerptitSeb <sebastien.chev@gmail.com>2022-03-01 23:39:01 +0100
commit8b1f55aff0201549279684dc3f1d59f42a8fb0d4 (patch)
tree2c4480443e86913bd870fff033865dc2e8e38a49 /src/elfs
parentb00764d658fbf3a9068a57cfe1fe41e2283ad5cb (diff)
downloadbox64-8b1f55aff0201549279684dc3f1d59f42a8fb0d4.tar.gz
box64-8b1f55aff0201549279684dc3f1d59f42a8fb0d4.zip
More work on readlinkat and clone syscall
Diffstat (limited to 'src/elfs')
-rwxr-xr-xsrc/elfs/elfloader.c13
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)
 {