[PATCH 09/12] Finish move of clock_* functions to libc.
Joseph Myers
joseph@codesourcery.com
Tue Aug 20 15:13:00 GMT 2019
On Tue, 20 Aug 2019, Zack Weinberg wrote:
> In glibc 2.17, the functions clock_getcpuclockid, clock_getres,
> clock_gettime, clock_nanosleep, and clock_settime were moved from
> librt.so to libc.so, leaving compatibility stubs behind. Now that the
> dynamic linker no longer insists on finding versioned symbols in the
> same library that originally defined them, we do not need the stubs
> anymore, and this means we donât need GLIBC_PRIVATE __-prefix aliases for
> most of the functions anymore either. (clock_gettime is still called
> all over the place internally and therefore still needs one.)
But my understanding is that moving a function to libc like that only
works if libc has the symbol *at the same version* as it had in the
library from which it was removed. And I don't see anything in this patch
to add the older symbol version for these functions to libc (in the
implementation and the ABI test baselines) (so libc would then have these
functions at two symbol versions on most platforms, with both versions
pointing to the same function implementations).
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list