Joseph Koshy f6c0f35e07 Keep shadow copies of the e_shnum', e_phnum' and `e_shstrndx'
members of the ELF Executable Header inside the library-private
`struct _Elf' descriptor and only update the underlying Elf{32,64}_Ehdr
structure on an elf_update(3) call.  These fields of the Ehdr
structure are technically `out of bounds' for an application program
per the ELF(3) API, but we've seen applications that initialize
a new Ehdr structure using memcpy(), messing up the library's
invariants. [1]

Implement elf_getphnum() and handle ELF objects with more than
64K program header table entries.

Reported by:	jb [1]
2006-12-25 02:22:22 +00:00
..
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-12-16 10:45:43 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-11-13 09:46:16 +00:00
2006-12-24 09:45:10 +00:00