2000-05-29 Philip Blundell <philb@gnu.org>

* ppcboot.c: Add packed attribute if compiling with GCC.
This commit is contained in:
Phil Blundell
2000-05-29 18:20:07 +00:00
parent a057431b43
commit 8c763017d2
2 changed files with 9 additions and 1 deletions

View File

@@ -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