summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoretheisen <etheisen@cvs.openbsd.org>1996-10-27 20:34:38 +0000
committeretheisen <etheisen@cvs.openbsd.org>1996-10-27 20:34:38 +0000
commit32562ab2c9f2c48d0b0c3cf9a401091ae3c842b7 (patch)
tree985239a96bb5485c61ddc9fa96b17546585f92ab /lib
parentaeebc9bf74e84b0da8c5757e0192e4168b976563 (diff)
Added OLF capability.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/nlist.c5
1 files changed, 3 insertions, 2 deletions
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 <sys/types.h>
@@ -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 <elf_abi.h>
+#include <olf_abi.h>
#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) {