PATCH: Add STO_COPY
H. J. Lu
hjl@lucon.org
Sat Apr 5 17:48:00 GMT 2003
On Fri, Apr 04, 2003 at 06:52:26PM -0800, Ulrich Drepper wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> H. J. Lu wrote:
>
> > Can you be more specific? Are you saying glibc won't support protected
> > symbols in general or glibc won't support protected symbols with copy
> > relocation. I have no problems to disallow protected symbols which may
> > introduce copy relocation.
>
> We have some support for protected symbols and this support isn't
> causing any problems. It's just slow. Anything further is unnecessary
> since nobody should really only use it.
>
Protected symbol is added to gABI for people to use. People are using
it. The current glibc protected symbol lookup implementation is slow.
But it doesn't have to be that way. My latest patch should improve its
performance by quite a bit. Besides, people use protected symbol not
because its lookup speed.
I have a problem for ld to knowingly create DSOs which won't work
right. We should either support protected symbol with copy relocation
or refuse to generate such DSOs.
H.J.
More information about the Binutils
mailing list