patches/uClibc/0.9.30.1/110-arm_fix_alignment.patch
author Daniel Price <daniel.price@gmail.com>
Tue Nov 20 16:59:17 2012 -0800 (2012-11-20)
branch1.17
changeset 3129 b8e00eab8f81
permissions -rw-r--r--
scripts: fail on ':' in paths

Signed-off-by: Daniel Price <daniel.price@gmail.com>
[yann.morin.1998@free.fr: split original patch for self-contained changes]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <163f86b5216fc08c672a.1353459722@nipigon.dssd.com>
Patchwork-Id: 200536
(transplanted from 15cd5dc25929d0ccd0e1f187fe721a1ca0d48919)
     1 Original patch from Gentoo.
     2 
     3 -= BEGIN original header =-
     4 ARMV5 can use STRD and LDRD access instructions but these accesses need to be 
     5 8 byte aligned. The dynamic linker's malloc needs to match this so structures
     6 become 8 byte aligned to void unaligned accesses.
     7 
     8 RP - 14/02/2008
     9 
    10 -= END original header =-
    11 
    12 diff -durN uClibc-0.9.30.orig/ldso/ldso/arm/dl-sysdep.h uClibc-0.9.30/ldso/ldso/arm/dl-sysdep.h
    13 --- uClibc-0.9.30.orig/ldso/ldso/arm/dl-sysdep.h	2008-09-25 10:35:20.000000000 +0200
    14 +++ uClibc-0.9.30/ldso/ldso/arm/dl-sysdep.h	2009-02-07 09:57:59.000000000 +0100
    15 @@ -15,6 +15,8 @@
    16    GOT_BASE[1] = (unsigned long) MODULE; \
    17  }
    18  
    19 +#define DL_MALLOC_ALIGN 8  /* EABI needs 8 byte alignment for STRD LDRD*/
    20 +
    21  static __inline__ unsigned long arm_modulus(unsigned long m, unsigned long p)
    22  {
    23  	unsigned long i,t,inc;