patches/uClibc/0.9.30/110-arm_fix_alignment.patch
author Titus von Boxberg <titus@v9g.de>
Mon Aug 22 09:41:35 2011 +0200 (2011-08-22)
branch1.12
changeset 2636 d53c6d529923
permissions -rw-r--r--
configure: fix --with-prog=[...]

check_for didn't set variable 'where' when the path to a prog
was passed manually "(cached)".

Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
(transplanted from b1be254591e7b524a0b06a2247a9331ebe0faf1d)
     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;