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