initial dynamic loader , parsing DT_HASH atm

This commit is contained in:
georgemoralis 2023-06-08 12:51:11 +03:00
parent e02c0a9398
commit 672e2b2d77
3 changed files with 41 additions and 0 deletions

View file

@ -323,6 +323,19 @@ struct elf_program_id_header
u64 firmver;
u08 digest[32];
};
constexpr s64 DT_NULL = 0;
constexpr s64 DT_OS_HASH = 0x61000025;
struct elf_dynamic
{
s64 d_tag;
union
{
u64 d_val;
u64 d_ptr;
} d_un;
};
class Elf
{
public: