summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-05-28 12:33:51 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-05-28 12:33:51 +0000
commit173abff0cab4f8b659a26b6f14e3b87e63539433 (patch)
treed79a7decc5d89d30ec991b892d163823a1aa9c92 /ldso
parent8e2424ffece289ff88870141674c9fc58b43f763 (diff)
Fix the ELF magic number for SPARCV9: by Friedrich Oslage <bluebird@porno-bullen.de>
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/sparc/dl-sysdep.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/ldso/ldso/sparc/dl-sysdep.h b/ldso/ldso/sparc/dl-sysdep.h
index c3462264f..82665083c 100644
--- a/ldso/ldso/sparc/dl-sysdep.h
+++ b/ldso/ldso/sparc/dl-sysdep.h
@@ -26,8 +26,15 @@
GOT_BASE[3] = (int) MODULE; \
}
-/* Here we define the magic numbers that this dynamic loader should accept */
+/* Here we define the magic numbers that this dynamic loader should accept
+ * Note that SPARCV9 doesn't use EM_SPARCV9 since the userland is still 32-bit.
+ */
+#if defined(__sparc_v9__) || defined(__sparc_v8__)
+#define MAGIC1 EM_SPARC32PLUS
+#else
#define MAGIC1 EM_SPARC
+#endif
+
#undef MAGIC2
/* Used for error messages */