Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2006-12-06 17:36:41 +0300
committerNick Clifton <nickc@redhat.com>2006-12-06 17:36:41 +0300
commit017b276a7623b6bdd1d3d0310c83d208114fb0d1 (patch)
tree3c284857000bd5a564edc8243f27534ea5a0949c /include/coff
parentbf8ea306ec8956f8ffc245e5f8efef58a44eebca (diff)
Define ATTRIBUTE_PACKED and use as necessary.
Diffstat (limited to 'include/coff')
-rw-r--r--include/coff/ChangeLog7
-rw-r--r--include/coff/external.h6
2 files changed, 10 insertions, 3 deletions
diff --git a/include/coff/ChangeLog b/include/coff/ChangeLog
index 60a85873f..b8af0fe5b 100644
--- a/include/coff/ChangeLog
+++ b/include/coff/ChangeLog
@@ -1,3 +1,10 @@
+2006-12-05 Michael Tautschnig <tautschn@model.in.tum.de>
+ Nick Clifton <nickc@redhat.com>
+
+ * external.h (struct external_aouthdr): Add ATTRIBUTE_PACKED.
+ (struct external_syment): Likewise.
+ (union external_auxent): Likewise.
+
2006-11-14 Phil Lello <phil.lello@homecall.co.uk>
* pe.h: Added defines for IMAGE_SUBSYSTEM_EFI_ROM and
diff --git a/include/coff/external.h b/include/coff/external.h
index e38fb1bab..8dabc8ab4 100644
--- a/include/coff/external.h
+++ b/include/coff/external.h
@@ -50,7 +50,7 @@ typedef struct external_aouthdr
char entry[4]; /* entry pt. */
char text_start[4]; /* base of text used for this file */
char data_start[4]; /* base of data used for this file */
- }
+ } ATTRIBUTE_PACKED
AOUTHDR;
#define AOUTHDRSZ 28
@@ -164,7 +164,7 @@ struct external_syment
char e_type[2];
char e_sclass[1];
char e_numaux[1];
-};
+} ATTRIBUTE_PACKED ;
#define SYMENT struct external_syment
#define SYMESZ 18
@@ -256,7 +256,7 @@ union external_auxent
char x_tvlen[2]; /* length of .tv */
char x_tvran[2][2]; /* tv range */
} x_tv; /* info about .tv section (in auxent of symbol .tv)) */
-};
+} ATTRIBUTE_PACKED ;
#define AUXENT union external_auxent
#define AUXESZ 18