summaryrefslogtreecommitdiff
path: root/patches/uClibc/0.9.30.2/110-arm_fix_alignment.patch
diff options
context:
space:
mode:
authorJoachim Nilsson <jocke@vmlinux.org>2010-01-14 22:06:48 (GMT)
committerJoachim Nilsson <jocke@vmlinux.org>2010-01-14 22:06:48 (GMT)
commit9bfbd1e3d84a1a43156aac24e37636781732ceb2 (patch)
tree5d9025de141aea7db2a9d563e07ea30fcd2e27b1 /patches/uClibc/0.9.30.2/110-arm_fix_alignment.patch
parent68058e12b87427288f69cb1d3f9791fc64a8fdff (diff)
Port uClibc patches to 0.9.30.2
Some patches from 0.9.30.1 now applied upstream. The reminder have been only slightly modified to apply cleanly to the new base. Signed-off-by: Joachim Nilsson <jocke@vmlinux.org>
Diffstat (limited to 'patches/uClibc/0.9.30.2/110-arm_fix_alignment.patch')
-rw-r--r--patches/uClibc/0.9.30.2/110-arm_fix_alignment.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/uClibc/0.9.30.2/110-arm_fix_alignment.patch b/patches/uClibc/0.9.30.2/110-arm_fix_alignment.patch
new file mode 100644
index 0000000..1029c34
--- /dev/null
+++ b/patches/uClibc/0.9.30.2/110-arm_fix_alignment.patch
@@ -0,0 +1,25 @@
+Original patch from Gentoo.
+
+-= BEGIN original header =-
+ARMV5 can use STRD and LDRD access instructions but these accesses need to be
+8 byte aligned. The dynamic linker's malloc needs to match this so structures
+become 8 byte aligned to void unaligned accesses.
+
+RP - 14/02/2008
+
+-= END original header =-
+
+Modified slightly for uClibc-0.9.30.2 by Joachim Nilsson <jocke@vmlinux.org>
+
+diff -durN uClibc-0.9.30.orig/ldso/ldso/arm/dl-sysdep.h uClibc-0.9.30/ldso/ldso/arm/dl-sysdep.h
+--- uClibc-0.9.30.orig/ldso/ldso/arm/dl-sysdep.h 2008-09-25 10:35:20.000000000 +0200
++++ uClibc-0.9.30/ldso/ldso/arm/dl-sysdep.h 2009-02-07 09:57:59.000000000 +0100
+@@ -15,6 +15,8 @@
+ GOT_BASE[1] = (unsigned long) MODULE; \
+ }
+
++#define DL_MALLOC_ALIGN 8 /* EABI needs 8 byte alignment for STRD LDRD*/
++
+ static __always_inline unsigned long arm_modulus(unsigned long m, unsigned long p)
+ {
+ unsigned long i,t,inc;