From c52bd2321a66a663eb59216abbb2be9ed27f841c Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 22 Nov 2011 19:46:20 +0000 Subject: [PATCH] * elf32-rx.c (rx_elf_object_p): Correct typo: lma->vma. --- bfd/ChangeLog | 4 ++++ bfd/elf32-rx.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 940afe5e240..df293781d15 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2011-11-22 Daniel Calcoen + + * elf32-rx.c (rx_elf_object_p): Correct typo: lma->vma. + 2011-11-22 Tristan Gingold * mach-o.c (bfd_mach_o_print_symbol): Display COM for common diff --git a/bfd/elf32-rx.c b/bfd/elf32-rx.c index 99cffc0e009..c21c7b1a39d 100644 --- a/bfd/elf32-rx.c +++ b/bfd/elf32-rx.c @@ -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);