* 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

@ -1,3 +1,7 @@
2011-11-22 Daniel Calcoen <Daniel.Calcoen@cern.ch>
* elf32-rx.c (rx_elf_object_p): Correct typo: lma->vma.
2011-11-22 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_print_symbol): Display COM for common

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