patches/uClibc/0.9.30.1/110-arm_fix_alignment.patch
author danielrubiob@gmail.com
Tue Feb 11 21:34:48 2014 +0100 (2014-02-11)
changeset 3285 a8cb9039fade
permissions -rw-r--r--
complibs/cloog: bump version

Signed-off-by: Daniel Rubio Bonilla <danielrubiob@gmail.com>
[yann.morin.1998@free.fr: re-order versions]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Cody P Schafer <dev@codyps.com>
Message-Id: <c2de3964cd6d5e4173cc.1391984023@uemo>
Patchwork-Id: 318637
     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;