Add uClibc-0.9.30.1 patchset, based on the 0.9.30 patchset.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/uClibc/0.9.30.1/100-fix-gethostent_r-failure-retval.patch Sun Mar 08 17:11:31 2009 +0000
1.3 @@ -0,0 +1,17 @@
1.4 +Original patch from Gentoo.
1.5 +
1.6 +-= BEGIN original header =-
1.7 +-= END original header =-
1.8 +
1.9 +diff -durN uClibc-0.9.30.orig/libc/inet/resolv.c uClibc-0.9.30/libc/inet/resolv.c
1.10 +--- uClibc-0.9.30.orig/libc/inet/resolv.c 2008-11-02 01:25:33.000000000 +0100
1.11 ++++ uClibc-0.9.30/libc/inet/resolv.c 2009-02-07 09:57:59.000000000 +0100
1.12 +@@ -1788,7 +1788,7 @@
1.13 + int gethostent_r(struct hostent *result_buf, char *buf, size_t buflen,
1.14 + struct hostent **result, int *h_errnop)
1.15 + {
1.16 +- int ret;
1.17 ++ int ret = HOST_NOT_FOUND;
1.18 +
1.19 + __UCLIBC_MUTEX_LOCK(mylock);
1.20 + if (__gethostent_fp == NULL) {
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/patches/uClibc/0.9.30.1/110-arm_fix_alignment.patch Sun Mar 08 17:11:31 2009 +0000
2.3 @@ -0,0 +1,23 @@
2.4 +Original patch from Gentoo.
2.5 +
2.6 +-= BEGIN original header =-
2.7 +ARMV5 can use STRD and LDRD access instructions but these accesses need to be
2.8 +8 byte aligned. The dynamic linker's malloc needs to match this so structures
2.9 +become 8 byte aligned to void unaligned accesses.
2.10 +
2.11 +RP - 14/02/2008
2.12 +
2.13 +-= END original header =-
2.14 +
2.15 +diff -durN uClibc-0.9.30.orig/ldso/ldso/arm/dl-sysdep.h uClibc-0.9.30/ldso/ldso/arm/dl-sysdep.h
2.16 +--- uClibc-0.9.30.orig/ldso/ldso/arm/dl-sysdep.h 2008-09-25 10:35:20.000000000 +0200
2.17 ++++ uClibc-0.9.30/ldso/ldso/arm/dl-sysdep.h 2009-02-07 09:57:59.000000000 +0100
2.18 +@@ -15,6 +15,8 @@
2.19 + GOT_BASE[1] = (unsigned long) MODULE; \
2.20 + }
2.21 +
2.22 ++#define DL_MALLOC_ALIGN 8 /* EABI needs 8 byte alignment for STRD LDRD*/
2.23 ++
2.24 + static __inline__ unsigned long arm_modulus(unsigned long m, unsigned long p)
2.25 + {
2.26 + unsigned long i,t,inc;
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/patches/uClibc/0.9.30.1/120-rm-whitespace.patch Sun Mar 08 17:11:31 2009 +0000
3.3 @@ -0,0 +1,88 @@
3.4 +Original patch from Gentoo.
3.5 +
3.6 +-= BEGIN original header =-
3.7 +-= END original header =-
3.8 +
3.9 +diff -durN uClibc-0.9.30.orig/include/assert.h uClibc-0.9.30/include/assert.h
3.10 +--- uClibc-0.9.30.orig/include/assert.h 2008-07-23 13:23:36.000000000 +0200
3.11 ++++ uClibc-0.9.30/include/assert.h 2009-02-07 09:57:59.000000000 +0100
3.12 +@@ -31,7 +31,7 @@
3.13 + #define _ASSERT_H 1
3.14 + #include <features.h>
3.15 +
3.16 +-#if defined __cplusplus && __GNUC_PREREQ (2,95)
3.17 ++#if defined __cplusplus && __GNUC_PREREQ(2,95)
3.18 + # define __ASSERT_VOID_CAST static_cast<void>
3.19 + #else
3.20 + # define __ASSERT_VOID_CAST (void)
3.21 +@@ -60,12 +60,15 @@
3.22 + (__assert (__STRING(expr), __FILE__, __LINE__, \
3.23 + __ASSERT_FUNCTION), 0)))
3.24 +
3.25 ++/* Define some temporaries to workaround tinyx makedepend bug */
3.26 ++#define __GNUC_PREREQ_2_6 __GNUC_PREREQ(2, 6)
3.27 ++#define __GNUC_PREREQ_2_4 __GNUC_PREREQ(2, 4)
3.28 + /* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__'
3.29 + which contains the name of the function currently being defined.
3.30 + This is broken in G++ before version 2.6.
3.31 + C9x has a similar variable called __func__, but prefer the GCC one since
3.32 + it demangles C++ function names. */
3.33 +-# if defined __cplusplus ? __GNUC_PREREQ (2, 6) : __GNUC_PREREQ (2, 4)
3.34 ++# if defined __cplusplus ? __GNUC_PREREQ_2_6 : __GNUC_PREREQ_2_4
3.35 + # define __ASSERT_FUNCTION __PRETTY_FUNCTION__
3.36 + # else
3.37 + # if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
3.38 +diff -durN uClibc-0.9.30.orig/include/complex.h uClibc-0.9.30/include/complex.h
3.39 +--- uClibc-0.9.30.orig/include/complex.h 2008-10-03 16:24:28.000000000 +0200
3.40 ++++ uClibc-0.9.30/include/complex.h 2009-02-07 09:57:59.000000000 +0100
3.41 +@@ -33,7 +33,7 @@
3.42 + /* We might need to add support for more compilers here. But since ISO
3.43 + C99 is out hopefully all maintained compilers will soon provide the data
3.44 + types `float complex' and `double complex'. */
3.45 +-#if __GNUC_PREREQ (2, 7) && !__GNUC_PREREQ (2, 97)
3.46 ++#if __GNUC_PREREQ(2, 7) && !__GNUC_PREREQ(2, 97)
3.47 + # define _Complex __complex__
3.48 + #endif
3.49 +
3.50 +diff -durN uClibc-0.9.30.orig/include/features.h uClibc-0.9.30/include/features.h
3.51 +--- uClibc-0.9.30.orig/include/features.h 2008-09-06 18:45:07.000000000 +0200
3.52 ++++ uClibc-0.9.30/include/features.h 2009-02-07 09:57:59.000000000 +0100
3.53 +@@ -143,7 +143,7 @@
3.54 +
3.55 + /* Convenience macros to test the versions of glibc and gcc.
3.56 + Use them like this:
3.57 +- #if __GNUC_PREREQ (2,8)
3.58 ++ #if __GNUC_PREREQ(2,8)
3.59 + ... code requiring gcc 2.8 or later ...
3.60 + #endif
3.61 + Note - they won't work for gcc1 or glibc1, since the _MINOR macros
3.62 +@@ -297,7 +297,7 @@
3.63 + /* uClibc does not support _FORTIFY_SOURCE */
3.64 + #undef _FORTIFY_SOURCE
3.65 + #if defined _FORTIFY_SOURCE && _FORTIFY_SOURCE > 0 \
3.66 +- && __GNUC_PREREQ (4, 1) && defined __OPTIMIZE__ && __OPTIMIZE__ > 0
3.67 ++ && __GNUC_PREREQ(4, 1) && defined __OPTIMIZE__ && __OPTIMIZE__ > 0
3.68 + # if _FORTIFY_SOURCE > 1
3.69 + # define __USE_FORTIFY_LEVEL 2
3.70 + # else
3.71 +@@ -366,7 +366,7 @@
3.72 + #endif /* !ASSEMBLER */
3.73 +
3.74 + /* Decide whether we can define 'extern inline' functions in headers. */
3.75 +-#if __GNUC_PREREQ (2, 7) && defined __OPTIMIZE__ \
3.76 ++#if __GNUC_PREREQ(2, 7) && defined __OPTIMIZE__ \
3.77 + && !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__ \
3.78 + && (defined __extern_inline || defined __GNUC_GNU_INLINE__)
3.79 + # define __USE_EXTERN_INLINES 1
3.80 +diff -durN uClibc-0.9.30.orig/include/tgmath.h uClibc-0.9.30/include/tgmath.h
3.81 +--- uClibc-0.9.30.orig/include/tgmath.h 2008-10-03 16:24:28.000000000 +0200
3.82 ++++ uClibc-0.9.30/include/tgmath.h 2009-02-07 09:57:59.000000000 +0100
3.83 +@@ -34,7 +34,7 @@
3.84 + do not try this for now and instead concentrate only on GNU CC. Once
3.85 + we have more information support for other compilers might follow. */
3.86 +
3.87 +-#if __GNUC_PREREQ (2, 7)
3.88 ++#if __GNUC_PREREQ(2, 7)
3.89 +
3.90 + # ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__
3.91 + # define __tgml(fct) fct
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/patches/uClibc/0.9.30.1/130-arm-ftruncate64.patch Sun Mar 08 17:11:31 2009 +0000
4.3 @@ -0,0 +1,17 @@
4.4 +Original patch from Gentoo.
4.5 +
4.6 +-= BEGIN original header =-
4.7 +-= END original header =-
4.8 +
4.9 +diff -durN uClibc-0.9.30.orig/libc/sysdeps/linux/arm/bits/uClibc_arch_features.h uClibc-0.9.30/libc/sysdeps/linux/arm/bits/uClibc_arch_features.h
4.10 +--- uClibc-0.9.30.orig/libc/sysdeps/linux/arm/bits/uClibc_arch_features.h 2008-09-25 10:50:56.000000000 +0200
4.11 ++++ uClibc-0.9.30/libc/sysdeps/linux/arm/bits/uClibc_arch_features.h 2009-02-07 09:57:59.000000000 +0100
4.12 +@@ -39,4 +39,8 @@
4.13 + /* define if target supports IEEE signed zero floats */
4.14 + #define __UCLIBC_HAVE_SIGNED_ZERO__
4.15 +
4.16 ++#ifdef __ARM_EABI__
4.17 ++# define __UCLIBC_TRUNCATE64_HAS_4_ARGS__
4.18 ++#endif
4.19 ++
4.20 + #endif /* _BITS_UCLIBC_ARCH_FEATURES_H */
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/patches/uClibc/0.9.30.1/140-gnu89-inline.patch Sun Mar 08 17:11:31 2009 +0000
5.3 @@ -0,0 +1,16 @@
5.4 +Original patch from Gentoo.
5.5 +
5.6 +-= BEGIN original header =-
5.7 +-= END original header =-
5.8 +
5.9 +diff -durN uClibc-0.9.30.orig/Rules.mak uClibc-0.9.30/Rules.mak
5.10 +--- uClibc-0.9.30.orig/Rules.mak 2008-11-12 13:24:16.000000000 +0100
5.11 ++++ uClibc-0.9.30/Rules.mak 2009-02-07 09:57:59.000000000 +0100
5.12 +@@ -502,6 +502,7 @@
5.13 + endif
5.14 +
5.15 + CFLAGS += $(call check_gcc,-std=gnu99,)
5.16 ++CFLAGS += $(call check_gcc,-fgnu89-inline,)
5.17 +
5.18 + LDFLAGS_NOSTRIP:=$(CPU_LDFLAGS-y) -Wl,-shared \
5.19 + -Wl,--warn-common -Wl,--warn-once -Wl,-z,combreloc