This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]