bdk: ianos: restructure for future expansion

This commit is contained in:
CTCaer
2026-01-29 08:58:19 +02:00
parent 1edb18a217
commit 2014a72774
6 changed files with 131 additions and 80 deletions

View File

@@ -53,7 +53,7 @@ typedef enum
typedef struct el_ctx
{
bool (*pread)(struct el_ctx *ctx, void *dest, size_t nb, size_t offset);
el_status (*pread)(struct el_ctx *ctx, void *dest, size_t nb, size_t offset);
/* base_load_* -> address we are actually going to load at
*/
@@ -61,6 +61,9 @@ typedef struct el_ctx
base_load_paddr,
base_load_vaddr;
/* original memory of binary */
Elf_Addr eaddr;
/* size in memory of binary */
Elf_Addr memsz;