12745e
--- glibc-2.17-c758a686/ports/sysdeps/aarch64/nptl/tls.h
12745e
+++ glibc-2.17-c758a686/ports/sysdeps/aarch64/nptl/tls.h
5de29b
@@ -63,7 +63,7 @@ typedef struct
5de29b
 # define TLS_INIT_TCB_SIZE	sizeof (tcbhead_t)
5de29b
 
5de29b
 /* Alignment requirements for the initial TCB.  */
5de29b
-# define TLS_INIT_TCB_ALIGN	__alignof__ (tcbhead_t)
5de29b
+# define TLS_INIT_TCB_ALIGN	__alignof__ (struct pthread)
5de29b
 
5de29b
 /* This is the size of the TCB.  */
5de29b
 # define TLS_TCB_SIZE		sizeof (tcbhead_t)
5de29b
@@ -72,7 +72,7 @@ typedef struct
5de29b
 # define TLS_PRE_TCB_SIZE	sizeof (struct pthread)
5de29b
 
5de29b
 /* Alignment requirements for the TCB.  */
5de29b
-# define TLS_TCB_ALIGN		__alignof__ (tcbhead_t)
5de29b
+# define TLS_TCB_ALIGN		__alignof__ (struct pthread)
5de29b
 
5de29b
 /* Install the dtv pointer.  The pointer passed is to the element with
5de29b
    index -1 which contain the length.  */