ldd broken with HARDWIRED_ABSPATH=n

Mike Frysinger vapier at gentoo.org
Wed Mar 23 19:20:44 UTC 2011


On Wed, Mar 23, 2011 at 3:16 PM, Peter Mazinger wrote:
>> On Wed, Mar 23, 2011 at 7:18 AM, Peter Mazinger wrote:
>> >> Your commit 5dffed7dd1a413f3965af702fa7ecd79809d1988 removed absolute
>> >> path from the interpreter binary name embedded in ELF files.
>> >
>> > do you consider my patch wrong?
>>
>> yes.  the absolute path to the ldso must be encoded in binaries.  the
>> point of HARDWIRED_ABSPATH is purely for sysroot/non-sysroot
>> toolchain, and the interp path isnt involved with that.
>>
>> are you sure this even works at runtime ?  i'm pretty sure the kernel
>> doesnt do any path lookups on the interp string.
>
> on an x86 I have recompiled only uClibc and rebooted, no problem with it
> Should I recompile some apps too to be sure that it copes with the change?

you'll have to because the interp path is compiled into the apps
itself at link time.  rebuilding uClibc itself would make absolutely
no difference.
-mike


More information about the uClibc mailing list