aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
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;
}