Don't align sections in I960 coff files.
authorKen Raeburn <raeburn@cygnus>
Wed, 17 Jun 1992 20:06:33 +0000 (20:06 +0000)
committerKen Raeburn <raeburn@cygnus>
Wed, 17 Jun 1992 20:06:33 +0000 (20:06 +0000)
(I know there's a GDB freeze on, but this only affects writing i960
coff files, and Steve needs it ASAP.)

bfd/ChangeLog
bfd/coffcode.h

index 2d9fa251829e830a6df166d726a85ef1614583b3..78d0c9800dacbed9caad1620dbc89232c61a4d26 100644 (file)
@@ -1,3 +1,8 @@
+Wed Jun 17 15:54:57 1992  Ken Raeburn  (Raeburn@Cygnus.COM)
+
+       * coffcode.h (coff_compute_section_file_positions): For I960,
+       don't align sections in file.
+
 Tue Jun 16 06:28:21 1992  Ken Raeburn  (Raeburn@Cygnus.COM)
 
        * targets.c (struct bfd_target): Added field for target-specific
index cceb59641cc622e6813a91a7299841cec763e568..dc867770df3aec18caee1864efe9e9c1d87aa8c4 100644 (file)
@@ -2204,10 +2204,13 @@ DEFUN(coff_compute_section_file_positions,(abfd),
 
       current->filepos = sofar;
 
+      sofar += current->_raw_size;
+#ifndef I960
       /* make sure that this section is of the right size too */
-      old_sofar =  sofar += current->_raw_size;
+      old_sofar =  sofar;
       sofar = BFD_ALIGN(sofar, 1 << current->alignment_power);
       current->_raw_size += sofar - old_sofar ;
+#endif
 
       previous = current;
     }