[BUG] error in global variables strong aliasing

Peter S. Mazinger ps.m at gmx.net
Tue Apr 18 15:21:09 UTC 2006


On Wed, 12 Apr 2006, Mike Frysinger wrote:

> On Monday 20 March 2006 05:41, Peter S. Mazinger wrote:
> > On Sat, 18 Mar 2006, Amir Shalem wrote:
> > > after commit
> > > http://www.uclibc.org/lists/uclibc-cvs/2006-March/009686.html
> > >
> > > global variables such as environ, errno, and friends are broken
> > > <snip>
> > > same happens with __environ & environ.
> >
> > this one is curious, I had a bug report before yours when I made use of
> > hidden global data (what this svn commit undid due to stability problems)
> 
> could you point me to the thread(s) you refer to here ?  cant say i noticed 

it was on irc, pointed out by khem (iirc arch was arm or armeb), it seems 
to affect cross-compiled environments, native builds do not suffer of 
this (tested on x86/ppc, my arm chroot is not enough updated yet to test 
this and mipsel is broken as you know)

> any problems until after this change ... and really, the alias has always 
> been weak here, not strong, so you werent revereting anything when you 
> changed weak_alias(environ) to strong_alias(environ) ...
> 
> if we look at glibc, they never use strong_alias() for data, just functions
> -mike

I can't find any logic when glibc uses strong_alias versus weak_alias,
it seems to me, that anything new added is weak_alias, maybe it would be 
worth asking on the glibc list, although I don't expect a "proper" 
explanation as usual.

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list