This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PowerPC ugly symbol versioning
- From: Alan Modra <amodra at gmail dot com>
- To: "Ryan S. Arnold" <ryan dot arnold at gmail dot com>
- Cc: libc-alpha <libc-alpha at sourceware dot org>
- Date: Wed, 21 Aug 2013 23:43:25 +0930
- Subject: Re: PowerPC ugly symbol versioning
- References: <20130809045235 dot GA3294 at bubble dot grove dot modra dot org> <CAAKybw-cu83rHCP-fqPNqNMYHj1X=H5_-P+d7ZV0B1fiu-i=bA at mail dot gmail dot com>
On Tue, Aug 20, 2013 at 02:19:15PM -0500, Ryan S. Arnold wrote:
> On Thu, Aug 8, 2013 at 11:52 PM, Alan Modra <amodra@gmail.com> wrote:
> > -# if __WORDSIZE == 64
> > -symbol_version (__novmx_longjmp,_longjmp,GLIBC_2.3);
> > -symbol_version (__novmxlongjmp,longjmp,GLIBC_2.3);
> > -symbol_version (__novmxsiglongjmp,siglongjmp,GLIBC_2.3);
> > -# else
> > -symbol_version (__novmx_longjmp,_longjmp,GLIBC_2.0);
> > -symbol_version (__novmxlongjmp,longjmp,GLIBC_2.0);
> > -symbol_version (__novmxsiglongjmp,siglongjmp,GLIBC_2.0);
> > -# endif
> > +compat_symbol (libc, __novmx_longjmp, _longjmp, GLIBC_2_0);
> > +compat_symbol (libc, __novmxlongjmp, longjmp, GLIBC_2_0);
> > +compat_symbol (libc, __novmxsiglongjmp, siglongjmp, GLIBC_2_0);
>
> Doesn't eliminating the __WORDSIZE == 64 check erroneously export
> glibc 2.0 symbol availability for this symbol?
No. compat_symbol uses VERSION_libc_GLIBC_2_0 for the symbol version,
and VERSION_libc_GLIBC_2_0 is defined to GLIBC_2.3 when shlib-versions
says the earliest symbol set is GLIBC_2.3.
--
Alan Modra
Australia Development Lab, IBM