summaryrefslogtreecommitdiff
path: root/comms/dl-ezkit/patches/patch-ab
blob: 80d5c3d278e522387c0c2440d570790481cc2876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
$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