aboutsummaryrefslogtreecommitdiff
path: root/bfd/i386msdos.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/i386msdos.c')
-rw-r--r--bfd/i386msdos.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/bfd/i386msdos.c b/bfd/i386msdos.c
index 2dbd8df..cd41d0b 100644
--- a/bfd/i386msdos.c
+++ b/bfd/i386msdos.c
@@ -83,20 +83,20 @@ msdos_write_object_contents (abfd)
/* Find the total size of the program on disk and in memory. */
for (sec = abfd->sections; sec != (asection *) NULL; sec = sec->next)
{
- if (bfd_get_section_size_before_reloc (sec) == 0)
+ if (bfd_get_section_size (sec) == 0)
continue;
if (bfd_get_section_flags (abfd, sec) & SEC_ALLOC)
{
- bfd_vma sec_vma = bfd_get_section_vma (abfd, sec)
- + bfd_get_section_size_before_reloc (sec);
+ bfd_vma sec_vma = (bfd_get_section_vma (abfd, sec)
+ + bfd_get_section_size (sec));
if (sec_vma > high_vma)
high_vma = sec_vma;
}
if (bfd_get_section_flags (abfd, sec) & SEC_LOAD)
{
- file_ptr sec_end = sizeof(hdr)
- + bfd_get_section_vma (abfd, sec)
- + bfd_get_section_size_before_reloc (sec);
+ file_ptr sec_end = (sizeof (hdr)
+ + bfd_get_section_vma (abfd, sec)
+ + bfd_get_section_size (sec));
if (sec_end > outfile_size)
outfile_size = sec_end;
}