Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Roland Puntaier <Roland.Puntaier@br-automation.com>
Cc: gdb@sources.redhat.com
Subject: Re: Antwort: Re: relocations when doing file command at gdb prompt
Date: Thu, 08 Mar 2007 18:26:00 -0000	[thread overview]
Message-ID: <20070308182613.GA21816@caradoc.them.org> (raw)
In-Reply-To: <OF63BB2068.33A1CF17-ONC1257298.005B26E3-C1257298.00625A41@br-automation.com>

On Thu, Mar 08, 2007 at 06:54:16PM +0100, Roland Puntaier wrote:
> > So, it's relocated already, but the relocations are still present.
> > No wonder GDB is doubling them.
> > ...
> > I don't see how we can sensibly distinguish the two cases.  What
> > toolchain produced this file?
> GCC, but with -Wl,-q,-shared,-T,"YYY.x", i.e shared and with modified 
> linker script, and the relocation info is kept because of a 
> post-processing using it.

Yes, I've seen this technique before.  We need to find something to do
about it.  It may mean dropping support for the old form, where shared
libraries needed the relocations, and applying them only for ET_REL
objects.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-03-08 18:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-07 16:16 Roland Puntaier
2007-03-08 15:22 ` Daniel Jacobowitz
2007-03-08 15:49   ` Roland Puntaier
2007-03-08 16:05     ` Daniel Jacobowitz
2007-03-08 17:54       ` Antwort: " Roland Puntaier
2007-03-08 18:26         ` Daniel Jacobowitz [this message]
2007-03-08 22:24         ` 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=20070308182613.GA21816@caradoc.them.org \
    --to=drow@false.org \
    --cc=Roland.Puntaier@br-automation.com \
    --cc=gdb@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