]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Use N_SYMSIZE instead of directly accessing ‘struct exec’
authorGuillem Jover <guillem@hadrons.org>
Mon, 25 May 2009 04:41:42 +0000 (06:41 +0200)
committerGuillem Jover <guillem@hadrons.org>
Mon, 25 May 2009 04:41:42 +0000 (06:41 +0200)
On Linux alpha ‘struct exec’ does not have an a_syms member, and the
N_SYMSIZE is mapped to 0.

src/nlist.c

index 1db6a06c5c6655211af8b70174425e4e3d96f715..e1815c6d0a8a45b4f473802b8c15780b535c8c29 100644 (file)
@@ -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 */