Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: drow@false.org (Daniel Jacobowitz)
Cc: gdb-patches@sourceware.org
Subject: Re: [rfc] Fix problem with (maybe) non-relocated .opd section on        powerpc64-linux
Date: Sat, 17 May 2008 13:22:00 -0000	[thread overview]
Message-ID: <200805162035.m4GKZE6E025581@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <20080515182133.GA12681@caradoc.them.org> from "Daniel Jacobowitz" at May 15, 2008 02:21:33 PM

Daniel Jacobowitz wrote:
> On Thu, May 15, 2008 at 07:36:33PM +0200, Ulrich Weigand wrote:
> > Kernel modules generally have an opd section; as in other object files,
> > these will carry a R_PPC64_ADDR64 relocation pointing to .text + some
> > offset.  (In shared libraries we see a R_PPC_RELATIVE instead.)
> > 
> > That means my heuristics will probably go wrong when applied to an
> > object file (or kernel module).  When would that actually happen?
> 
> Generally, they are loaded with either add-symbol-file (by hand or
> autogenerated) specifying each section.  The KGDB guys also have a GDB
> patch to do it automatically.  That's one of my targetted applications
> of Python scripting.

Thinking about this, it seems this would mean that function descriptors
cannot work in kernel modules even today: add-symbol-file solely adds
an objfile (with obj_sections and so on); it does not modify the target
and its section table.  Right?

However, ppc64_linux_convert_from_func_ptr_addr *by design* only consults
the section table of the target -- this means it will never see those
extra symbol files anyway.

Am I missing something here?

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


  parent reply	other threads:[~2008-05-16 20:35 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-15 12:08 Ulrich Weigand
2008-05-15 17:16 ` Daniel Jacobowitz
2008-05-15 17:40   ` Ulrich Weigand
2008-05-15 18:22     ` Daniel Jacobowitz
2008-05-15 18:56       ` Ulrich Weigand
2008-05-15 19:18         ` Ulrich Weigand
2008-05-15 19:21         ` Daniel Jacobowitz
2008-05-16 18:06           ` Ulrich Weigand
2008-05-16 20:08             ` Daniel Jacobowitz
2008-05-16 20:35               ` Pedro Alves
2008-05-17 13:22           ` Ulrich Weigand [this message]
2008-05-17 13:31             ` Daniel Jacobowitz
2008-08-14 17:16               ` Ulrich Weigand
2008-08-21 19:57                 ` Ulrich Weigand

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=200805162035.m4GKZE6E025581@d12av02.megacenter.de.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    /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