提交 17139053 编写于 作者: V Vineet Gupta

ARC: Fixup the current ABI version

The upstream kernel ABI (v3) is different from current out-of-tree (v2):
* no-legacy-syscalls
* user_regs_struct layout has changed

So we rev up the ABI version
Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
上级 5dc99e50
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
/* Machine specific ELF Hdr flags */ /* Machine specific ELF Hdr flags */
#define EF_ARC_OSABI_MSK 0x00000f00 #define EF_ARC_OSABI_MSK 0x00000f00
#define EF_ARC_OSABI_ORIG 0x00000000 /* MUST be zero for back-compat */ #define EF_ARC_OSABI_ORIG 0x00000000 /* MUST be zero for back-compat */
#define EF_ARC_OSABI_V2 0x00000200 #define EF_ARC_OSABI_CURRENT 0x00000300 /* v3 (no legacy syscalls) */
/* ARC Relocations (kernel Modules only) */ /* ARC Relocations (kernel Modules only) */
#define R_ARC_32 0x4 #define R_ARC_32 0x4
......
...@@ -224,7 +224,7 @@ int elf_check_arch(const struct elf32_hdr *x) ...@@ -224,7 +224,7 @@ int elf_check_arch(const struct elf32_hdr *x)
return 0; return 0;
eflags = x->e_flags; eflags = x->e_flags;
if ((eflags & EF_ARC_OSABI_MSK) < EF_ARC_OSABI_V2) { if ((eflags & EF_ARC_OSABI_MSK) < EF_ARC_OSABI_CURRENT) {
pr_err("ABI mismatch - you need newer toolchain\n"); pr_err("ABI mismatch - you need newer toolchain\n");
force_sigsegv(SIGSEGV, current); force_sigsegv(SIGSEGV, current);
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册