The text 785dd8290d09, as FreeBSD 8.0-RELEASE shipped it.
return the number of program headers in an ELF file
elf_getphnum(3) on FreeBSD now