How can I find the size of a ELF file/image with Header information?

Posted by fasil on Stack Overflow See other posts from Stack Overflow or by fasil
Published on 2010-06-08T07:05:32Z Indexed on 2010/06/08 7:12 UTC
Read the original article Hit count: 285

Filed under:
|
|

I need to find the size of an elf image for some computation. I have tried with the readelf utility on linux which gives the informations about the headers and section. I need to have the exact file size of the elf(on the whole).

How do I find the size of the ELF from the header information or Is there any other means to find the size of an elf without reading the full image.

© Stack Overflow or respective owner

Related posts about linux

Related posts about filesize