We have several unimplemented non-standard enumerations of the ELF aux
vectors brought in with a recent sync with FreeBSD. In general they won't
be implemented because of philosophical reasons or lack of necessity. In
the case of AT_OSRELDATE, it makes sense to provide this simple update
as the release date comes directly from the ELF binary and it's already
available thanks to recent comments regarding osreldate.
/*
* The following non-standard values are used in Linux ELF binaries.
- * Types 16 - 23 are not implemented in the kernel
+ * Types 16-17 and 19-23 are not implemented in the kernel
*/
#define AT_NOTELF 10 /* Program is not ELF ?? */
#define AT_UID 11 /* Real uid. */
/*
* The following non-standard values are used in Linux ELF binaries.
- * Types 16 - 23 are not implemented in the kernel
+ * Types 16-17 and 19-23 are not implemented in the kernel
*/
#define AT_NOTELF 10 /* Program is not ELF ?? */
#define AT_UID 11 /* Real uid. */
AUXARGS_ENTRY(pos, AT_BASE, args->base);
if (imgp->execpathp != 0)
AUXARGS_ENTRY(pos, AT_EXECPATH, imgp->execpathp);
+ AUXARGS_ENTRY(pos, AT_OSRELDATE, osreldate);
AUXARGS_ENTRY(pos, AT_NULL, 0);
kfree(imgp->auxargs, M_TEMP);