• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisionaa9e34c70f5173269f1e81f9ce08661c0f357617 (tree)
Time2022-09-27 19:01:22
AuthorSergey Matyukevich <sergey.matyukevich@syno...>
CommiterWaldemar Brodkorb

Log Message

arc: minor cleanup for ARCv2

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>

Change Summary

Incremental Difference

--- a/include/elf.h
+++ b/include/elf.h
@@ -270,7 +270,7 @@ typedef struct
270270 #define EM_METAG 174 /* Imagination Technologies Meta */
271271 #define EM_AARCH64 183 /* ARM AARCH64 */
272272 #define EM_MICROBLAZE 189 /* Xilinx Microblaze */
273-#define EM_ARCV2 195 /* ARCv2 Cores */
273+#define EM_ARCV2 195 /* Synopsys ARCv2 Cores */
274274 #define EM_RISCV 243 /* RISC-V */
275275 #define EM_CSKY 252 /* C-SKY Cores */
276276 #define EM_KVX 256 /* Kalray VLIW core of the MPPA processor family */
--- a/utils/ldd.c
+++ b/utils/ldd.c
@@ -30,7 +30,7 @@
3030 #endif
3131
3232 #if defined(__arc__)
33-#define MATCH_MACHINE(x) (x == EM_ARCOMPACT)
33+#define MATCH_MACHINE(x) (x == EM_ARCOMPACT || x == EM_ARCV2)
3434 #define ELFCLASSM ELFCLASS32
3535 #endif
3636