Browse Source

Don't attempt to use __attribute__((packed)) for arrays.

git-svn-id: file:///var/svn/tigccpp/trunk/tigcc/ld-tigcc@172 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 19 years ago
parent
commit
0ff39cb176
1 changed files with 5 additions and 4 deletions
  1. 5 4
      formats/coff.h

+ 5 - 4
formats/coff.h

@@ -1,6 +1,7 @@
 /* coff.h: Definitions for COFF object files
 
    Copyright (C) 2002-2003 Sebastian Reichelt
+   Copyright (C) 2005 Kevin Kofler
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -51,7 +52,7 @@ typedef struct ATTRIBUTE_PACKED {
 	TI4 Flags;
 } COFF_SECTION;
 
-typedef COFF_SECTION ATTRIBUTE_PACKED COFF_SECTIONS[];
+typedef COFF_SECTION COFF_SECTIONS[];
 
 // Section Flags
 #define COFF_SECTION_TEXT 0x20
@@ -83,7 +84,7 @@ typedef struct ATTRIBUTE_PACKED {
 	TI1 AuxSymbolCount;
 } COFF_SYMBOL;
 
-typedef COFF_SYMBOL ATTRIBUTE_PACKED COFF_SYMBOLS[];
+typedef COFF_SYMBOL COFF_SYMBOLS[];
 
 #define COFF_SYMBOL_EXTERNAL 0x02
 
@@ -94,7 +95,7 @@ typedef struct ATTRIBUTE_PACKED {
 	TI2 Type;
 } COFF_RELOC;
 
-typedef COFF_RELOC COFF_RELOCS[] ATTRIBUTE_PACKED;
+typedef COFF_RELOC COFF_RELOCS[];
 
 #define COFF_RELOC_DIR2 0x01
 #define COFF_RELOC_DIR4 0x06
@@ -119,7 +120,7 @@ typedef struct ATTRIBUTE_PACKED {
 	TI2 LineNumber;
 } COFF_LINE_NUM;
 
-typedef COFF_LINE_NUM ATTRIBUTE_PACKED COFF_LINE_NUMS[];
+typedef COFF_LINE_NUM COFF_LINE_NUMS[];
 
 // *** Helping Definitions ***