From 8c763017d2dd2c638aa46231a3a76996c1cd8be8 Mon Sep 17 00:00:00 2001 From: Phil Blundell Date: Mon, 29 May 2000 18:20:07 +0000 Subject: 2000-05-29 Philip Blundell * ppcboot.c: Add packed attribute if compiling with GCC. --- bfd/ppcboot.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bfd/ppcboot.c') diff --git a/bfd/ppcboot.c b/bfd/ppcboot.c index d9db826..9441848 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 -- cgit v1.1