aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2000-05-29 18:20:07 +0000
committerPhil Blundell <philb@gnu.org>2000-05-29 18:20:07 +0000
commit8c763017d2dd2c638aa46231a3a76996c1cd8be8 (patch)
tree7b163fb0bd24bd4e506945d6a15e08caa595afc8
parenta057431b4345a601ec187bdd02412a46ee83e099 (diff)
downloadgdb-8c763017d2dd2c638aa46231a3a76996c1cd8be8.zip
gdb-8c763017d2dd2c638aa46231a3a76996c1cd8be8.tar.gz
gdb-8c763017d2dd2c638aa46231a3a76996c1cd8be8.tar.bz2
2000-05-29 Philip Blundell <philb@gnu.org>
* ppcboot.c: Add packed attribute if compiling with GCC.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/ppcboot.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 420d1f9..0884d78 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 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