aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2020-02-05 17:29:03 +0100
committerAndreas Schwab <schwab@suse.de>2021-03-07 15:42:45 +0100
commit55c48a2996679d37fd0aec263547a02fb025bf21 (patch)
treee0eb731113d78dd44e31d10f2881344aec8981cc
parent17403eda99badf03ae92a5b6388fe6efec946356 (diff)
downloadglibc-55c48a2996679d37fd0aec263547a02fb025bf21.zip
glibc-55c48a2996679d37fd0aec263547a02fb025bf21.tar.gz
glibc-55c48a2996679d37fd0aec263547a02fb025bf21.tar.bz2
aarch64: add pthread-offset.h for ILP32
-rw-r--r--sysdeps/aarch64/nptl/pthread-offsets.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/sysdeps/aarch64/nptl/pthread-offsets.h b/sysdeps/aarch64/nptl/pthread-offsets.h
index 31f0587..280d5d5 100644
--- a/sysdeps/aarch64/nptl/pthread-offsets.h
+++ b/sysdeps/aarch64/nptl/pthread-offsets.h
@@ -1,3 +1,11 @@
-#define __PTHREAD_MUTEX_KIND_OFFSET 16
+#ifdef __ILP32__
+# define __PTHREAD_MUTEX_KIND_OFFSET 12
+#else
+# define __PTHREAD_MUTEX_KIND_OFFSET 16
+#endif
-#define __PTHREAD_RWLOCK_FLAGS_OFFSET 48
+#ifdef __ILP32__
+# define __PTHREAD_RWLOCK_FLAGS_OFFSET 40
+#else
+# define __PTHREAD_RWLOCK_FLAGS_OFFSET 48
+#endif