summaryrefslogtreecommitdiffstats
path: root/lib/libelf/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Keep shadow copies of the `e_shnum', `e_phnum' and `e_shstrndx'jkoshy2006-12-251-0/+3
| | | | | | | | | | | | | | | 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]
* Use <osreldate.h> rather than the OS version reported by the kerneljkoshy2006-12-181-11/+6
| | | | | | | | | | | | to determine which Elf Types are to be handled. Change the M4 templates to wrap an `#if __FreeBSD_version >= NNN'/`#endif' pair around the generated code for each ELF data type, where `NNN' is the OS version where the ELF type was added to the source tree. This change allows cross-builds of old sources on newer FreeBSD systems to work correctly. Problem reported by: ru
* - style: use `=' instead of `+=' for initial assignments.ru2006-11-241-4/+2
| | | | | - don't add generated sources' objects to OBJS explicitly; GENSRCS is part of SRCS so they were already in OBJS.
* - Replace the use of DPSRCS with something more appropriate. DPSRCSjkoshy2006-11-121-5/+6
| | | | | | | | is for when you need something in ".depend", but not compiled in. - Style fixes: Spell ${.OBJDIR} as ".". - Neaten a comment. Submitted by: ru
* MFP4: Add an implementation of the ELF(3) and GELF(3) API set.jkoshy2006-11-111-0/+166
Bump __FreeBSD_version. Reviewed by: jb
OpenPOWER on IntegriCloud