@@ -271,6 +271,7 @@ typedef struct
#define EM_AARCH64 183 /* ARM AARCH64 */
#define EM_MICROBLAZE 189 /* Xilinx Microblaze */
#define EM_ARCV2 195 /* ARCv2 Cores */
+#define EM_CSKY 252 /* C-SKY Cores */
/* NEXT FREE NUMBER: Increment this after adding your official arch number */
#define EM_NUM 196
@@ -18,7 +18,7 @@ do { \
/* Here we define the magic numbers that this dynamic loader should accept */
#define MAGIC1 EM_MCORE
-#undef MAGIC2
+#define MAGIC2 EM_CSKY
/* Used for error messages */
#define ELF_TARGET "csky"