From e4aff3d9fc9e22287cfeab040e4b968d53a9255e Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 25 May 2009 06:41:42 +0200 Subject: [PATCH] =?utf8?q?Use=20N=5FSYMSIZE=20instead=20of=20directly=20ac?= =?utf8?q?cessing=20=E2=80=98struct=20exec=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit On Linux alpha ‘struct exec’ does not have an a_syms member, and the N_SYMSIZE is mapped to 0. --- src/nlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nlist.c b/src/nlist.c index 1db6a06..e1815c6 100644 --- a/src/nlist.c +++ b/src/nlist.c @@ -155,7 +155,7 @@ __aout_fdnlist(fd, list) } symoff = N_SYMOFF(*exec); - symsize = exec->a_syms; + symsize = N_SYMSIZE(*exec); stroff = symoff + symsize; /* find the string table in our mmapped area */ -- 2.47.3