Skip to content

Check the information of ELF file and return result.

License

Notifications You must be signed in to change notification settings

topshihun/elfcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elfcheck

Check the information of ELF file and return result.

Always be used in bash or others scriptlang.

Begining

Requires: zig

Download source and compile

Download: git clone https://github.com/topshihun/elfcheck.git

Compile:

  • cd elfcheck
  • zig build

Run

Can use '-h' to print help information.

elfcheck -h

Exmples

Check if the elf/file is 64 bit and X86_64 machine.

elfcheck is_x64=true machine=X86_64 elf/file

Check if the elf/file is little endian and RISCV machine.

elfcheck endian=little machine=RISCV elf/file

If it is checked true, elfcheck will return 0, if not, elfcheck will return 1.

elfcheck return 2 means incorrect usage.

About

Check the information of ELF file and return result.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages