diff options
| author | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-03-23 11:45:40 +0100 |
|---|---|---|
| committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-03-23 11:45:40 +0100 |
| commit | 451b1c687105655a4f2c9c477b05535041e25060 (patch) | |
| tree | 3db315590172cd6244107a97a6603add934d7e32 /recipes/uclibc/uclibc-0.9.29/arm_fix_alignment.patch | |
| parent | 6767ca50430e37cdad0a8992b73c3f82ead134bf (diff) | |
| parent | e2b99b79f516a7466dc050902cee62f39869bf9d (diff) | |
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/uclibc/uclibc-0.9.29/arm_fix_alignment.patch')
| -rw-r--r-- | recipes/uclibc/uclibc-0.9.29/arm_fix_alignment.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes/uclibc/uclibc-0.9.29/arm_fix_alignment.patch b/recipes/uclibc/uclibc-0.9.29/arm_fix_alignment.patch new file mode 100644 index 0000000000..3a059021a7 --- /dev/null +++ b/recipes/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; |
