summaryrefslogtreecommitdiff
path: root/bfd/ppcboot.c
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2000-05-29 18:20:07 +0000
committerPhil Blundell <philb@gnu.org>2000-05-29 18:20:07 +0000
commit39fb81b2cd19768137dcbcec51ec650a9ab325fa (patch)
treef2a7802798d788d29efe8228afd8717788023b77 /bfd/ppcboot.c
parent1b49ebacb3a59242f4245b19d209b0856a1c01c9 (diff)
downloadbinutils-redhat-39fb81b2cd19768137dcbcec51ec650a9ab325fa.tar.gz
2000-05-29 Philip Blundell <philb@gnu.org>
* ppcboot.c: Add packed attribute if compiling with GCC.
Diffstat (limited to 'bfd/ppcboot.c')
-rw-r--r--bfd/ppcboot.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ppcboot.c b/bfd/ppcboot.c
index d9db8268d4..9441848b3d 100644
--- a/bfd/ppcboot.c
+++ b/bfd/ppcboot.c
@@ -64,7 +64,11 @@ typedef struct ppcboot_hdr {
bfd_byte os_id; /* OS_ID */
char partition_name[32]; /* partition name */
bfd_byte reserved1[470]; /* reserved */
-} ppcboot_hdr_t;
+}
+#ifdef __GNUC__
+ __attribute__ ((packed))
+#endif
+ppcboot_hdr_t;
/* Signature bytes for last 2 bytes of the 512 byte record */
#define SIGNATURE0 0x55