diff options
author | Phil Blundell <pb@futuretv.com> | 2000-05-29 18:04:57 +0000 |
---|---|---|
committer | Phil Blundell <pb@futuretv.com> | 2000-05-29 18:04:57 +0000 |
commit | 9b2738a744055df530eb7883bdddcc48e0e74340 (patch) | |
tree | e3367994b23b681d5ccd0b823bcb7373c41bfa1a | |
parent | e2aa5e62e348ee593799e0bd6250506db6a73dc8 (diff) | |
download | gdb-9b2738a744055df530eb7883bdddcc48e0e74340.tar.gz |
2000-05-29 Philip Blundell <philb@gnu.org>
* ppcboot.c: Add packed attribute if compiling with GCC.
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/ppcboot.c | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9cf66b4e449..75794ed4f31 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2000-05-29 Philip Blundell <philb@gnu.org> + + * ppcboot.c: Add packed attribute if compiling with GCC. + 2000-05-29 Anatoly Vorobey <mellon@pobox.com> * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal. 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 |