about summary refs log tree commit diff stats
path: root/src/include
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/include
parentb00764d658fbf3a9068a57cfe1fe41e2283ad5cb (diff)
downloadbox64-8b1f55aff0201549279684dc3f1d59f42a8fb0d4.tar.gz
box64-8b1f55aff0201549279684dc3f1d59f42a8fb0d4.zip
More work on readlinkat and clone syscall
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/box64context.h2
-rwxr-xr-xsrc/include/elfloader.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/include/box64context.h b/src/include/box64context.h
index ecb00c3e..9d660664 100755
--- a/src/include/box64context.h
+++ b/src/include/box64context.h
@@ -188,6 +188,8 @@ typedef struct box64context_s {
     x64emu_t            *emu_sig;       // the emu with stack used for signal handling (must be separated from main ones)
     int                 no_sigsegv;
     int                 no_sigill;
+    void*               stack_clone;
+    int                 stack_clone_used;
 
 } box64context_t;
 
diff --git a/src/include/elfloader.h b/src/include/elfloader.h
index c1b4ce89..4e06546b 100755
--- a/src/include/elfloader.h
+++ b/src/include/elfloader.h
@@ -16,6 +16,7 @@ typedef struct dynablocklist_s dynablocklist_t;
 elfheader_t* LoadAndCheckElfHeader(FILE* f, const char* name, int exec); // exec : 0 = lib, 1 = exec
 void FreeElfHeader(elfheader_t** head);
 const char* ElfName(elfheader_t* head);
+const char* ElfPath(elfheader_t* head);
 void ElfAttachLib(elfheader_t* head, library_t* lib);
 
 // return 0 if OK
@@ -52,6 +53,7 @@ dynablocklist_t* GetDynablocksFromElf(elfheader_t* h);
 #endif
 void ResetSpecialCaseMainElf(elfheader_t* h);
 void CreateMemorymapFile(box64context_t* context, int fd);
+void* GetDynamicSection(elfheader_t* h);
 
 int ElfCheckIfUseTCMallocMinimal(elfheader_t* h);   // return 1 if tcmalloc is used