public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Symbol versioning for secondary libraries is not effective
@ 2018-01-26 10:41 Florian Weimer
  2018-01-26 13:55 ` Joseph Myers
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Weimer @ 2018-01-26 10:41 UTC (permalink / raw)
  To: GNU C Library

I looked at underlinking issues in the upcoming Fedora 28 distribution. 
It is fairly common that functions from <dlfcn.h> are called from DSOs 
which are not linked with -ldl.  The net result is that the references 
to dlsym etc. are not properly versioned.  <pthread.h> and <math.h> are 
also affected.

In the past, we have seen actual bugs related to missing symbol versions 
for functions from librt.

In short, I think this affects all secondary libraries besides 
libc.so.6.  This means that bumping symbol versions for those libraries 
is not an effective way to maintain backwards compatibility.  This is 
something to keep in mind for future changes.  It is also a mild 
argument in favor of moving symbols into libc.so.6, I think.

(Technically, those DSOs are of course incorrectly linked and not 
ABI-compliant, but that doesn't help users who are stuck with them.)

Thanks,
Florian

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-29 21:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-26 10:41 Symbol versioning for secondary libraries is not effective Florian Weimer
2018-01-26 13:55 ` Joseph Myers
2018-01-29 14:00   ` Florian Weimer
2018-01-29 23:58     ` Carlos O'Donell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).