This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]