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.
This commit is contained in:
H.J. Lu 2004-10-13 18:14:40 +00:00
parent c0042f5da0
commit 7bf6dedeec
2 changed files with 7 additions and 1 deletions

View 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

View 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;