ElfFile.getProgramHeaderCount

size_t getProgramHeaderCount()

Get the number of program headers, resolving extended numbering.

When e_phnum equals PN_XNUM (0xffff) and a section header table exists, the real count is stored in the sh_info field of section header zero.

Returns

The resolved program header count.

Throws

Exception if the section header table is out of bounds.