diff mbox series

[uclibc-ng-devel,1/4] arc: minor cleanup for ARCv2

Message ID 20220920121421.31618-2-kozlov@synopsys.com
State Accepted
Headers show
Series add support for ARCv3 32-bit processors | expand

Commit Message

Pavel Kozlov Sept. 20, 2022, 12:14 p.m. UTC
From: Sergey Matyukevich <sergey.matyukevich@synopsys.com>

Add missing ARCv2 check in MATCH_MACHINE macro.
Update comment for EM_ARCV2 define.

Signed-off-by: Sergey Matyukevich <sergey.matyukevich@synopsys.com>
Signed-off-by: Pavel Kozlov <pavel.kozlov@synopsys.com>
---
 include/elf.h | 2 +-
 utils/ldd.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/include/elf.h b/include/elf.h
index 7d66d70a43ac..018ff1550dae 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -270,7 +270,7 @@  typedef struct
 #define EM_METAG	174		/* Imagination Technologies Meta */
 #define EM_AARCH64	183		/* ARM AARCH64 */
 #define EM_MICROBLAZE	189		/* Xilinx Microblaze */
-#define EM_ARCV2	195		/* ARCv2 Cores */
+#define EM_ARCV2	195		/* Synopsys ARCv2 Cores */
 #define EM_RISCV        243     	/* RISC-V */
 #define EM_CSKY		252		/* C-SKY Cores */
 #define EM_KVX		256		/* Kalray VLIW core of the MPPA processor family */
diff --git a/utils/ldd.c b/utils/ldd.c
index dfc4ee9a5431..3accd78391d7 100644
--- a/utils/ldd.c
+++ b/utils/ldd.c
@@ -30,7 +30,7 @@ 
 #endif
 
 #if defined(__arc__)
-#define MATCH_MACHINE(x) (x == EM_ARCOMPACT)
+#define MATCH_MACHINE(x) (x == EM_ARCOMPACT || x == EM_ARCV2)
 #define ELFCLASSM      ELFCLASS32
 #endif