• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

コミットメタ情報

リビジョン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>

変更サマリ

差分

--- a/include/elf.h
+++ b/include/elf.h
@@ -271,9 +271,10 @@ typedef struct
271271 #define EM_AARCH64 183 /* ARM AARCH64 */
272272 #define EM_MICROBLAZE 189 /* Xilinx Microblaze */
273273 #define EM_ARCV2 195 /* ARCv2 Cores */
274+#define EM_CSKY 252 /* C-SKY Cores */
274275
275276 /* NEXT FREE NUMBER: Increment this after adding your official arch number */
276-#define EM_NUM 196
277+#define EM_NUM 253
277278
278279 /* If it is necessary to assign new unofficial EM_* values, please pick large
279280 random numbers (0x8523, 0xa7f2, etc.) to minimize the chances of collision
--- a/ldso/ldso/csky/dl-sysdep.h
+++ b/ldso/ldso/csky/dl-sysdep.h
@@ -18,7 +18,7 @@ do { \
1818
1919 /* Here we define the magic numbers that this dynamic loader should accept */
2020 #define MAGIC1 EM_MCORE
21-#undef MAGIC2
21+#define MAGIC2 EM_CSKY
2222
2323 /* Used for error messages */
2424 #define ELF_TARGET "csky"