From: Guillem Jover Date: Mon, 25 May 2009 04:41:42 +0000 (+0200) Subject: Use N_SYMSIZE instead of directly accessing ‘struct exec’ X-Git-Tag: 0.1.2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4aff3d9fc9e22287cfeab040e4b968d53a9255e;p=thirdparty%2Flibbsd.git Use N_SYMSIZE instead of directly accessing ‘struct exec’ On Linux alpha ‘struct exec’ does not have an a_syms member, and the N_SYMSIZE is mapped to 0. --- 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 */