public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: binutils@sources.redhat.com
Subject: Re: RFA: Support for Thumb in dynamic objects
Date: Wed, 17 Nov 2004 03:02:00 -0000	[thread overview]
Message-ID: <20041117030226.GA3884@nevyn.them.org> (raw)
In-Reply-To: <m34qjpqmqs.fsf@gossamer.airs.com>

On Tue, Nov 16, 2004 at 08:37:31PM -0500, Ian Lance Taylor wrote:
> My main comment is that I've done similar work, but I had the luxury
> of simply assuming ARMv5t.  You can do so much better in that case
> that I do think we need to let the linker make that assumption when
> possible.  The easy way to do it automatically would be to say that if
> any input .o file is marked for a processor supporting ARMv5t or
> above, we can assume that the output will be too, and we can use
> ARMv5t in the PLT support, etc.

That's what I've done in the past - a previous version of this patch
used this to select v4t interworking capable PLT entries.

But - none of that is EABI compliant.  I don't know whether the EABI
has got anything to say on this subject yet; I know it was discussed.
But the way the GNU tools use ELF header flags is noncompliant, so I've
been trying not to introduce more uses.

So I just punted on the issue.

> There is, of course, a second related issue, which is whether the
> other objects involved in the dynamic link are compiled with
> interworking support.  In my case I could not assume that.  So while
> my linker doesn't add a stub for each R_ARM_THM_PC22 reloc--it just
> changes those to blx when appropriate--it does automatically add a
> stub for ABS32 and GOT32 references to Thumb code.  I don't have a
> good automatic solution here--perhaps the new new ABI, which I gather
> requires interworking support, will take the issue off the table.
> 
> Along similar lines it is quite easy for the linker to generate stubs
> for all functions potentially referenced by non-interworking code, so
> the need for the -mcallee-super-interworking option goes away.

I haven't done any work on the linker equivalents of super
interworking, since I didn't need them at the time.  If you'd like to
contribute it, of course... :-)

-- 
Daniel Jacobowitz

  reply	other threads:[~2004-11-17  3:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-16 23:39 Daniel Jacobowitz
2004-11-17  0:22 ` Paul Brook
2004-11-17  0:37   ` Daniel Jacobowitz
2004-11-17  1:37 ` Ian Lance Taylor
2004-11-17  3:02   ` Daniel Jacobowitz [this message]
2004-11-17  3:42     ` Ian Lance Taylor
2004-11-17 13:48 ` Richard Earnshaw
2004-11-17 16:49   ` Daniel Jacobowitz
2004-11-17 17:00     ` Richard Earnshaw
2004-11-17 17:05       ` Daniel Jacobowitz
2004-11-17 17:12         ` Richard Earnshaw
2004-11-17 17:36           ` Daniel Jacobowitz
2004-11-17 17:39             ` Richard Earnshaw

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=20041117030226.GA3884@nevyn.them.org \
    --to=drow@false.org \
    --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).