Binary compatibility loss regarding errno
Jakub Jelinek
jakub@redhat.com
Mon Dec 30 11:14:00 GMT 2002
On Mon, Dec 30, 2002 at 10:57:44AM -0800, H. J. Lu wrote:
> > On the other side, with
> > .symver y,x@VERS_1
> > .symver z,x@VERS_2
> > reloc against SHN_UNDEF x
> > it is unclear which of the symbols actually should be used.
>
> It is kind of random. I think ld will pick the "first" one. But you can
> always use y or z directly. That is how it is used in some places in
> glibc.
It is not random in current ld actually, you always end up with SHN_UNDEF x,
ie. neither x@VERS_1 nor x@VERS_2. And no, you cannot use y or z directly,
because then if some binary has x@VERS_1 R_*_COPY reloc, you would access
the internal version in the shared library, not x@VERS_1 in .dynbss section
of the binary.
Jakub
More information about the Binutils
mailing list