* elf32-rx.c (rx_elf_object_p): Correct typo: lma->vma.

This commit is contained in:
DJ Delorie 2011-11-22 19:46:20 +00:00
parent e0ce100545
commit c52bd2321a
2 changed files with 5 additions and 1 deletions

View file

@ -3073,7 +3073,7 @@ rx_elf_object_p (bfd * abfd)
bsec = abfd->sections;
while (bsec)
{
if (phdr[i].p_vaddr <= bsec->lma
if (phdr[i].p_vaddr <= bsec->vma
&& bsec->vma <= phdr[i].p_vaddr + (phdr[i].p_filesz - 1))
{
bsec->lma = phdr[i].p_paddr + (bsec->vma - phdr[i].p_vaddr);