public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Pinski <pinskia@gmail.com>
To: Marcello Stanisci <stanisci.m@gmail.com>,
	binutils <binutils@sourceware.org>
Subject: Re: how to inhibit libc.so.6 loading with ld 2.22...
Date: Fri, 06 Mar 2015 07:25:00 -0000	[thread overview]
Message-ID: <CA+=Sn1=p5SWd2jsyCfG6A2RWZ04kuWqRBEPoOvsJwM0egRJYyQ@mail.gmail.com> (raw)
In-Reply-To: <20150306055048.GF12857@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

      reply	other threads:[~2015-03-06  7:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-04 16:26 Marcello Stanisci
2015-03-06  5:50 ` Mike Frysinger
2015-03-06  7:25   ` Andrew Pinski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+=Sn1=p5SWd2jsyCfG6A2RWZ04kuWqRBEPoOvsJwM0egRJYyQ@mail.gmail.com' \
    --to=pinskia@gmail.com \
    --cc=binutils@sourceware.org \
    --cc=stanisci.m@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).