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:
Bruce Evans 2002-09-05 08:03:02 +00:00
parent 680f22fbfe
commit 5cf10f502a

View file

@ -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 */