diff options
author | Cliff Brake <cbrake@bec-systems.com> | 2008-05-08 20:59:16 +0000 |
---|---|---|
committer | Cliff Brake <cbrake@bec-systems.com> | 2008-05-08 20:59:16 +0000 |
commit | cb01e35f9b9ac347df764b72462e3594c18b6aac (patch) | |
tree | 09e933e1468a6cd026a009a64872ab74710566f7 /packages | |
parent | d6cb7b442dcb5b41ea32bc23700646e47c51546c (diff) |
uclibc: add missing arm_fix_alignment.patch
should have been included on the last commit
Diffstat (limited to 'packages')
-rw-r--r-- | packages/uclibc/files/arm_fix_alignment.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/uclibc/files/arm_fix_alignment.patch b/packages/uclibc/files/arm_fix_alignment.patch new file mode 100644 index 0000000000..3a059021a7 --- /dev/null +++ b/packages/uclibc/files/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; |