diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-03-01 16:02:48 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-03-01 16:02:48 +0100 |
| commit | a8637ca5d63da07c4049e475fdf729841a599b1d (patch) | |
| tree | 841421ddd68679063bbf0403ed574a4d8d756e11 /src/box64context.c | |
| parent | 311842a43aa34276dc41da6e2f3a63ac80d4849c (diff) | |
| download | box64-a8637ca5d63da07c4049e475fdf729841a599b1d.tar.gz box64-a8637ca5d63da07c4049e475fdf729841a599b1d.zip | |
Added main elf to context
Diffstat (limited to 'src/box64context.c')
| -rwxr-xr-x | src/box64context.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/box64context.c b/src/box64context.c index 21768fb2..84362565 100755 --- a/src/box64context.c +++ b/src/box64context.c @@ -8,6 +8,7 @@ #include "box64context.h" #include "debug.h" +#include "elfloader.h" EXPORTDYN @@ -146,7 +147,7 @@ void FreeBox64Context(box64context_t** context) free(ctx); } -/* + int AddElfHeader(box64context_t* ctx, elfheader_t* head) { int idx = ctx->elfsize; if(idx==ctx->elfcap) { @@ -159,7 +160,7 @@ int AddElfHeader(box64context_t* ctx, elfheader_t* head) { printf_log(LOG_DEBUG, "Adding \"%s\" as #%d in elf collection\n", ElfName(head), idx); return idx; } -*/ + int AddTLSPartition(box64context_t* context, int tlssize) { int oldsize = context->tlssize; context->tlssize += tlssize; |