Function
elf_getshnum() retrieves the number of ELF sections associated with descriptor
elf and stores it into the location pointed to by argument
shnum.
This routine allows applications to uniformly process both normal ELF objects, and ELF objects that use extended section numbering.