public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Alan Modra <amodra@bigpond.net.au>
To: binutils@sources.redhat.com
Subject: Re: powerpc new PLT and GOT
Date: Wed, 11 May 2005 14:59:00 -0000	[thread overview]
Message-ID: <20050511144458.GB29302@bubble.grove.modra.org> (raw)
In-Reply-To: <20050511142209.GA10062@nevyn.them.org>

On Wed, May 11, 2005 at 10:22:09AM -0400, Daniel Jacobowitz wrote:
> I'm not oing to look at the code, but I have one comment on the ABI.
> You've got a data section named .plt and a code section named .glink
> (well, you note that the text stubs can be anywhere in the text
> segment, but that's true on most architectures; I imagine that for now
> they're all going in a single .glink section).

Yes, they go in a single linker created .glink section, but this section
doesn't have it's own output section.  Instead, it contributes to .text.

> Everyone else seems to call the data section ".got.plt" and the text
> section ".plt".  GDB even knows about this; it uses the name ".plt" to
> help in skipping dynamic linker code.  Is there a reason why you can't
> use the traditional names?

I could, but .plt is traditionally a (somewhat) regular array.  .glink
doesn't really fit this model since it could be dispersed throughout the
text segment, something you might want to do in large programs where the
24-bit powerpc branch offset is limiting.  I know I don't support such
a .glink at the moment on powerpc (as we do on powerpc64), but I might
in the future.  In that case you couldn't output .glink to its own
output section, so gdb could not use the section name to skip plt call
stubs.

Then, given that .glink doesn't really fit the traditional .plt, I don't
want to use .got.plt because I feel some section ought to be called
.plt, simply because that's the traditional name for sections associated
with dynamic function linkage.  Powerpc64 also has a .plt that just
consists of data.

You're not the first to suggest .got.plt though.  :)

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

  reply	other threads:[~2005-05-11 14:45 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 [this message]
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
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=20050511144458.GB29302@bubble.grove.modra.org \
    --to=amodra@bigpond.net.au \
    --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).