diff options
author | Steve Chamberlain <steve@cygnus> | 1991-10-21 23:58:49 +0000 |
---|---|---|
committer | Steve Chamberlain <steve@cygnus> | 1991-10-21 23:58:49 +0000 |
commit | 33a782f1d2146690dae0a225f7ca84024560172d (patch) | |
tree | 8d45797e3ff04921281f73fe6f539749d0ee0542 /bfd/coffcode.h | |
parent | 065114de7b72f459b2507ec7b18e3f6a5d623619 (diff) | |
download | gdb-33a782f1d2146690dae0a225f7ca84024560172d.zip gdb-33a782f1d2146690dae0a225f7ca84024560172d.tar.gz gdb-33a782f1d2146690dae0a225f7ca84024560172d.tar.bz2 |
* coffcode.h (coff_compute_section_file_positions): make it pad
section size out if there are alignment restrictions so that the
image will be ok on a system where section positions are worked
out by accumulating sizes rather than from the section headers.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r-- | bfd/coffcode.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h index b359f51..bfa0036 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -2011,7 +2011,13 @@ DEFUN(coff_compute_section_file_positions,(abfd), do this (FIXME) so we can stay in sync with Intel. 960 doesn't yet page from files... */ #ifndef I960 + { + /* Whatever the alignment, make sure that the sections are big + enough to cover the gap */ + bfd_vma old_sofar= sofar; sofar = ALIGN(sofar, 1 << current->alignment_power); + current->size += sofar - old_sofar; + } #endif /* FIXME, in demand paged files, the low order bits of the file offset must match the low order bits of the virtual address. |