aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/uclibc/uclibc-svn/thumb-defined-arm-or-thumb.patch
blob: 6b73301bf76a46b9cadd405ea4aaaf46a60601e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# in various places defined(__arm__) is used to protect/select code which
# is ARM specific, that code must also be selected for __thumb__ because
# __thumb__ is an ARM but __arm__ is not set...
#
--- uClibc/ldso/include/dl-string.h.orig	2006-01-19 19:03:42.000000000 -0800
+++ uClibc/ldso/include/dl-string.h	2006-01-19 19:28:15.141758294 -0800
@@ -276,7 +276,7 @@ static __always_inline char * _dl_simple
 
 /* On some arches constant strings are referenced through the GOT.
  * This requires that load_addr must already be defined... */
-#if defined(mc68000) || defined(__arm__) || defined(__mips__) \
+#if defined(mc68000) || defined(__arm__) || defined(__thumb__) || defined(__mips__) \
                      || defined(__sh__)  || defined(__powerpc__)
 # define CONSTANT_STRING_GOT_FIXUP(X) \
 	if ((X) < (const char *) load_addr) (X) += load_addr