[binutils-gdb] elf: Use official name LoongArch for EM_LOONGARCH.
Chenghua Xu
paulhua@sourceware.org
Sun May 23 02:37:22 GMT 2021
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=01a8c731aacbdbed0eb5682d13cc074dc7e25fb3
commit 01a8c731aacbdbed0eb5682d13cc074dc7e25fb3
Author: Chenghua Xu <xuchenghua@loongson.cn>
Date: Sun May 23 10:16:36 2021 +0800
elf: Use official name LoongArch for EM_LOONGARCH.
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.
Diff:
---
binutils/ChangeLog | 5 +++++
binutils/readelf.c | 2 +-
include/ChangeLog | 5 +++++
include/elf/common.h | 2 +-
4 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 9f943c7f3da..83541ca50a5 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 5da49a223af..2989adf31b6 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -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... */
diff --git a/include/ChangeLog b/include/ChangeLog
index fdb2a7bc594..abe63e5cf19 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -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.
diff --git a/include/elf/common.h b/include/elf/common.h
index 234aef084b2..24d0a09b7c8 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -352,7 +352,7 @@
#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
More information about the Binutils-cvs
mailing list