This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: how to inhibit libc.so.6 loading with ld 2.22...
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Marcello Stanisci <stanisci dot m at gmail dot com>, binutils <binutils at sourceware dot org>
- Date: Thu, 5 Mar 2015 23:25:35 -0800
- Subject: Re: how to inhibit libc.so.6 loading with ld 2.22...
- Authentication-results: sourceware.org; auth=none
- References: <CA+4a3TxYQxFAc1eqc4+ekwSDgZKX=qgWQD+H-Chtm5w1vRec6g at mail dot gmail dot com> <20150306055048 dot GF12857 at vapier>
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