summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoretheisen <etheisen@openbsd.org>1996-10-27 20:34:37 +0000
committeretheisen <etheisen@openbsd.org>1996-10-27 20:34:37 +0000
commitdd9334face5c4f5dc2f848e08f9f92d98dfd1e1b (patch)
tree22d130a89ca0312dfe8933d41f26223289000b88
parentOLF. (diff)
downloadwireguard-openbsd-dd9334face5c4f5dc2f848e08f9f92d98dfd1e1b.tar.xz
wireguard-openbsd-dd9334face5c4f5dc2f848e08f9f92d98dfd1e1b.zip
Added OLF capability.
-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) {