aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2011-11-22 19:46:20 +0000
committerDJ Delorie <dj@redhat.com>2011-11-22 19:46:20 +0000
commitc52bd2321a66a663eb59216abbb2be9ed27f841c (patch)
treee4f57f815aff21aca9066d21f832892a70a87a1b
parente0ce1005459f02ba72edd1fb886ad6bd07cc4ab8 (diff)
downloadgdb-c52bd2321a66a663eb59216abbb2be9ed27f841c.zip
gdb-c52bd2321a66a663eb59216abbb2be9ed27f841c.tar.gz
gdb-c52bd2321a66a663eb59216abbb2be9ed27f841c.tar.bz2
* elf32-rx.c (rx_elf_object_p): Correct typo: lma->vma.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf32-rx.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 940afe5..df29378 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elf32-rx.c b/bfd/elf32-rx.c
index 99cffc0..c21c7b1 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);