/* BFD back-end for MS-DOS executables.
- Copyright (C) 1990-2017 Free Software Foundation, Inc.
+ Copyright (C) 1990-2018 Free Software Foundation, Inc.
Written by Bryan Ford of the University of Utah.
Contributed by the Center for Software Science at the
for (sec = abfd->sections; sec != (asection *) NULL; sec = sec->next)
{
if (sec->size == 0)
- continue;
+ continue;
if (bfd_get_section_flags (abfd, sec) & SEC_ALLOC)
- {
+ {
bfd_vma sec_vma = bfd_get_section_vma (abfd, sec) + sec->size;
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)
+ sec->size);
if (bfd_get_section_flags (abfd, section) & SEC_LOAD)
{
if (bfd_seek (abfd, section->filepos + offset, SEEK_SET) != 0
- || bfd_bwrite (location, count, abfd) != count)
- return FALSE;
+ || bfd_bwrite (location, count, abfd) != count)
+ return FALSE;
}
return TRUE;