diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-08-23 14:14:47 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-08-23 14:14:47 -0400 |
commit | cc51505a32930754d2cf281c15caa1829b8436e9 (patch) | |
tree | 43b7814c7b82d81f8b1104cd977f9278c7a89f5f /include/sysexits.h | |
parent | a897a20a57b461d388447858b9404fc81f107bcd (diff) | |
download | musl-cc51505a32930754d2cf281c15caa1829b8436e9.tar.gz musl-cc51505a32930754d2cf281c15caa1829b8436e9.tar.xz musl-cc51505a32930754d2cf281c15caa1829b8436e9.zip |
use AT_EXECFN, if available, for dynamic linker to identify main program
fallback to argv[0] as before. unlike argv[0], AT_EXECFN was a valid (but possibly relative) pathname for the new program image at the time the execve syscall was made. as a special case, ignore AT_EXECFN if it begins with "/proc/", in order not to give bogus (and possibly harmful) results when fexecve was used.
Diffstat (limited to 'include/sysexits.h')
0 files changed, 0 insertions, 0 deletions