Update appimagetool.c
[appimagekit/gsi.git] / elf.h
blob77cc164dc9482cdaeb77a656ec16d735f340e98e
1 /*
2 Calculate the size of an ELF file on disk based on the information in its header
4 Example:
6 ls -l 126584
8 Calculation using the values also reported by readelf -h:
9 Start of section headers e_shoff 124728
10 Size of section headers e_shentsize 64
11 Number of section headers e_shnum 29
13 e_shoff + ( e_shentsize * e_shnum ) = 126584
16 #ifndef ELFSIZE_H
17 #define ELFSIZE_H
19 unsigned long get_elf_size(const char *fname);
21 #endif /* ELFSIZE_H */