summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-01-03 14:30:07 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2015-01-03 14:30:07 +0100
commit3ad968506a1d49f1d98048f11717305daa30c865 (patch)
treece08560593fb3a4c41e673ee31542601eb4d61ba
parent4aca87515a5083ae0e31ce3177189fd43b6d05ac (diff)
downloadtomato-3ad968506a1d49f1d98048f11717305daa30c865.tar.gz
tomato-3ad968506a1d49f1d98048f11717305daa30c865.tar.bz2
compilation on 64-bit machine needs a fix for the MACHINE_TYPE for ldd.c in uclib
-rw-r--r--tools-src/uClibc/ldso/util/ldd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools-src/uClibc/ldso/util/ldd.c b/tools-src/uClibc/ldso/util/ldd.c
index 664f55a4..a70e1369 100644
--- a/tools-src/uClibc/ldso/util/ldd.c
+++ b/tools-src/uClibc/ldso/util/ldd.c
@@ -68,6 +68,11 @@
#define ELFCLASSM ELFCLASS32
#endif
+#if defined(__x86_64__)
+#define MATCH_MACHINE(x) (x == EM_X86_64)
+#define ELFCLASSM ELFCLASS64
+#endif
+
#if defined(__mc68000__)
#define MATCH_MACHINE(x) (x == EM_68K)
#define ELFCLASSM ELFCLASS32