Check the information of ELF file and return result.
Always be used in bash or others scriptlang.
Requires: zig
Download: git clone https://github.com/topshihun/elfcheck.git
Compile:
cd elfcheckzig build
Can use '-h' to print help information.
elfcheck -hCheck if the elf/file is 64 bit and X86_64 machine.
elfcheck is_x64=true machine=X86_64 elf/fileCheck if the elf/file is little endian and RISCV machine.
elfcheck endian=little machine=RISCV elf/fileIf it is checked true, elfcheck will return 0, if not, elfcheck will return 1.
elfcheck return 2 means incorrect usage.