Skip to content
probonopdPublic

About

Calculate the size of an ELF file on disk

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages