finixbit / elf-parser

Lightweight elf binary parser with no external dependencies - Sections, Symbols, Relocations, Segments
MIT License
250 stars 44 forks source link

32-bit support #4

Open BullyWiiPlaza opened 4 years ago

BullyWiiPlaza commented 4 years ago

It would be great if this library supported 32-bit binaries as well since 32-bit is still often used nowadays:

auto header = (Elf64_Ehdr*)m_mmap_program;
if (header->e_ident[EI_CLASS] != ELFCLASS64) {
    printf("Only 64-bit files supported\n");
    exit(1);
}