getSegmentCount

fnsize_t getSegmentCount(ElfFile file)

Get the number of program headers (segments) in an ELF file.

Parameters

fileThe ELF file.

Returns

The number of segments.