From 6a2fed26d1097cdf856e8a33be0bc4ff13fea35f Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sun, 8 Mar 2009 17:11:31 +0000 Subject: Add uClibc-0.9.30.1 patchset, based on the 0.9.30 patchset. --- .../uClibc/0.9.30.1/110-arm_fix_alignment.patch | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 patches/uClibc/0.9.30.1/110-arm_fix_alignment.patch (limited to 'patches/uClibc/0.9.30.1/110-arm_fix_alignment.patch') diff --git a/patches/uClibc/0.9.30.1/110-arm_fix_alignment.patch b/patches/uClibc/0.9.30.1/110-arm_fix_alignment.patch new file mode 100644 index 00000000..0d72e7fb --- /dev/null +++ b/patches/uClibc/0.9.30.1/110-arm_fix_alignment.patch @@ -0,0 +1,23 @@ +Original patch from Gentoo. + +-= BEGIN original header =- +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 + +-= END original header =- + +diff -durN uClibc-0.9.30.orig/ldso/ldso/arm/dl-sysdep.h uClibc-0.9.30/ldso/ldso/arm/dl-sysdep.h +--- uClibc-0.9.30.orig/ldso/ldso/arm/dl-sysdep.h 2008-09-25 10:35:20.000000000 +0200 ++++ uClibc-0.9.30/ldso/ldso/arm/dl-sysdep.h 2009-02-07 09:57:59.000000000 +0100 +@@ -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; -- cgit v1.2.3