how to inhibit libc.so.6 loading with ld 2.22...

Andrew Pinski pinskia@gmail.com
Fri Mar 6 07:25:00 GMT 2015


On Thu, Mar 5, 2015 at 9:50 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> On 04 Mar 2014 17:26, Marcello Stanisci wrote:
>> I'm using ld 2.22, on a debian wheezy system.
>> I would like to compile an "hello world" program using an alternative
>> library path, with alternative library names.
>> Although I can manage to tell the linker where to find those
>> alternative object names, actually belonging to a modified
>> version of glibc, it seems very difficult to forbid its (attempt of..)
>> loading of libc.so.6, which fails because it doesn't exists
>> on those alternatives directories.
>
> https://sourceware.org/glibc/wiki/Debugging/Loader_Debugging

If you build a new enough gdb.  You can use startup-with-shell
instead.  This is not mentioned here but I used it to debug ld.so
issues where I was setting LD_AUDIT.

Thanks,
Andrew

> -mike



More information about the Binutils mailing list