From 71d260c1077ce7ab1530809fc826756bdcd032b0 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 7 Nov 2019 20:58:41 +0000 Subject: nptl: Cleanup mutex internal offset tests The offsets of pthread_mutex_t __data.__nusers, __data.__spins, __data.elision, __data.list are not required to be constant over the releases. Only the __data.__kind is used for static initializers. This patch also adds an additional size check for __data.__kind. Checked with a build against affected ABIs. Change-Id: I7a4e48cc91b4c4ada57e9a5d1b151fb702bfaa9f --- sysdeps/mips/nptl/pthread-offsets.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'sysdeps/mips') diff --git a/sysdeps/mips/nptl/pthread-offsets.h b/sysdeps/mips/nptl/pthread-offsets.h index 0ac3eda3fb..e96d34afd7 100644 --- a/sysdeps/mips/nptl/pthread-offsets.h +++ b/sysdeps/mips/nptl/pthread-offsets.h @@ -1,13 +1,5 @@ #if _MIPS_SIM == _ABI64 -# define __PTHREAD_MUTEX_NUSERS_OFFSET 12 # define __PTHREAD_MUTEX_KIND_OFFSET 16 -# define __PTHREAD_MUTEX_SPINS_OFFSET 20 -# define __PTHREAD_MUTEX_ELISION_OFFSET 22 -# define __PTHREAD_MUTEX_LIST_OFFSET 24 #else -# define __PTHREAD_MUTEX_NUSERS_OFFSET 16 # define __PTHREAD_MUTEX_KIND_OFFSET 12 -# define __PTHREAD_MUTEX_SPINS_OFFSET 20 -# define __PTHREAD_MUTEX_ELISION_OFFSET 22 -# define __PTHREAD_MUTEX_LIST_OFFSET 20 #endif -- cgit v1.2.3-70-g09d2