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)
Wed, Jan 21, 10:44 AM
Unknown Object (File)
Tue, Jan 20, 2:10 AM
Unknown Object (File)
Fri, Jan 16, 1:28 AM
Unknown Object (File)
Wed, Jan 14, 9:33 AM
Unknown Object (File)
Jan 8 2026, 10:47 AM
Unknown Object (File)
Jan 6 2026, 7:21 AM
Unknown Object (File)
Dec 16 2025, 2:46 AM
Unknown Object (File)
Dec 12 2025, 12:39 PM
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