bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/4712] BFD: section .data1/.bss can't be allocated in segme


From: amodra at bigpond dot net dot au
Subject: [Bug binutils/4712] BFD: section .data1/.bss can't be allocated in segment 0
Date: 1 Jul 2007 05:37:58 -0000

------- Additional Comments From amodra at bigpond dot net dot au  2007-07-01 
05:37 -------
I think http://sourceware.org/ml/binutils/2006-12/msg00165.html should also be
adjusting lma.

Index: bfd/elf.c
===================================================================
RCS file: /cvs/src/src/bfd/elf.c,v
retrieving revision 1.394
diff -u -p -r1.394 elf.c
--- bfd/elf.c   29 Jun 2007 16:29:15 -0000      1.394
+++ bfd/elf.c   1 Jul 2007 05:08:52 -0000
@@ -4373,7 +4373,7 @@ assign_file_positions_for_load_sections 
       else if (m->count == 0)
        p->p_paddr = 0;
       else
-       p->p_paddr = m->sections[0]->lma;
+       p->p_paddr = m->sections[0]->lma - m->p_vaddr_offset;
 
       if (p->p_type == PT_LOAD
          && (abfd->flags & D_PAGED) != 0)

At least, doing so allows strip to process these funky files.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4712

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]