From: H.J. Lu Date: Wed, 13 Oct 2004 18:14:40 +0000 (+0000) Subject: 2004-10-13 H.J. Lu X-Git-Tag: gdb_6_3-20041019-branchpoint~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7bf6dedeec4df6208c11c0bc2467dfda26a254ff;p=platform%2Fupstream%2Fbinutils.git 2004-10-13 H.J. Lu PR 440 * coffcode.h (coff_compute_section_file_positions): Cast to bfd_vma when computing page alignment. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 957496551fc..cc331a97ff8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2004-10-13 H.J. Lu + + PR 440 + * coffcode.h (coff_compute_section_file_positions): Cast to + bfd_vma when computing page alignment. + 2004-10-13 Mark Mitchell * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 9d78c25257e..7bfdc6b1754 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;