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)
Mon, Oct 13, 7:28 AM
Unknown Object (File)
Wed, Oct 8, 9:32 PM
Unknown Object (File)
Wed, Oct 8, 1:11 AM
Unknown Object (File)
Mon, Oct 6, 11:56 PM
Unknown Object (File)
Fri, Oct 3, 4:01 PM
Unknown Object (File)
Thu, Oct 2, 5:24 AM
Unknown Object (File)
Wed, Sep 24, 12:03 PM
Unknown Object (File)
Mon, Sep 22, 1:04 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