🆕 检测是否为elf文件

This commit is contained in:
fslongjin
2022-05-17 22:52:13 +08:00
parent d6ea8893e7
commit b0a7ec633d
2 changed files with 41 additions and 2 deletions

View File

@ -357,4 +357,11 @@ Values in this inclusive range are reserved for OS-specific semantics.
#define PF_MASKPROC 0xf0000000 // Unspecified
// --> end ========== program header =========
// --> end ========== program header =========
/**
* @brief 校验是否为ELF文件
*
* @param ehdr
*/
bool elf_check(void * ehdr);