2004-10-13 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 13 Oct 2004 18:14:40 +0000 (18:14 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 13 Oct 2004 18:14:40 +0000 (18:14 +0000)
PR 440
* coffcode.h (coff_compute_section_file_positions): Cast to
bfd_vma when computing page alignment.

bfd/ChangeLog
bfd/coffcode.h

index 957496551fc5c718d73087257b8cfdd3d6fdb95d..cc331a97ff81b53167ede8c0dd5948a6b34bacc1 100644 (file)
@@ -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
index 9d78c25257efce5bcdb3f02b315c9ed460ac1f6a..7bfdc6b1754e4c64330098b23ea28f86a1a17788 100644 (file)
@@ -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;
 
This page took 0.031393 seconds and 4 git commands to generate.