public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* RFC: -Bsymbolic, hidden and protected
@ 2005-03-03  4:15 H. J. Lu
  2005-03-03 12:49 ` Alan Modra
  0 siblings, 1 reply; 7+ messages in thread
From: H. J. Lu @ 2005-03-03  4:15 UTC (permalink / raw)
  To: binutils

Loading an ELF DSO may require many relocations and accesing global
symbols within the DSO have to go through PLT/GOT, even if they are
defined within the DSO. -Bsymbloc avoids relocatins against global
symbols defined within the DSO. But it is too late for compiler to
take the full advantage of it and we can't do it selectly for
individual symbol. Hidden visibility will optimize everything, but it
makes global symbols local to the DSO. You can't use it on exported
symbols. 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.


H.J.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-04-21 21:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-03  4:15 RFC: -Bsymbolic, hidden and protected 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
2005-04-21 21:06           ` PATCH: Force a hidden symbol global H. J. Lu

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).