summaryrefslogtreecommitdiff
path: root/bfd/ppcboot.c
diff options
context:
space:
mode:
authorPhil Blundell <pb@futuretv.com>2000-05-29 18:20:07 +0000
committerPhil Blundell <pb@futuretv.com>2000-05-29 18:20:07 +0000
commit7f7f1980d7b5bf50e1a28fc805e1074bb13199ce (patch)
tree940426722eeef36e0c628b3ed509f8b7f6814b6c /bfd/ppcboot.c
parenta1b5ede0ba02a9e86946a251ecbb22fbfc1573c3 (diff)
downloadgdb-7f7f1980d7b5bf50e1a28fc805e1074bb13199ce.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 d9db8268d47..9441848b3d3 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