public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Richard Earnshaw <rearnsha@arm.com>
To: pb@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: target/3925: [ARM/Thumb] Assembler chokes on branches with  (PLT)
Date: Tue, 19 Mar 2002 07:16:00 -0000	[thread overview]
Message-ID: <20020319151610.14421.qmail@sources.redhat.com> (raw)

The following reply was made to PR target/3925; it has been noted by GNATS.

From: Richard Earnshaw <rearnsha@arm.com>
To: Philip Blundell <pb@nexus.co.uk>
Cc: Richard.Earnshaw@arm.com, gcc-gnats@gcc.gnu.org, pb@gcc.gnu.org,
        fnf@ninemoons.com, gcc-bugs@gcc.gnu.org, rearnsha@gcc.gnu.org
Subject: Re: target/3925: [ARM/Thumb] Assembler chokes on branches with 
 (PLT)
Date: Tue, 19 Mar 2002 15:09:54 +0000

 > I would be reluctant to have -shared imply PIC across the board.  There
 > are legitimate reasons why people might want to build a dynamic object
 > but not pay the cost that goes with position independence.  Perhaps this
 > is a rare enough situation that it also isn't worth losing too much
 > sleep over, I dunno.  I must admit, having -shared generate PLT relocs
 > by default for branches would go some way towards helping those people
 > who accidentally link things like libiberty.a into their shared
 > libraries.
 
 It can't mean PIC across the board, since there is no way to alter the 
 code sequences that reference static data.  The only solution will be 
 relocate the pages in question at load time.  However, the dynamic relocs 
 for that aren't any different to the relocs for the GOT (except that they 
 relocate text pages rather than data pages, and thus prevent them from 
 being shared).
 
 But for branches, my point still stands, the model to use for both types 
 of reloc is the same; and what's more, both cases would benefit from the 
 use of such a model (in one case it makes the code work when it wouldn't 
 have done otherwise, and in the second it makes the code more efficient by 
 eliminating the PLT stub when it isn't needed).
 
 R.
 


             reply	other threads:[~2002-03-19 15:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-19  7:16 Richard Earnshaw [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-04-23  8:57 rearnsha
2002-03-19  7:36 Richard Earnshaw
2002-03-19  7:26 Philip Blundell
2002-03-19  7:06 Philip Blundell
2002-03-19  6:56 Richard Earnshaw
2002-03-19  6:36 Philip Blundell
2002-03-19  4:06 Richard Earnshaw
2002-03-19  3:56 Philip Blundell
2002-03-19  3:40 rearnsha
2002-03-19  3:16 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=20020319151610.14421.qmail@sources.redhat.com \
    --to=rearnsha@arm.com \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=pb@gcc.gnu.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).