Skip to content

Commit 077b930

Browse files
ldv-altguoren83
authored andcommitted
elf-em.h: add EM_CSKY
The uapi/linux/audit.h header is going to use EM_CSKY in order to define AUDIT_ARCH_CSKY which is needed to implement syscall_get_arch() which in turn is required to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. The value for EM_CSKY has been taken from arch/csky/include/asm/elf.h and confirmed by binutils:include/elf/common.h Cc: Guo Ren <guoren@kernel.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Elvira Khabirova <lineprinter@altlinux.org> Cc: Eugene Syromyatnikov <esyr@redhat.com> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Guo Ren <guoren@kernel.org>
1 parent dc3e089 commit 077b930

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

arch/csky/include/asm/elf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <asm/ptrace.h>
88
#include <abi/regdef.h>
99

10-
#define ELF_ARCH 252
10+
#define ELF_ARCH EM_CSKY
1111

1212
/* CSKY Relocations */
1313
#define R_CSKY_NONE 0

include/uapi/linux/elf-em.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#define EM_TILEGX 191 /* Tilera TILE-Gx */
4444
#define EM_RISCV 243 /* RISC-V */
4545
#define EM_BPF 247 /* Linux BPF - in-kernel virtual machine */
46+
#define EM_CSKY 252 /* C-SKY */
4647
#define EM_FRV 0x5441 /* Fujitsu FR-V */
4748

4849
/*

0 commit comments

Comments
 (0)