Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common Use ELFOSABI_LINUX instead of a magi...
details: https://anonhg.NetBSD.org/src/rev/eeda22853d3d
branches: trunk
changeset: 351206:eeda22853d3d
user: uwe <uwe%NetBSD.org@localhost>
date: Mon Feb 06 23:45:49 2017 +0000
description:
Use ELFOSABI_LINUX instead of a magic number.
diffstat:
sys/compat/linux/common/linux_exec_elf32.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8f2735254870 -r eeda22853d3d sys/compat/linux/common/linux_exec_elf32.c
--- a/sys/compat/linux/common/linux_exec_elf32.c Mon Feb 06 23:12:25 2017 +0000
+++ b/sys/compat/linux/common/linux_exec_elf32.c Mon Feb 06 23:45:49 2017 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index