Page MenuHomeFreeBSD

rtld: Use uintptr_t instead of Elf_Addr for init/fini function pointers
ClosedPublic

Authored by jhb on Jan 14 2026, 3:30 PM.
Tags
None
Referenced Files
F147054362: D54711.id169703.diff
Sat, Mar 7, 10:54 PM
Unknown Object (File)
Wed, Mar 4, 2:12 PM
Unknown Object (File)
Tue, Mar 3, 2:34 AM
Unknown Object (File)
Mon, Mar 2, 12:08 PM
Unknown Object (File)
Tue, Feb 24, 5:41 PM
Unknown Object (File)
Mon, Feb 9, 10:42 PM
Unknown Object (File)
Sat, Feb 7, 4:47 AM
Unknown Object (File)
Fri, Feb 6, 6:04 PM
Subscribers

Details

Summary

This is a no-op on non-CHERI architectures, but is required for CHERI
where Elf_Addr is only an address and not a complete pointer.

While here, consistently use uintptr_t * for arrays of init/fini
function pointers.

Effort: CHERI upstreaming
Obtained from: CheriBSD
Sponsored by: AFRL, DARPA

Diff Detail

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