[parisc-linux-cvs] lock alignment problem in glibc

Richard Hirst rhirst@linuxcare.com
Fri, 16 Mar 2001 18:59:18 +0000


Index: sysdeps/hppa/dl-fptr.c
===================================================================
RCS file: /home/cvs/parisc/glibc/sysdeps/hppa/dl-fptr.c,v
retrieving revision 1.6
diff -u -r1.6 dl-fptr.c
--- dl-fptr.c   2000/10/06 15:20:54     1.6
+++ dl-fptr.c   2001/03/16 18:53:06
@@ -30,7 +30,7 @@
 # include <pt-machine.h>
 
 /* Remember, we use 0 to mean that a lock is taken on PA-RISC. */
-static int __hppa_fptr_lock = 1;
+static int __attribute__((aligned(16))) __hppa_fptr_lock = 1;
 #endif
 
 /* Because ld.so is now versioned, these functions can be in their own
Index: ChangeLog
===================================================================
RCS file: /home/cvs/parisc/glibc/ChangeLog,v
retrieving revision 1.22
diff -u -r1.22 ChangeLog
--- ChangeLog   2001/03/01 03:36:12     1.22
+++ ChangeLog   2001/03/16 18:53:11
@@ -1,5 +1,10 @@
 puffin.external.hp.com pending changes
 --------------------------------------
+
+2001-03-16  Ricahrd Hirst <rhirst@linuxcare.com>
+
+       * sysdeps/hppa/dl-fptr.c: make __hppa_fptr_lock 16 byte aligned
+
 2001-03-01  Alan Modra  <alan@linuxcare.com.au>
 
        * Makerules (libc_pic.os): Add $(LDFLAGS-os).