Skip to content

probonopd/elfsize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

elfsize

Calculate the size of an ELF file on disk, not using a library. This is useful, e.g., to find out at which offset the filesystem image of an AppImage starts.

Building

gcc -o elfsize elfsize.c

Testing

ls -l ./elfsize
# 17136

./elfsize ./elfsize
# 17136

# Append some data after the ELF
echo "appendeddata" >> ./elfsize

# Check whether we still get the correct ELF size
./elfsize ./elfsize
# 17136

Note

There is a similar project that uses a library at https://github.com/probonopd/libelfsize

About

Calculate the size of an ELF file on disk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published