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 22:24:00 -0000	[thread overview]
Message-ID: <20070308222409.GA2227@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:
> This means there is no way to avoid the doubling and still keep the .rel 
> sections without changing GDB code, doesn't it?

Yes.  You could remove just the relocations for the debug sections,
but that's silly.  If you add this to the top of
symfile_relocate_debug_section, it should fix the problem.

+  if (bfd_get_file_flags (abfd) & (EXEC_P | DYNAMIC))
+    return NULL;

GNU binutils doesn't create shared libraries that need relocations
applied any more.  In fact, it hasn't for a while.  Maybe we should
remove support for those quirky objects, since the --emit-relocs
variant seems more common and more useful.

Does anyone have an opinion?

-- 
Daniel Jacobowitz
CodeSourcery


      parent reply	other threads:[~2007-03-08 22:24 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
2007-03-08 22:24         ` Daniel Jacobowitz [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=20070308222409.GA2227@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