Module Name: src
Committed By: uwe
Date: Mon Feb 6 23:45:49 UTC 2017
Modified Files:
src/sys/compat/linux/common: linux_exec_elf32.c
Log Message:
Use ELFOSABI_LINUX instead of a magic number.
To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 src/sys/compat/linux/common/linux_exec_elf32.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/linux/common/linux_exec_elf32.c
diff -u src/sys/compat/linux/common/linux_exec_elf32.c:1.93 src/sys/compat/linux/common/linux_exec_elf32.c:1.94
--- src/sys/compat/linux/common/linux_exec_elf32.c:1.93 Thu Jun 11 02:54:00 2015
+++ src/sys/compat/linux/common/linux_exec_elf32.c Mon Feb 6 23:45:49 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_exec_elf32.c,v 1.93 2015/06/11 02:54:00 matt Exp $ */
+/* $NetBSD: linux_exec_elf32.c,v 1.94 2017/02/06 23:45:49 uwe Exp $ */
/*-
* Copyright (c) 1995, 1998, 2000, 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_exec_elf32.c,v 1.93 2015/06/11 02:54:00 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_exec_elf32.c,v 1.94 2017/02/06 23:45:49 uwe Exp $");
#ifndef ELFSIZE
/* XXX should die */
@@ -273,7 +273,7 @@ ELFNAME2(linux,signature)(struct lwp *l,
int error;
static const char linux[] = "Linux";
- if (eh->e_ident[EI_OSABI] == 3 ||
+ if (eh->e_ident[EI_OSABI] == ELFOSABI_LINUX ||
memcmp(&eh->e_ident[EI_ABIVERSION], linux, sizeof(linux)) == 0)
return 0;