Page MenuHomeFreeBSD

libc,libthr: Remove __pthread_distribute_static_tls
ClosedPublic

Authored by jrtc27 on Jun 18 2025, 9:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 30, 3:28 AM
Unknown Object (File)
Sat, Oct 25, 7:52 PM
Unknown Object (File)
Oct 13 2025, 7:28 AM
Unknown Object (File)
Oct 8 2025, 9:32 PM
Unknown Object (File)
Oct 8 2025, 1:11 AM
Unknown Object (File)
Oct 6 2025, 11:56 PM
Unknown Object (File)
Oct 3 2025, 4:01 PM
Unknown Object (File)
Oct 2 2025, 5:24 AM
Subscribers

Details

Summary

This private API is no longer used by rtld-elf so can be removed.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lib/libc/gen/libc_interposing_table.c
45

My opinion is that we should keep the slot unused if we remove the interposer. If anything, this would make the upgrades easier, and not break half-upgraded systems to the state where /rescue must be used.

lib/libc/gen/libc_interposing_table.c
45

As in turn it into __INTERPOS_reserved0, and allow it to be reused after one release cycle when we know the slot definitely won't be in use by system libraries any more?

lib/libc/gen/libc_interposing_table.c
45

Not sure about reuse, but for now yes, just reserve the index in the table.

Reserve rather than remove interposing slot

lib/libc/include/libc_private.h
252

Could do INTERPOS__reserved42 too to document its (decimal) value, like how it's MAP_RESERVED%04X

This revision is now accepted and ready to land.Jul 10 2025, 5:44 PM