2000-05-29 Philip Blundell <philb@gnu.org>
authorPhil Blundell <philb@gnu.org>
Mon, 29 May 2000 18:20:07 +0000 (18:20 +0000)
committerPhil Blundell <philb@gnu.org>
Mon, 29 May 2000 18:20:07 +0000 (18:20 +0000)
* ppcboot.c: Add packed attribute if compiling with GCC.

bfd/ChangeLog
bfd/ppcboot.c

index 420d1f92ad39303f38a1e60527220a070cf67d67..0884d78e521244919e66b38e472cb85683796c29 100644 (file)
@@ -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.
index d9db8268d478502b392be6fff6d4813b704b9ea3..9441848b3d37381b92a3326c14b8797b72785cfa 100644 (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
This page took 0.029303 seconds and 4 git commands to generate.