ld.so's LD_LIBRARY_PATH/LD_PRELOAD in mixed 32bit and 64bit environment
Alon Bar-Lev
alon.barlev@gmail.com
Mon Aug 22 20:37:00 GMT 2011
On Mon, Aug 22, 2011 at 10:50 PM, Kalle Olavi Niemitalo <kon@iki.fi> wrote:
> Alon Bar-Lev <alon.barlev@gmail.com> writes:
>
>> LIB is expanded to lib or lib64 based on the architecture. Use
>> when mixed environment (32bit and 64bit) searches for same
>> libraries names.
>
> Debian libc6 2.11.2-10 on AMD64 expands the tokens like this:
>
> LIB=lib (not lib64)
> PLATFORM=x86_64
>
> Debian libc6 2.13-16 on Intel 64 expands the tokens like this:
>
> LIB=x86_64-linux-gnu
> PLATFORM=x86_64 (as above)
>
> So, it seems wrong to claim $LIB is expanded to lib or lib64.
> Tested with:
> % LD_LIBRARY_PATH='/LIB=$LIB/PLATFORM=$PLATFORM' strace true > /dev/null 2>&1 | grep LIB= | head -n1
>
Right.
I altered this somewhat.
Sent a patch to linux-man [1] per Jakub note.
Thanks for your help,
Alon.
[1] http://article.gmane.org/gmane.linux.man/2070
More information about the Libc-alpha
mailing list