diff --git a/sysdeps/loongarch/nptl/tls.h b/sysdeps/loongarch/nptl/tls.h index 93d718e78e..4d5e3ba3c5 100644 --- a/sysdeps/loongarch/nptl/tls.h +++ b/sysdeps/loongarch/nptl/tls.h @@ -54,6 +54,9 @@ typedef struct pointer, we don't need this. */ #define TLS_TCB_SIZE 0 +/* Alignment requirements for the TCB. */ +#define TLS_TCB_ALIGN __alignof__(struct pthread) + /* This is the size we need before TCB - actually, it includes the TCB. */ #define TLS_PRE_TCB_SIZE \ (sizeof (struct pthread) \