summaryrefslogtreecommitdiffstats
path: root/lib/libelf/elf_update.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a bug that prevented applications from laying out ELF objectsjkoshy2007-09-081-17/+44
| | | | | | | | | | | | | with section header tables residing in between other sections. Introduce additional checks for overlaps between section data and the section header table when the application is performing section layout. Document additional error returns. Reported by: Kai Wang <kaiw27 at gmail dot com> Approved by: re (rwatson)
* Keep shadow copies of the `e_shnum', `e_phnum' and `e_shstrndx'jkoshy2006-12-251-7/+11
| | | | | | | | | | | | | | | 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]
* MFP4: Add an implementation of the ELF(3) and GELF(3) API set.jkoshy2006-11-111-0/+880
Bump __FreeBSD_version. Reviewed by: jb
OpenPOWER on IntegriCloud