summaryrefslogtreecommitdiff
path: root/patches/uClibc/0.9.30/110-arm_fix_alignment.patch
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-02-08 22:07:29 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-02-08 22:07:29 (GMT)
commitd1369f342b52d11c4d42891c0cece22fc64aeb5b (patch)
tree4d0c31722f9ce11d6630eea56106d26599b54381 /patches/uClibc/0.9.30/110-arm_fix_alignment.patch
parent2177fb68ca226c01ffab26d2770da38583230a20 (diff)
Add patchset for uClibc-0.9.30 (from Gentoo).
/trunk/patches/uClibc/0.9.30/110-arm_fix_alignment.patch | 23 23 0 0 +++ /trunk/patches/uClibc/0.9.30/130-arm-ftruncate64.patch | 17 17 0 0 ++ /trunk/patches/uClibc/0.9.30/100-fix-gethostent_r-failure-retval.patch | 17 17 0 0 ++ /trunk/patches/uClibc/0.9.30/120-rm-whitespace.patch | 88 88 0 0 ++++++++++ /trunk/patches/uClibc/0.9.30/140-gnu89-inline.patch | 16 16 0 0 ++ 5 files changed, 161 insertions(+)
Diffstat (limited to 'patches/uClibc/0.9.30/110-arm_fix_alignment.patch')
-rw-r--r--patches/uClibc/0.9.30/110-arm_fix_alignment.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/patches/uClibc/0.9.30/110-arm_fix_alignment.patch b/patches/uClibc/0.9.30/110-arm_fix_alignment.patch
new file mode 100644
index 0000000..0d72e7f
--- /dev/null
+++ b/patches/uClibc/0.9.30/110-arm_fix_alignment.patch
@@ -0,0 +1,23 @@
+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 =-
+
+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 __inline__ unsigned long arm_modulus(unsigned long m, unsigned long p)
+ {
+ unsigned long i,t,inc;