aboutsummaryrefslogtreecommitdiff
path: root/lib/libelf/libelf_phdr.c
Commit message (Collapse)AuthorAgeFilesLines
* Removed source code for the old libelf and build the new libelf fromKai Wang2014-01-151-157/+0
| | | | | | | contrib/ instead. Notes: svn path=/projects/elftoolchain/; revision=260698
* Perform additional checks when translating between file and memoryKai Wang2010-07-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | representations of ELF types. The ELF(3) API allows applications to request a conversion that is `in-place', i.e., with source and destinations data buffers being the same. However, the file and memory sizes of ELF sections that have additional internal structure, such as those of type `Elf_Note', or `Elf_GNU_Hash_Header', can be determined only known after the type-specific headers that comprise the first few words in these sections are read and translated. Pass in the size of destination buffer to type translation routines in "libelf_convert.m4" and have these routines return an error code if the translated data would not fit inside the destination buffer. Obtained from: elftoolchain MFC after: 1 month Notes: svn path=/head/; revision=210338
* Keep shadow copies of the `e_shnum', `e_phnum' and `e_shstrndx'Joseph Koshy2006-12-251-21/+13
| | | | | | | | | | | | | | | | | | 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] Notes: svn path=/head/; revision=165535
* MFP4: Add an implementation of the ELF(3) and GELF(3) API set.Joseph Koshy2006-11-111-0/+165
Bump __FreeBSD_version. Reviewed by: jb Notes: svn path=/head/; revision=164190