summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-09-05 08:03:02 +0000
committerbde <bde@FreeBSD.org>2002-09-05 08:03:02 +0000
commit02bd928e51dacd3d0c0a3c9b9c47c5ce81f0e696 (patch)
tree7292441d4b01eea2a400dbfb3b241426f3602d46
parent83a5128312321e15fcb17f31ccc721b8cc43647d (diff)
downloadFreeBSD-src-02bd928e51dacd3d0c0a3c9b9c47c5ce81f0e696.zip
FreeBSD-src-02bd928e51dacd3d0c0a3c9b9c47c5ce81f0e696.tar.gz
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).
-rw-r--r--sys/sys/nlist_aout.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/nlist_aout.h b/sys/sys/nlist_aout.h
index 3b8d44f..4290bb8 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 */
OpenPOWER on IntegriCloud