aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1992-06-17 20:06:33 +0000
committerKen Raeburn <raeburn@cygnus>1992-06-17 20:06:33 +0000
commit5e16788678168d2f1624814d159955e7bc5a2a28 (patch)
treedbe121c4cb93c331a358636b6de94c64ce1f2b0d /bfd/coffcode.h
parent323227fefa29d2d3f52b0cbc2bf0b6e63e064162 (diff)
downloadgdb-5e16788678168d2f1624814d159955e7bc5a2a28.zip
gdb-5e16788678168d2f1624814d159955e7bc5a2a28.tar.gz
gdb-5e16788678168d2f1624814d159955e7bc5a2a28.tar.bz2
Don't align sections in I960 coff files.
(I know there's a GDB freeze on, but this only affects writing i960 coff files, and Steve needs it ASAP.)
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index cceb596..dc86777 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -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;
}