Page MenuHomeFreeBSD

libc: Fix the alignment of the TCB to match rtld for several architectures.
ClosedPublic

Authored by jhb on Dec 8 2021, 9:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 1, 3:59 AM
Unknown Object (File)
Wed, Nov 26, 1:17 AM
Unknown Object (File)
Mon, Nov 24, 5:31 AM
Unknown Object (File)
Nov 5 2025, 6:23 PM
Unknown Object (File)
Nov 5 2025, 7:21 AM
Unknown Object (File)
Nov 4 2025, 2:56 PM
Unknown Object (File)
Oct 30 2025, 5:13 AM
Unknown Object (File)
Oct 29 2025, 12:57 PM
Subscribers

Details

Summary
  • Use 16 byte alignment rather than 8 for aarch64, powerpc64, and RISC-V.
  • Use 8 byte alignment rather than 4 for 32-bit arm, mips, and powerpc.

I suspect that mips64 should be using 16 byte alignment, but both libc
and rtld currently use 8 byte alignment.

Sponsored by: The University of Cambridge, Google Inc.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43250
Build 40138: arc lint + arc unit