]> Git Repo - uclibc-ng.git/commitdiff
arc: minor cleanup for ARCv2
authorSergey Matyukevich <[email protected]>
Tue, 20 Sep 2022 12:14:18 +0000 (16:14 +0400)
committerWaldemar Brodkorb <[email protected]>
Tue, 27 Sep 2022 10:01:22 +0000 (12:01 +0200)
Add missing ARCv2 check in MATCH_MACHINE macro.
Update comment for EM_ARCV2 define.

Signed-off-by: Sergey Matyukevich <[email protected]>
Signed-off-by: Pavel Kozlov <[email protected]>
include/elf.h
utils/ldd.c

index 7d66d70a43ac8350b7bff478c36a7987cd5cf44d..018ff1550dae49177b0fa0778a57ef31f0a39f81 100644 (file)
@@ -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 */
index dfc4ee9a543133c56b73a44ebc8822a8985f566a..3accd78391d7cc8395463b853e6aeb4ac7701c00 100644 (file)
@@ -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
 
This page took 0.032278 seconds and 4 git commands to generate.