diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2004-10-13 18:14:40 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2004-10-13 18:14:40 +0000 |
commit | 7bf6dedeec4df6208c11c0bc2467dfda26a254ff (patch) | |
tree | b4303179bf0b8ef6bcf64b2c84e46de055a53de6 /bfd/coffcode.h | |
parent | c0042f5da0a9d3aaf254d2d6273a042230e58fea (diff) | |
download | gdb-7bf6dedeec4df6208c11c0bc2467dfda26a254ff.zip gdb-7bf6dedeec4df6208c11c0bc2467dfda26a254ff.tar.gz gdb-7bf6dedeec4df6208c11c0bc2467dfda26a254ff.tar.bz2 |
2004-10-13 H.J. Lu <hongjiu.lu@intel.com>
PR 440
* coffcode.h (coff_compute_section_file_positions): Cast to
bfd_vma when computing page alignment.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r-- | bfd/coffcode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 9d78c25..7bfdc6b 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -3243,7 +3243,7 @@ coff_compute_section_file_positions (abfd) #ifdef COFF_PAGE_SIZE if ((abfd->flags & D_PAGED) != 0 && (current->flags & SEC_ALLOC) != 0) - sofar += (current->vma - sofar) % page_size; + sofar += (current->vma - (bfd_vma) sofar) % page_size; #endif current->filepos = sofar; |