This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: elf_link_check_versioned_symbol
On Sat, Jun 22, 2002 at 08:11:47PM +0930, Alan Modra wrote:
> On Fri, Jun 21, 2002 at 09:40:23AM -0700, H . J . Lu wrote:
> > You missed:
> >
> > if ((verstab[symidx] & 0x7fff)
> > >= ((flags & DL_LOOKUP_RETURN_NEWEST) ? 2 : 3))
> >
> > An unversioned reference can be resolved by the oldest version. The
> > rest of code is ok although I prefer to keep the error message instead
> > of abort () just in case. If you want, I can submit a new working
> > patch.
>
> The code you use in your binutils doesn't check for multiple
> VERSYM_HIDDEN symbols. That seems wrong to me, since as far as I can
I assume you meant multiple none-VERSYM_HIDDEN symbols. However, I
am having a hard time to create such a DSO with index 2 skipped. In
most cases, I don't believe it is the right thing to do even if you
can create such a DSO.
> see, ld.so will do so in certain cases.
>
H.J.