From: Szabolcs Nagy Date: Tue, 12 Jul 2022 12:09:02 +0000 (+0100) Subject: cheri: nptl: fix pthread_attr_t alignment X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f65ed89a55172f2df5d214c854eaa9dadf7be35d;p=thirdparty%2Fglibc.git cheri: nptl: fix pthread_attr_t alignment Alignment of the public definition did not match the internal layout. Ensure that the type is at least pointer aligned. --- diff --git a/sysdeps/nptl/bits/pthreadtypes.h b/sysdeps/nptl/bits/pthreadtypes.h index 706c2bb4955..f889b8926f6 100644 --- a/sysdeps/nptl/bits/pthreadtypes.h +++ b/sysdeps/nptl/bits/pthreadtypes.h @@ -61,6 +61,7 @@ union pthread_attr_t { char __size[__SIZEOF_PTHREAD_ATTR_T]; long int __align; + void * __align_p; }; #ifndef __have_pthread_attr_t typedef union pthread_attr_t pthread_attr_t;