リビジョン | ac48ce2b5c4f62ffc7d4986c1c7df17beaa18d64 (tree) |
---|---|
日時 | 2018-12-31 19:12:44 |
作者 | Guo Ren <ren_guo@c-sk...> |
コミッター | Waldemar Brodkorb |
csky: Add EM_CSKY for ldso
Support EM_CSKY 252 elf format.
Changelog:
Increase EM_NUM to 253
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Signed-off-by: Mao Han <han_mao@c-sky.com>
@@ -271,9 +271,10 @@ typedef struct | ||
271 | 271 | #define EM_AARCH64 183 /* ARM AARCH64 */ |
272 | 272 | #define EM_MICROBLAZE 189 /* Xilinx Microblaze */ |
273 | 273 | #define EM_ARCV2 195 /* ARCv2 Cores */ |
274 | +#define EM_CSKY 252 /* C-SKY Cores */ | |
274 | 275 | |
275 | 276 | /* NEXT FREE NUMBER: Increment this after adding your official arch number */ |
276 | -#define EM_NUM 196 | |
277 | +#define EM_NUM 253 | |
277 | 278 | |
278 | 279 | /* If it is necessary to assign new unofficial EM_* values, please pick large |
279 | 280 | random numbers (0x8523, 0xa7f2, etc.) to minimize the chances of collision |
@@ -18,7 +18,7 @@ do { \ | ||
18 | 18 | |
19 | 19 | /* Here we define the magic numbers that this dynamic loader should accept */ |
20 | 20 | #define MAGIC1 EM_MCORE |
21 | -#undef MAGIC2 | |
21 | +#define MAGIC2 EM_CSKY | |
22 | 22 | |
23 | 23 | /* Used for error messages */ |
24 | 24 | #define ELF_TARGET "csky" |