summaryrefslogtreecommitdiff
path: root/lib/libc/gen/nlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/nlist.c')
-rw-r--r--lib/libc/gen/nlist.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/libc/gen/nlist.c b/lib/libc/gen/nlist.c
index 8f7556634e8..fe2a57df2c0 100644
--- a/lib/libc/gen/nlist.c
+++ b/lib/libc/gen/nlist.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nlist.c,v 1.12 1996/06/17 06:40:53 etheisen Exp $ */
+/* $OpenBSD: nlist.c,v 1.13 1996/07/30 09:22:43 niklas Exp $ */
/* $NetBSD: nlist.c,v 1.7 1996/05/16 20:49:20 cgd Exp $ */
/*
@@ -35,8 +35,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: nlist.c,v 1.11 1996/06/14 05:01:36 deraadt Exp
-$";
+static char rcsid[] = "$OpenBSD: nlist.c,v 1.13 1996/07/30 09:22:43 niklas Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -198,11 +197,11 @@ __ecoff_fdnlist(fd, list)
BADUNMAP;
symhdrp = (struct ecoff_symhdr *)&mappedfile[symhdroff];
- nesyms = symhdrp->sh_esymmax;
- if (check(symhdrp->sh_esymoff, nesyms * sizeof *esyms))
+ nesyms = symhdrp->esymMax;
+ if (check(symhdrp->cbExtOffset, nesyms * sizeof *esyms))
BADUNMAP;
- esyms = (struct ecoff_extsym *)&mappedfile[symhdrp->sh_esymoff];
- extstroff = symhdrp->sh_estroff;
+ esyms = (struct ecoff_extsym *)&mappedfile[symhdrp->cbExtOffset];
+ extstroff = symhdrp->cbSsExtOffset;
/*
* clean out any left-over information for all valid entries.