summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2009-05-25 06:41:42 +0200
committerGuillem Jover <guillem@hadrons.org>2009-05-25 06:41:42 +0200
commite4aff3d9fc9e22287cfeab040e4b968d53a9255e (patch)
treeffd7201496647381a3e175ad7119ad66eab25607
parentc3feeb0092ace00f95aa981fc907ab654afaa5f7 (diff)
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.
-rw-r--r--src/nlist.c2
1 files changed, 1 insertions, 1 deletions
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 */