public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "H. J. Lu" <hjl@lucon.org>
To: binutils@sources.redhat.com
Subject: Re: RFC: -Bsymbolic, hidden and protected
Date: Fri, 04 Mar 2005 01:37:00 -0000	[thread overview]
Message-ID: <20050304013720.GA17563@lucon.org> (raw)
In-Reply-To: <20050303215444.GF376@bubble.modra.org>

On Fri, Mar 04, 2005 at 08:24:44AM +1030, Alan Modra wrote:
> On Thu, Mar 03, 2005 at 08:55:10AM -0800, H. J. Lu wrote:
> > On Thu, Mar 03, 2005 at 07:55:04AM -0800, H. J. Lu wrote:
> > > On Thu, Mar 03, 2005 at 11:19:13PM +1030, Alan Modra wrote:
> > > > On Wed, Mar 02, 2005 at 08:14:59PM -0800, H. J. Lu wrote:
> > > > > Protected visibility has almost everything, but requires
> > > > > special handling at run-time.
> > > > > 
> > > > > I was wondering if we could allow version script to overwrite
> > > > > hidden symbols. That is if a symbol is global in version script, we
> > > > > export it even if it is marked hidden. It may improve run-time
> > > > > performance.
> > > > 
> > > > How is this going to be different from using protected symbols?
> > > 
> > > No run-time special handling accociated with protected symbols, which
> > > may take extra lookup.
> > 
> > Also compiler/linker can't optimize protected function pointers.
> 
> Which means that if you export hidden function symbols from shared
> libraries by means of a version script, you will break function pointer
> comparisons.

Yes. If you don't do any function pointer comparisons on exported
functions in DSO, you should be OK.


H.J.

  reply	other threads:[~2005-03-04  1:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-03  4:15 H. J. Lu
2005-03-03 12:49 ` Alan Modra
2005-03-03 15:55   ` H. J. Lu
2005-03-03 16:55     ` H. J. Lu
2005-03-03 21:54       ` Alan Modra
2005-03-04  1:37         ` H. J. Lu [this message]
2005-04-21 21:06           ` PATCH: Force a hidden symbol global H. J. Lu

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=20050304013720.GA17563@lucon.org \
    --to=hjl@lucon.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).