summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2004-10-13 18:14:40 +0000
committerH.J. Lu <hjl@lucon.org>2004-10-13 18:14:40 +0000
commit8a5fd986eea45ace9cf4842dc947ff0d2cfbc20c (patch)
treefc3fb8a409763fb19cf67445ead00c34c91b8344
parente00051e8434896b64b1943f7229f3feb424c0fd0 (diff)
downloadbinutils-redhat-8a5fd986eea45ace9cf4842dc947ff0d2cfbc20c.tar.gz
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.
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/coffcode.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 957496551f..cc331a97ff 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2004-10-13 Mark Mitchell <mark@codesourcery.com>
* elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 9d78c25257..7bfdc6b175 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;