diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-06-04 21:12:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-06-04 21:12:51 +0000 |
commit | 27c67008ddea42303263824c8d145cb52ac76acb (patch) | |
tree | 0587195c442101efe5ca5d09279d74fdef466e8a /lib/libc/gen | |
parent | 8e4b93b0d63335923d0a9a19013170d078bcbd43 (diff) |
olf support starts to die (easy stuff first); ok miod
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/nlist.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/gen/nlist.c b/lib/libc/gen/nlist.c index 669856a42f2..5dd365be8c8 100644 --- a/lib/libc/gen/nlist.c +++ b/lib/libc/gen/nlist.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nlist.c,v 1.52 2005/11/28 17:50:32 deraadt Exp $ */ +/* $OpenBSD: nlist.c,v 1.53 2008/06/04 21:12:50 deraadt Exp $ */ /* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. @@ -43,7 +43,6 @@ #ifdef _NLIST_DO_ELF #include <elf_abi.h> -#include <olf_abi.h> #endif #ifdef _NLIST_DO_ECOFF @@ -282,7 +281,7 @@ __elf_is_okay__(Elf_Ehdr *ehdr) * Elf_Ehdr structure. These few elements are * represented in a machine independent fashion. */ - if ((IS_ELF(*ehdr) || IS_OLF(*ehdr)) && + if (IS_ELF(*ehdr) && ehdr->e_ident[EI_CLASS] == ELF_TARG_CLASS && ehdr->e_ident[EI_DATA] == ELF_TARG_DATA && ehdr->e_ident[EI_VERSION] == ELF_TARG_VER) { |