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)
Tue, Oct 6, 12:46 PM
Unknown Object (File)
Mon, Oct 5, 8:44 AM
Unknown Object (File)
Thu, Oct 1, 2:11 AM
Unknown Object (File)
Thu, Oct 1, 1:42 AM
Unknown Object (File)
Thu, Oct 1, 12:20 AM
Unknown Object (File)
Sat, Sep 26, 11:21 PM
Unknown Object (File)
Sun, Sep 20, 9:25 PM
Unknown Object (File)
Sep 10 2026, 1:59 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