From 32562ab2c9f2c48d0b0c3cf9a401091ae3c842b7 Mon Sep 17 00:00:00 2001 From: etheisen Date: Sun, 27 Oct 1996 20:34:38 +0000 Subject: Added OLF capability. --- lib/libc/gen/nlist.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libc/gen/nlist.c b/lib/libc/gen/nlist.c index 1c1ac0014c5..f6bee8dfb7b 100644 --- a/lib/libc/gen/nlist.c +++ b/lib/libc/gen/nlist.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: nlist.c,v 1.15 1996/09/15 09:31:04 tholo Exp $"; +static char rcsid[] = "$OpenBSD: nlist.c,v 1.16 1996/10/27 20:34:37 etheisen Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -49,6 +49,7 @@ static char rcsid[] = "$OpenBSD: nlist.c,v 1.15 1996/09/15 09:31:04 tholo Exp $" #ifdef DO_ELF #include +#include #endif #ifdef DO_ECOFF @@ -266,7 +267,7 @@ __elf_is_okay__(ehdr) * Elf32_Ehdr structure. These few elements are * represented in a machine independant fashion. */ - if (IS_ELF(*ehdr) && + if ((IS_ELF(*ehdr) || IS_OLF(*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) { -- cgit v1.2.3