aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-08-30 10:35:04 -0300
committerAndreas K. Hüttel <dilfridge@gentoo.org>2022-09-03 22:29:07 +0200
commitfeac2ef90c4e94d5190ffc3c4c2c858a3b63b1c0 (patch)
tree19fff5ed14701d43355f6cab15213187a68f4af7
parentApply asm redirections in wchar.h before first use (diff)
downloadglibc-feac2ef90c4e94d5190ffc3c4c2c858a3b63b1c0.tar.gz
glibc-feac2ef90c4e94d5190ffc3c4c2c858a3b63b1c0.tar.bz2
glibc-feac2ef90c4e94d5190ffc3c4c2c858a3b63b1c0.zip
m68k: Enforce 4-byte alignment on internal locks (BZ #29537)gentoo/glibc-2.35-10
The HPPA also requires a 16-byte alignment for locks, although it is just a historical artifact to keep compatibility with old implementation. (cherry picked from commit 875cd481c386397b602b0293367d9a3e78308305)
-rw-r--r--sysdeps/nptl/libc-lockP.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/nptl/libc-lockP.h b/sysdeps/nptl/libc-lockP.h
index d3a6837fd2..9efe962588 100644
--- a/sysdeps/nptl/libc-lockP.h
+++ b/sysdeps/nptl/libc-lockP.h
@@ -34,7 +34,7 @@
#include <tls.h>
/* Mutex type. */
-typedef int __libc_lock_t;
+typedef int __libc_lock_t __LOCK_ALIGNMENT;
typedef struct { pthread_mutex_t mutex; } __rtld_lock_recursive_t;
typedef pthread_rwlock_t __libc_rwlock_t;