public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@redhat.com>
To: binutils@sources.redhat.com
Subject: Re: powerpc new PLT and GOT
Date: Thu, 12 May 2005 06:08:00 -0000	[thread overview]
Message-ID: <20050512053747.GA5254@redhat.com> (raw)
In-Reply-To: <20050511141249.GA29302@bubble.grove.modra.org>

On Wed, May 11, 2005 at 11:42:50PM +0930, Alan Modra wrote:
>   Note that this ABI does not specify a fixed GOT register, or even one
>   register used throughout a binary.  If a function uses a register
>   other than r30 for the GOT register, it will be specified as
>   r_addend = reg*4+2 on each R_PPC_PLTREL24 reloc used by calls.  This
>   of course will require the linker to generate different .glink code
>   than the example implementation given here.
>   To allow ld.so to support old shared libs, we need to flag a new got
>   and plt layout, so we'll define a new dynamic tag, DT_PPC_GLINK which
>   will be set to the link-time address of PLTresolve.

If the program does in fact use different got registers, then there
will have to be more than one PLTresolve.  At which point it doesn't
make sense to have DT_PPC_GLINK pick out any one of them.  I suggest
simply setting this entry to 1, as with DT_TEXTREL.



r~

  parent reply	other threads:[~2005-05-12  5:37 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-11 14:22 Alan Modra
2005-05-11 14:29 ` Daniel Jacobowitz
2005-05-11 14:59   ` Alan Modra
2005-05-11 15:10     ` Andreas Schwab
2005-05-11 15:39       ` Alan Modra
2005-05-11 15:16     ` Daniel Jacobowitz
2005-05-11 16:37       ` Richard Earnshaw
2005-05-11 14:45 ` Andreas Schwab
2005-05-12  6:08 ` Richard Henderson [this message]
2005-05-12  6:13   ` Alan Modra
2005-05-12  7:47     ` Richard Henderson
2005-05-12  9:02       ` Alan Modra
2005-05-12 16:10         ` Alan Modra
2005-05-12 18:07         ` Richard Henderson
2005-05-14  5:57           ` Alan Modra
2005-05-17 14:16             ` Alan Modra
2005-05-19  8:32               ` Alan Modra

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=20050512053747.GA5254@redhat.com \
    --to=rth@redhat.com \
    --cc=binutils@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).