svn commit: trunk/uClibc/ldso/ldso/sparc
carmelo at uclibc.org
carmelo at uclibc.org
Wed May 28 05:33:51 PDT 2008
Author: carmelo
Date: 2008-05-28 05:33:51 -0700 (Wed, 28 May 2008)
New Revision: 22104
Log:
Fix the ELF magic number for SPARCV9: by Friedrich Oslage <bluebird at porno-bullen.de>
Modified:
trunk/uClibc/ldso/ldso/sparc/dl-sysdep.h
Changeset:
Modified: trunk/uClibc/ldso/ldso/sparc/dl-sysdep.h
===================================================================
--- trunk/uClibc/ldso/ldso/sparc/dl-sysdep.h 2008-05-28 12:00:59 UTC (rev 22103)
+++ trunk/uClibc/ldso/ldso/sparc/dl-sysdep.h 2008-05-28 12:33:51 UTC (rev 22104)
@@ -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 */
More information about the uClibc-cvs
mailing list