* how to inhibit libc.so.6 loading with ld 2.22...
@ 2014-03-04 16:26 Marcello Stanisci
2015-03-06 5:50 ` Mike Frysinger
0 siblings, 1 reply; 3+ messages in thread
From: Marcello Stanisci @ 2014-03-04 16:26 UTC (permalink / raw)
To: binutils
Hello everyone,
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.
Thanks in advance,
ms
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to inhibit libc.so.6 loading with ld 2.22...
2014-03-04 16:26 how to inhibit libc.so.6 loading with ld 2.22 Marcello Stanisci
@ 2015-03-06 5:50 ` Mike Frysinger
2015-03-06 7:25 ` Andrew Pinski
0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2015-03-06 5:50 UTC (permalink / raw)
To: Marcello Stanisci; +Cc: binutils
[-- Attachment #1: Type: text/plain, Size: 579 bytes --]
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
-mike
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to inhibit libc.so.6 loading with ld 2.22...
2015-03-06 5:50 ` Mike Frysinger
@ 2015-03-06 7:25 ` Andrew Pinski
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Pinski @ 2015-03-06 7:25 UTC (permalink / raw)
To: Marcello Stanisci, binutils
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-06 7:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-04 16:26 how to inhibit libc.so.6 loading with ld 2.22 Marcello Stanisci
2015-03-06 5:50 ` Mike Frysinger
2015-03-06 7:25 ` Andrew Pinski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).