[oe-commits] org.oe.dev uclibc: add missing arm_fix_alignment.patch

cbrake commit oe at amethyst.openembedded.net
Thu May 8 21:01:33 UTC 2008


uclibc: add missing arm_fix_alignment.patch
should have been included on the last commit

Author: cbrake at openembedded.org
Branch: org.openembedded.dev
Revision: 1a5918b15a67bf4ac9b0ec5589c7d70c5cc7671c
ViewMTN: http://monotone.openembedded.org/revision/info/1a5918b15a67bf4ac9b0ec5589c7d70c5cc7671c
Files:
1
packages/uclibc/files/arm_fix_alignment.patch
Diffs:

#
# mt diff -ref36187db167150672a73179a581ae97219cbcef -r1a5918b15a67bf4ac9b0ec5589c7d70c5cc7671c
#
#
#
# add_file "packages/uclibc/files/arm_fix_alignment.patch"
#  content [a1e3d197a977661fcf2ef030d1afb0ff58b035a2]
#
============================================================
--- packages/uclibc/files/arm_fix_alignment.patch	a1e3d197a977661fcf2ef030d1afb0ff58b035a2
+++ packages/uclibc/files/arm_fix_alignment.patch	a1e3d197a977661fcf2ef030d1afb0ff58b035a2
@@ -0,0 +1,19 @@
+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
+
+Index: uClibc-0.9.29/ldso/ldso/arm/dl-sysdep.h
+===================================================================
+--- uClibc-0.9.29.orig/ldso/ldso/arm/dl-sysdep.h	2008-02-14 00:58:12.000000000 +0000
++++ uClibc-0.9.29/ldso/ldso/arm/dl-sysdep.h	2008-02-14 00:59:19.000000000 +0000
+@@ -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;






More information about the Openembedded-commits mailing list