HomeFreeBSD

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

Description

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

  • 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.

Reviewed by: kib, jrtc27
Sponsored by: The University of Cambridge, Google Inc.
Differential Revision: https://reviews.freebsd.org/D33350

(cherry picked from commit 4c2f5bfbfa48b33b11912e7308ebd6f98fb6e647)

Details

Provenance
jhbAuthored on Dec 9 2021, 9:16 PM
Reviewer
kib
Differential Revision
D33350: libc: Fix the alignment of the TCB to match rtld for several architectures.
Parents
rG1e2235df43f2: amd64: Allocate TCB with alignment of 16 rather than 8.
Branches
Unknown
Tags
Unknown