bfd/
[deliverable/binutils-gdb.git] / bfd / elf.c
index 005f8f629f19a371de31d260f82f8267a97e7b68..37a150191cf69df7b7f379b552cfd8690ea51a9f 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -4371,12 +4371,12 @@ assign_file_positions_for_load_sections (bfd *abfd,
                      && ((this_hdr->sh_flags & SHF_TLS) == 0
                          || p->p_type == PT_TLS))))
            {
-             bfd_signed_vma adjust = sec->lma - (p->p_paddr + p->p_memsz);
+             bfd_signed_vma adjust = sec->vma - (p->p_vaddr + p->p_memsz);
 
              if (adjust < 0)
                {
                  (*_bfd_error_handler)
-                   (_("%B: section %A lma 0x%lx overlaps previous sections"),
+                   (_("%B: section %A vma 0x%lx overlaps previous sections"),
                     abfd, sec, (unsigned long) sec->lma);
                  adjust = 0;
                }
This page took 0.023948 seconds and 4 git commands to generate.