svn commit: r201547 - head/lib/libc/gen

Alexander Kabaev kabaev at gmail.com
Tue Jan 5 05:52:49 UTC 2010


On Tue, 05 Jan 2010 13:39:06 +0800
David Xu <davidxu at freebsd.org> wrote:

> Alexander Kabaev wrote:
> > Hi,
> > 
> > some quick questions:
> > 
> > FB10_COMPAT_PRIVATE is not used anywhere, why did it get committed?
> > That aside, use of SYM_DEFAULT is pretty much always wrong.
> > 
> Yes, this needs to be cleaned.
> 
> > Also, does libthr really need to export sem_ symbols in 1.2
> > namespace? I do not think so, but there might be reasons I am
> > missing, could you shed some light here?
> > 
> 
> If libthr.so does not have 1.2 semaphore, a program linked against 
> libthr may use 1.0 version at linking time, doesn't this cause
> trouble? anyway, I am not symbol versioning expert, welcome to fix it.
> 

No, that won't happen. Compat (single '@') symbols are only resolvable
at runtime, bit at link time, so ld won't see any sem_ symbols in libthr
and by necessity will pick ones from libc.


-- 
Alexander Kabaev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20100105/9fc446c4/signature.pgp


More information about the svn-src-all mailing list