public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Are the pthread "compatibility" copies of symbols in libc still necessary?
@ 2018-03-16 14:30 Zack Weinberg
  2018-03-16 14:41 ` Florian Weimer
  0 siblings, 1 reply; 9+ messages in thread
From: Zack Weinberg @ 2018-03-16 14:30 UTC (permalink / raw)
  To: GNU C Library

A number of source files that properly belong to libc.so are also
compiled as part of libpthread, with a note that this is for
"compatibility for old binaries".  The exact set varies based on
architecture, but includes basic things like read, write, and fork - I
_think_ there was a difference in semantics in the distant past,
having something to do with thread cancellation.

It seems to me that these are no longer necessary.  The overall
behavior we want is for new binaries to link against the symbols in
libc.so, and old binaries that were linked against a libpthread with
those symbols to continue to work.  ELF doesn't require undefined
references to resolve to specific libraries at load time, so if we
just dropped the symbols from libpthread, shouldn't the references
from old binaries automatically resolve to the definitions in libc,
which is what we want?  Am I missing something?

zw

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

end of thread, other threads:[~2018-03-16 21:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-16 14:30 Are the pthread "compatibility" copies of symbols in libc still necessary? Zack Weinberg
2018-03-16 14:41 ` Florian Weimer
2018-03-16 15:35   ` Carlos O'Donell
2018-03-16 15:42     ` Florian Weimer
2018-03-16 17:39       ` Carlos O'Donell
2018-03-16 17:40         ` Florian Weimer
2018-03-16 18:13         ` Zack Weinberg
2018-03-16 20:46           ` Carlos O'Donell
2018-03-16 21:12             ` Zack Weinberg

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).