kernel: Implement ELF auxinfo entry type AT_EXECPATH
authorJohn Marino <draco@marino.st>
Sat, 23 Apr 2011 19:44:10 +0000 (21:44 +0200)
committerJohn Marino <draco@marino.st>
Thu, 28 Apr 2011 20:06:31 +0000 (22:06 +0200)
commitadc42cf35b64fcc5e902e062955772f363e1ec58
tree961a493ceaf0ef24f74207e9cd859989d4dc5efd
parentfcf53d9b037c8b3b6b834245c8c0eb99b1458e72
kernel: Implement ELF auxinfo entry type AT_EXECPATH

Refer to issue 2005.
The new RTLD can optionally use AT_EXECPATH for some of its new
functionality such as libmap.conf and dynamic token expansion.
In the absence of this kernel support, RTLD has a fallback
mechanism that works most of the time, but using it takes a
performance hit.

This patch was tested for some time by various people prior to
the 2.10 branch being created.
sys/kern/imgact_elf.c
sys/kern/kern_exec.c
sys/sys/imgact.h