From 4997efa59a607a2b4aa2519a50f9e51017b667d2 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Fri, 17 May 2019 01:44:56 +0000 Subject: [PATCH] Add ARC support to nlist() Closes: !6 Signed-off-by: Rosen Penev Signed-off-by: Guillem Jover --- src/local-elf.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/local-elf.h b/src/local-elf.h index ffc53a0..9e075cf 100644 --- a/src/local-elf.h +++ b/src/local-elf.h @@ -55,6 +55,12 @@ #endif #define ELF_TARG_DATA ELFDATA2LSB +#elif defined (__arc__) + +#define ELF_TARG_MACH EM_ARC +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2LSB + #elif defined(__arm__) #define ELF_TARG_MACH EM_ARM