Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Ulrich Weigand <uweigand@de.ibm.com>
Cc: Joel Brobecker <brobecker@adacore.com>, gdb-patches@sourceware.org
Subject: Re: [RFA/solib-svr4] use AT_BASE auxiliary entry to compute load 	base address
Date: Thu, 17 Apr 2008 17:48:00 -0000	[thread overview]
Message-ID: <20080417173711.GN17488@caradoc.them.org> (raw)
In-Reply-To: <200804171511.m3HFBc5N021455@d12av02.megacenter.de.ibm.com>

On Thu, Apr 17, 2008 at 05:11:38PM +0200, Ulrich Weigand wrote:
> GDB used to work correctly in the presence of prelinking anyway,
> because for regular shared libraries it detected that mismatch by
> comparing the load addresses from the BFD it reads with those 
> recorded in the dynamic loader's data structures (LM_ADDR_CHECK),
> and adjusting its expectations if it detects prelinking.

Can we read the dynamic linker's ELF header from the target, to
compare?

Wait, no, we can't... if we knew where it was loaded we wouldn't
need AT_BASE.  Well, we could ask gdbserver to read from the
target filesystem for us...

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2008-04-17 17:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-12 21:18 Joel Brobecker
2007-09-13  1:02 ` Joel Brobecker
2007-09-16 19:36 ` Daniel Jacobowitz
2007-09-17 19:42   ` Joel Brobecker
2007-09-17 19:49     ` Daniel Jacobowitz
2008-04-17 15:29 ` Ulrich Weigand
2008-04-17 17:48   ` Daniel Jacobowitz [this message]
2008-04-17 21:45     ` Ulrich Weigand
2008-04-17 22:32       ` Daniel Jacobowitz

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=20080417173711.GN17488@caradoc.them.org \
    --to=drow@false.org \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=uweigand@de.ibm.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