rtld: Set foundation to use aux vectors to get osreldate
authorJohn Marino <draco@marino.st>
Sat, 21 Jan 2012 13:13:17 +0000 (14:13 +0100)
committerJohn Marino <draco@marino.st>
Mon, 23 Jan 2012 16:13:17 +0000 (17:13 +0100)
commitb566341b03125971f3394e8c877fba725175ce1f
tree89f8809cbc7aea21dddcf774627a0c185676983c
parentf4f4bfd59a1868e62e4d9b57b81e9fca9755278e
rtld: Set foundation to use aux vectors to get osreldate

__getosreldate isn't used by rtld currently.  The FreeBSD dynamic linker
does use it indirectly in libc's mmap wrapper.  The capability is included
here both to ease the task to synchronizing with FreeBSD, and to quickly
obtain the capability in the future if necessary.  It's currently disabled
with the undefined ENABLE_OSRELDATE macro.

The splitting of digest_dynamic required to use aux vectors also has the
benefit of avoiding the use of malloc at startup.
libexec/rtld-elf/rtld.c