Author: qboosh                       Date: Tue Jun 21 19:40:00 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- allocated pointers need 8-byte alignment on sparc (to use ldd/std opcodes to 
access 8-byte aligned structs)

---- Files affected:
SOURCES:
   elfutils-align.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/elfutils-align.patch
diff -u /dev/null SOURCES/elfutils-align.patch:1.1
--- /dev/null   Tue Jun 21 21:40:00 2005
+++ SOURCES/elfutils-align.patch        Tue Jun 21 21:39:55 2005
@@ -0,0 +1,15 @@
+--- elfutils-0.108/libdw/libdwP.h.orig 2005-04-02 22:23:11.000000000 +0000
++++ elfutils-0.108/libdw/libdwP.h      2005-06-21 19:26:01.413965788 +0000
+@@ -142,7 +142,11 @@
+     size_t size;
+     size_t remaining;
+     struct libdw_memblock *prev;
+-    char mem[0];
++    char mem[0]
++#ifdef __sparc__
++    __attribute__((aligned(8)))
++#endif
++    ;
+   } *mem_tail;
+ 
+   /* Default size of allocated memory blocks.  */
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to