diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-03-01 15:52:05 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-03-01 15:52:05 +0100 |
| commit | 311842a43aa34276dc41da6e2f3a63ac80d4849c (patch) | |
| tree | 4da4eeeb2c3c4de462389e06b6e1ed504dfea6e9 /src/include/box64context.h | |
| parent | 4ea8ebb3367810a1a789acdfedb2d346491f603a (diff) | |
| download | box64-311842a43aa34276dc41da6e2f3a63ac80d4849c.tar.gz box64-311842a43aa34276dc41da6e2f3a63ac80d4849c.zip | |
Read elf header of launched executable
Diffstat (limited to 'src/include/box64context.h')
| -rwxr-xr-x | src/include/box64context.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/box64context.h b/src/include/box64context.h index 680b2d5e..0697e16a 100755 --- a/src/include/box64context.h +++ b/src/include/box64context.h @@ -4,6 +4,8 @@ #include <pthread.h> #include "pathcoll.h" +typedef struct elfheader_s elfheader_t; + typedef void* (*procaddess_t)(const char* name); typedef void* (*vkprocaddess_t)(void* instance, const char* name); @@ -43,6 +45,10 @@ typedef struct box64context_s { int stackalign; void* stack; // alocated stack + elfheader_t **elfs; // elf headers and memory + int elfcap; + int elfsize; // number of elf loaded + int deferedInit; pthread_key_t tlskey; // then tls key to have actual tlsdata |