proper path searching for dynamic linker
authorRich Felker <dalias@aerifal.cx>
Sat, 25 Jun 2011 05:56:34 +0000 (01:56 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 25 Jun 2011 05:56:34 +0000 (01:56 -0400)
commit568b8075a4406ca8cb1f718e74fd0829cb7f0b90
tree0a071dabd590f6ca123cdc1c3906ef497efe8a92
parentf937031800e3130b3b4bb42d0d547bb69a5d32db
proper path searching for dynamic linker

first, use $LD_LIBRARY_PATH unless suid. if that fails, read path from
/etc/ld-musl-$ARCH.path and fallback to a builtin default.
arch/i386/reloc.h
arch/x86_64/reloc.h
src/ldso/dynlink.c