]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
elf: Use official name LoongArch for EM_LOONGARCH.
authorChenghua Xu <xuchenghua@loongson.cn>
Sun, 23 May 2021 02:16:36 +0000 (10:16 +0800)
committerChenghua Xu <xuchenghua@loongson.cn>
Sun, 23 May 2021 02:35:48 +0000 (10:35 +0800)
The official name for Loongson Architecture is LoongArch, it is better
to use LoongArch instead of Loongson Loongarch for EM_LOONGARCH to avoid
confusion and keep consistent with the various of software in the future.

The official documentation in Chinese:
http://www.loongson.cn/uploadfile/cpu/LoongArch.pdf

The translated version in English:
https://loongson.github.io/LoongArch-Documentation/

    binutils/
        * readelf.c (get_machine_name): Change Loongson Loongarch to
LoongArch.

    include/
        * elf/common.h (EM_LOONGARCH): Change Loongson Loongarch to
LoongArch.

binutils/ChangeLog
binutils/readelf.c
include/ChangeLog
include/elf/common.h

index 9f943c7f3da88fdc412053e5340fa6e888d6989b..83541ca50a5322a099798b13b60f69b94f46a3d1 100644 (file)
@@ -1,3 +1,8 @@
+2021-05-23  Tiezhu Yang  <yangtiezhu@loongson.cn>
+
+       * readelf.c (get_machine_name): Change Loongson Loongarch to
+       LoongArch.
+
 2021-05-21  Luis Machado  <luis.machado@linaro.org>
 
        * readelf.c (get_note_type): Add missing NT_ARM_* entries.
index 5da49a223af83961d7f8cb5db33f46f130af64a2..2989adf31b6e1edd03e8d764b5551d207feaccf4 100644 (file)
@@ -2605,7 +2605,7 @@ get_machine_name (unsigned e_machine)
     case EM_ARC_COMPACT3:      return "Synopsys ARCv2.3 32-bit";
     case EM_KVX:               return "Kalray VLIW core of the MPPA processor family";
     case EM_65816:             return "WDC 65816/65C816";
-    case EM_LOONGARCH:         return "Loongson Loongarch";
+    case EM_LOONGARCH:         return "LoongArch";
     case EM_KF32:              return "ChipON KungFu32";
 
       /* Large numbers...  */
index fdb2a7bc594d49929f7ebd8e32f2e2286c4aae58..abe63e5cf198b416e986a9e46eb46c5a17d3f16d 100644 (file)
@@ -1,3 +1,8 @@
+2021-05-23  Tiezhu Yang  <yangtiezhu@loongson.cn>
+
+       * elf/common.h (EM_LOONGARCH): Change Loongson Loongarch to
+       LoongArch.
+
 2021-05-21  Luis Machado  <luis.machado@linaro.org>
 
        * elf/common.h (NT_MEMTAG): New constant.
index 234aef084b2f2e84caa86de896029fd0e97d9b56..24d0a09b7c8f74558aaabbce295e19792f264b6d 100644 (file)
 #define EM_ARC_COMPACT3        255     /* Synopsys ARCv2.3 32-bit */
 #define EM_KVX         256     /* Kalray VLIW core of the MPPA processor family */
 #define EM_65816       257     /* WDC 65816/65C816 */
-#define EM_LOONGARCH   258     /* Loongson Loongarch */
+#define EM_LOONGARCH   258     /* LoongArch */
 #define EM_KF32                259     /* ChipON KungFu32 */
 
 /* If it is necessary to assign new unofficial EM_* values, please pick large