From 311842a43aa34276dc41da6e2f3a63ac80d4849c Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 1 Mar 2021 15:52:05 +0100 Subject: Read elf header of launched executable --- src/include/box64context.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/include/box64context.h') 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 #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 -- cgit 1.4.1