[patch] elf32-rx.c: fix typo lma->vma

DJ Delorie dj@redhat.com
Tue Nov 22 19:46:00 GMT 2011


Found by one of our users :-)

Committed.

	* elf32-rx.c (rx_elf_object_p): Correct typo: lma->vma.
 
Index: elf32-rx.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-rx.c,v
retrieving revision 1.13
diff -p -U5 -r1.13 elf32-rx.c
--- elf32-rx.c	5 Oct 2011 14:13:27 -0000	1.13
+++ elf32-rx.c	22 Nov 2011 19:40:57 -0000
@@ -3071,11 +3071,11 @@ rx_elf_object_p (bfd * abfd)
       /* We must update the bfd sections as well, so we don't stop
 	 with one match.  */
       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);
 	    }
 	  bsec = bsec->next;



More information about the Binutils mailing list