Use auxiliary vector to obtain the executable path name (#24696)
authorLeandro A. F. Pereira <leandro.pereira@microsoft.com>
Thu, 23 May 2019 16:59:17 +0000 (09:59 -0700)
committerJan Vorlicek <janvorli@microsoft.com>
Thu, 23 May 2019 16:59:17 +0000 (09:59 -0700)
commit572be424ae932cdaba08585c922a9104684b408e
treee41df9a88acec7e2e0375df48bccfb86e03a5be4
parent38cf40f3daa76346100b391843dc8cfd21f3e1a3
Use auxiliary vector to obtain the executable path name (#24696)

This vector is populated by the kernel while loading an ELF, and is
available to user land without requiring any system calls.  This is
specially interesting if programs are executed under a chroot where
/proc isn't available (and thus realpath("/proc/self/exe"), the current
method of obtaining the full path name for the executable).
src/ToolBox/SOS/Strike/CMakeLists.txt
src/coreclr/hosts/osxbundlerun/CMakeLists.txt
src/coreclr/hosts/unixcoreruncommon/CMakeLists.txt
src/coreclr/hosts/unixcoreruncommon/config.h.in [new file with mode: 0644]
src/coreclr/hosts/unixcoreruncommon/configure.cmake [new file with mode: 0644]
src/coreclr/hosts/unixcoreruncommon/coreruncommon.cpp