$NetBSD: patch-ab,v 1.1.1.1 2001/07/15 20:10:52 gmcgarry Exp $ --- coff21k.h.orig Sun Jul 15 17:27:08 2001 +++ coff21k.h Sun Jul 15 17:25:30 2001 @@ -70,7 +70,7 @@ long f_nsyms; /* number of symtab entries */ unsigned short f_opthdr; /* sizeof(optional hdr) */ unsigned short f_flags; /* flags */ -}; +} __attribute__ ((packed)); #define COFF_HDR struct filehdr #define COFF_HDR_SIZE sizeof(COFF_HDR) @@ -139,7 +139,7 @@ unsigned short s_nreloc; /* number of relocation entries */ unsigned short s_nlnno; /* number of line number entries */ long s_flags; /* flags */ -} SCNHDR; +} __attribute__ ((packed)) SCNHDR; #define SCNHSZ sizeof(SCNHDR) @@ -182,7 +182,7 @@ { long _n_zeroes; /* new == 0 */ long _n_offset; /* offset into string table */ - } _n_n; + } __attribute__ ((packed)) _n_n; char *_n_nptr[2]; /* allows for overlaying */ } _n; long n_value; /* value of symbol */ @@ -190,7 +190,7 @@ unsigned short n_type; /* type and derived type */ char n_sclass; /* storage class */ char n_numaux; /* number of aux. entries */ -} SYMTBL; +} __attribute__ ((packed)) SYMTBL; #define n_name _n._n_name #define n_nptr _n._n_nptr[1] @@ -205,7 +205,7 @@ long l_paddr; /* paddr of line number */ } l_addr; unsigned short l_lnno; /* line number */ -}; +} __attribute__ ((packed)); #define LINEBUF struct linebuf #define LINESZ 6