From 5cf10f502a7b7957cc88906fb751d28cec9fc26f Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Thu, 5 Sep 2002 08:03:02 +0000 Subject: [PATCH] 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). --- sys/sys/nlist_aout.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/sys/nlist_aout.h b/sys/sys/nlist_aout.h index 3b8d44f2be0..4290bb892b7 100644 --- a/sys/sys/nlist_aout.h +++ b/sys/sys/nlist_aout.h @@ -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 */