#pragma once #include #include #include #ifdef __x86_64__ # define elf_validate elf64_validate # define elf_size elf64_size #endif bool elf64_validate(Elf64_Ehdr *ehdr, unsigned type, unsigned machine); size_t elf64_size(Elf64_Ehdr *ehdr, Elf64_Phdr *phdr);