mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Pad after "char *n_name;" in the !_AOUT_INCLUDE_ case so that struct nlist
has some chance of having the same layout in all cases on machines with sizeof(char *) != sizeof(long).
This commit is contained in:
parent
680f22fbfe
commit
5cf10f502a
1 changed files with 2 additions and 0 deletions
|
|
@ -60,6 +60,8 @@ struct nlist {
|
|||
} n_un;
|
||||
#else
|
||||
char *n_name; /* symbol name (in memory) */
|
||||
int : 8 * (sizeof(long) > sizeof(char *) ?
|
||||
sizeof(long) - sizeof(char *) : sizeof(char *) - sizeof(long));
|
||||
#endif
|
||||
unsigned char n_type; /* type defines */
|
||||
char n_other; /* ".type" and binding information */
|
||||
|
|
|
|||
Loading…
Reference in a new issue