diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2018-12-13 20:22:00 +0300 |
---|---|---|
committer | Guo Ren <ren_guo@c-sky.com> | 2018-12-30 21:14:07 +0800 |
commit | 077b930adafead095cd38600539ec129f1379d8c (patch) | |
tree | beca046af17bea85bf3dd07c8a3c5779098c15bc /arch/csky | |
parent | dc3e0896003ee9b3bcc34c53965dc4bbc8671c44 (diff) | |
download | linux-stable-077b930adafead095cd38600539ec129f1379d8c.tar.gz linux-stable-077b930adafead095cd38600539ec129f1379d8c.tar.bz2 linux-stable-077b930adafead095cd38600539ec129f1379d8c.zip |
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>
Diffstat (limited to 'arch/csky')
-rw-r--r-- | arch/csky/include/asm/elf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/csky/include/asm/elf.h b/arch/csky/include/asm/elf.h index 773b133ca297..48b5366568ab 100644 --- a/arch/csky/include/asm/elf.h +++ b/arch/csky/include/asm/elf.h @@ -7,7 +7,7 @@ #include <asm/ptrace.h> #include <abi/regdef.h> -#define ELF_ARCH 252 +#define ELF_ARCH EM_CSKY /* CSKY Relocations */ #define R_CSKY_NONE 0 |