diff --git a/src/p_elf.h b/src/p_elf.h index dd09281d..f2db690a 100644 --- a/src/p_elf.h +++ b/src/p_elf.h @@ -37,9 +37,14 @@ namespace N_Elf { // The ELF file header. This appears at the start of every ELF file. -template +template struct Ehdr { + typedef TWord Word; + typedef TAddr Addr; + typedef TOff Off; + typedef THalf Half; + unsigned char e_ident[16]; /* Magic number and other info */ Half e_type; /* Object file type */ Half e_machine; /* Architecture */ @@ -422,6 +427,14 @@ template