aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/uclibc/files/uclibc-bfin-ldd.patch
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2009-07-19 19:54:30 +0400
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2009-07-19 19:54:30 +0400
commit0df68f0e98c048b2ca501f4f9b7e920588a615c5 (patch)
tree6d6c20dc7052f621a537f6830c0ef96b817c091c /recipes/uclibc/files/uclibc-bfin-ldd.patch
parent63c45c7c049f978b0c155e7f00504d3d513b4070 (diff)
downloadopenembedded-shared/blackfin.tar.gz
openembedded-shared/blackfin.tar.bz2
openembedded-shared/blackfin.zip
uclibc: fix building for bfin architectureshared/blackfin
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'recipes/uclibc/files/uclibc-bfin-ldd.patch')
-rw-r--r--recipes/uclibc/files/uclibc-bfin-ldd.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes/uclibc/files/uclibc-bfin-ldd.patch b/recipes/uclibc/files/uclibc-bfin-ldd.patch
new file mode 100644
index 0000000000..dc86554321
--- /dev/null
+++ b/recipes/uclibc/files/uclibc-bfin-ldd.patch
@@ -0,0 +1,18 @@
+Index: a/utils/ldd.c
+===================================================================
+--- a/utils/ldd.c (revision 3342)
++++ a/utils/ldd.c (working copy)
+@@ -120,6 +120,11 @@
+ #define ELFCLASSM ELFCLASS64
+ #endif
+
++#if defined(__bfin__)
++#define MATCH_MACHINE(x) (x == EM_BLACKFIN)
++#define ELFCLASSM ELFCLASS32
++#endif
++
+ #ifndef MATCH_MACHINE
+ # ifdef __linux__
+ # include <asm/elf.h>
+
+