]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/uclibc/uclibc-0.9.28/thumb-defined-arm-or-thumb.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / uclibc / uclibc-0.9.28 / thumb-defined-arm-or-thumb.patch
1 # in various places defined(__arm__) is used to protect/select code which
2 # is ARM specific, that code must also be selected for __thumb__ because
3 # __thumb__ is an ARM but __arm__ is not set...
4 #
5 --- ./ldso/include/dl-string.h.orig     2005-09-07 14:09:19.375564254 -0700
6 +++ ./ldso/include/dl-string.h  2005-09-07 14:09:52.045620051 -0700
7 @@ -270,7 +270,7 @@
8  
9  /* On some arches constant strings are referenced through the GOT.
10   * This requires that load_addr must already be defined... */
11 -#if defined(mc68000) || defined(__arm__) || defined(__mips__)  \
12 +#if defined(mc68000) || defined(__arm__) || defined(__thumb__) || defined(__mips__)    \
13                       || defined(__sh__) ||  defined(__powerpc__)
14  # define CONSTANT_STRING_GOT_FIXUP(X) \
15         if ((X) < (const char *) load_addr) (X) += load_addr
16 --- ./libc/sysdeps/linux/common/create_module.c.orig    2005-09-07 14:09:55.597843578 -0700
17 +++ ./libc/sysdeps/linux/common/create_module.c 2005-09-07 14:10:11.650853730 -0700
18 @@ -31,7 +31,7 @@
19  
20  #ifdef __NR_create_module
21  
22 -#if defined(__i386__) || defined(__m68k__) || defined(__arm__) || defined(__cris__) || defined(__i960__)
23 +#if defined(__i386__) || defined(__m68k__) || defined(__arm__) || defined(__thumb__) || defined(__cris__) || defined(__i960__)
24  #define __NR___create_module  __NR_create_module
25  #ifdef __STR_NR_create_module
26  #define __STR_NR___create_module  __STR_NR_create_module
27 --- ./utils/ldd.c.orig  2005-09-07 14:10:32.368157388 -0700
28 +++ ./utils/ldd.c       2005-09-07 14:11:23.735389724 -0700
29 @@ -51,7 +51,7 @@
30  #include <dmalloc.h>
31  #endif
32  
33 -#if defined(__arm__)
34 +#if defined(__arm__) || defined(__thumb__)
35  #define MATCH_MACHINE(x) (x == EM_ARM)
36  #define ELFCLASSM      ELFCLASS32
37  #endif