diff options
author | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2008-08-21 09:49:03 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2008-08-21 09:49:03 +0000 |
commit | ed006c03d260828b03f93b3f6840d1a4d2163d01 (patch) | |
tree | 08c374701b15478adf6bf4916b51caad44feef67 /packages/uclibc/uclibc-0.9.29/arm_fix_alignment.patch | |
parent | e818a5d0aa7022b0b4857add403e7953ed3534f7 (diff) | |
parent | 60de79c7bae656914aa42424a1bb9cd7f0f62047 (diff) |
merge of '4c4e69889620b924d4a3277e83211f6f7f066c8c'
and '7fd15622321922163aab9fa955236c9a25de2e65'
Diffstat (limited to 'packages/uclibc/uclibc-0.9.29/arm_fix_alignment.patch')
-rw-r--r-- | packages/uclibc/uclibc-0.9.29/arm_fix_alignment.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/uclibc/uclibc-0.9.29/arm_fix_alignment.patch b/packages/uclibc/uclibc-0.9.29/arm_fix_alignment.patch new file mode 100644 index 0000000000..3a059021a7 --- /dev/null +++ b/packages/uclibc/uclibc-0.9.29/arm_fix_alignment.patch @@ -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; |