diff options
author | Chenghua Xu <xuchenghua@loongson.cn> | 2021-05-23 10:16:36 +0800 |
---|---|---|
committer | Chenghua Xu <xuchenghua@loongson.cn> | 2021-05-23 10:35:48 +0800 |
commit | 01a8c731aacbdbed0eb5682d13cc074dc7e25fb3 (patch) | |
tree | 4bfe0ba5bee3a0c6e37ba8aabb776824100cec2f /binutils | |
parent | 8dc196f2fa8e2ea5a0fd6aab58475aa88dd3c45e (diff) | |
download | fsf-binutils-gdb-01a8c731aacbdbed0eb5682d13cc074dc7e25fb3.zip fsf-binutils-gdb-01a8c731aacbdbed0eb5682d13cc074dc7e25fb3.tar.gz fsf-binutils-gdb-01a8c731aacbdbed0eb5682d13cc074dc7e25fb3.tar.bz2 |
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.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 9f943c7..83541ca 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 5da49a2..2989adf 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... */ |