From 0db1d788b49509f9927d9b7e8ee99c69289c7e1b Mon Sep 17 00:00:00 2001 From: pb Date: Mon, 29 May 2000 18:20:07 +0000 Subject: [PATCH] 2000-05-29 Philip Blundell * ppcboot.c: Add packed attribute if compiling with GCC. --- bfd/ChangeLog | 4 ++++ bfd/ppcboot.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 420d1f92ad..0884d78e52 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2000-05-29 Philip Blundell + + * ppcboot.c: Add packed attribute if compiling with GCC. + 2000-05-29 Anatoly Vorobey * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal. 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 -- 2.11.0