diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-07-30 09:22:44 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-07-30 09:22:44 +0000 |
commit | ae03f29b100f7ee301259d28bce36ae344342ae9 (patch) | |
tree | 88f439cff8db0c3794e16f2f307d37a2bcd15d2f /lib | |
parent | 775b54b1e16bb3084606e4fe18dc17fc2ef3bd44 (diff) |
Update ECOFF nlist from NetBSD
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/nlist.c | 13 |
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. |