public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Edward Peschko <esp5@pge.com>
To: Joe Buck <Joe.Buck@synopsys.COM>
Cc: Dan Kegel <dank@kegel.com>,
	ian@airs.com, alan@lxorguk.ukuu.org.uk,
	libc-alpha@sources.redhat.com, binutils@sources.redhat.com
Subject: Re: modified /etc/ld.so.preload (was: forestalling GNU incompatibility - proposal for binary relative dynamic linking)
Date: Fri, 28 Jan 2005 21:22:00 -0000	[thread overview]
Message-ID: <20050128211430.GA7242@venus> (raw)
In-Reply-To: <20050128210358.GA2681@synopsys.com>

On Fri, Jan 28, 2005 at 01:03:58PM -0800, Joe Buck wrote:
> On Fri, Jan 28, 2005 at 12:40:07PM -0800, Edward Peschko wrote:
> > of course, but unless you want to build everything static, you're 
> > at the mercy of LD_LIBRARY_PATH which will inevitably break either
> > your executables or the system executables depending on which comes
> > first.
> 
> [ offtopic ]
> 
> Being "at the mercy of LD_LIBRARY_PATH" is a feature, which if you break
> will stop a number of apps, like valgrind and ltrace, from working.
> They rely, for correct function, on the ability to intercept calls to
> the C library (that is, to "call the wrong glibc").

good point..

then I really don't see anyway to do what I want to do without either
massively modifying the build infrastructure of what I am doing to make
everything either compile with the correct gcc flags, or providing
rpath-like functionality in LD_LIBRARY_PATH.

Either that or adding directories to /etc/ld.so.preload and statically 
compiling the exceptions: valgrind, ltrace, etc, versus the 'wrong libc'.

Or - maybe valgrind, et al, could use LD_PRELOAD (which also could be 
modified to accept directories) and then we could be at the mercy
of LD_PRELOAD instead?

Ed

      reply	other threads:[~2005-01-28 21:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20050127041429.GA16277@venus>
     [not found] ` <41F878CC.8000502@kegel.com>
     [not found]   ` <20050127211101.GD16277@venus>
     [not found]     ` <41F98CBB.4010902@kegel.com>
2005-01-28 20:48       ` Edward Peschko
2005-01-28 21:04         ` Joe Buck
2005-01-28 21:22           ` Edward Peschko [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=20050128211430.GA7242@venus \
    --to=esp5@pge.com \
    --cc=Joe.Buck@synopsys.COM \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=binutils@sources.redhat.com \
    --cc=dank@kegel.com \
    --cc=ian@airs.com \
    --cc=libc-alpha@sources.redhat.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).