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, Feb 18, 4:36 AM
Unknown Object (File)
Tue, Feb 11, 10:27 PM
Unknown Object (File)
Tue, Feb 11, 10:27 PM
Unknown Object (File)
Tue, Feb 11, 10:27 PM
Unknown Object (File)
Jan 14 2025, 10:21 AM
Unknown Object (File)
Jan 14 2025, 10:09 AM
Unknown Object (File)
Jan 13 2025, 5:22 PM
Unknown Object (File)
Nov 29 2024, 11:11 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable