From a8637ca5d63da07c4049e475fdf729841a599b1d Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 1 Mar 2021 16:02:48 +0100 Subject: Added main elf to context --- src/include/box64context.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/include') diff --git a/src/include/box64context.h b/src/include/box64context.h index 0697e16a..3ee5f927 100755 --- a/src/include/box64context.h +++ b/src/include/box64context.h @@ -74,7 +74,14 @@ extern box64context_t *my_context; // global context box64context_t *NewBox64Context(int argc); void FreeBox64Context(box64context_t** context); +// return the index of the added header +int AddElfHeader(box64context_t* ctx, elfheader_t* head); + // return the tlsbase (negative) for the new TLS partition created (no partition index is stored in the context) int AddTLSPartition(box64context_t* context, int tlssize); +// defined in fact in threads.c +//void thread_set_emu(x64emu_t* emu); +//x64emu_t* thread_get_emu(); + #endif //__BOX64CONTEXT_H_ \ No newline at end of file -- cgit 1.4.1