mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-10 03:33:12 +01:00
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.
This commit is contained in:
parent
c3feeb0092
commit
e4aff3d9fc
@ -155,7 +155,7 @@ __aout_fdnlist(fd, list)
|
|||||||
}
|
}
|
||||||
|
|
||||||
symoff = N_SYMOFF(*exec);
|
symoff = N_SYMOFF(*exec);
|
||||||
symsize = exec->a_syms;
|
symsize = N_SYMSIZE(*exec);
|
||||||
stroff = symoff + symsize;
|
stroff = symoff + symsize;
|
||||||
|
|
||||||
/* find the string table in our mmapped area */
|
/* find the string table in our mmapped area */
|
||||||
|
Loading…
Reference in New Issue
Block a user