summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/bfd/ppcboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/binutils/bfd/ppcboot.c')
-rw-r--r--contrib/binutils/bfd/ppcboot.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/binutils/bfd/ppcboot.c b/contrib/binutils/bfd/ppcboot.c
index d9db826..9441848 100644
--- a/contrib/binutils/bfd/ppcboot.c
+++ b/contrib/binutils/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
OpenPOWER on IntegriCloud