--- a/sysdeps/unix/sysv/linux/x86/longjmp.c +++ b/sysdeps/unix/sysv/linux/x86/longjmp.c @@ -29,6 +29,7 @@ /* Assert that the priv field in struct pthread_unwind_buf has space to store shadow stack pointer. */ +#if defined SHADOW_STACK_POINTER_OFFSET && SHADOW_STACK_POINTER_OFFSET > 0 _Static_assert ((offsetof (struct pthread_unwind_buf, priv) <= SHADOW_STACK_POINTER_OFFSET) && ((offsetof (struct pthread_unwind_buf, priv) @@ -37,3 +38,4 @@ + SHADOW_STACK_POINTER_SIZE)), "Shadow stack pointer is not within private storage " "of pthread_unwind_buf."); +#endif