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

2007-07-02 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2007-07-02 
07:25 ---
http://sourceware.org/ml/binutils-cvs/2007-07/msg5.html

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


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

2007-06-30 Thread amodra at bigpond dot net dot au

--- 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 -  1.394
+++ bfd/elf.c   1 Jul 2007 05:08:52 -
@@ -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.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


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

2007-06-29 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2007-06-30 
01:12 ---
Neither of the attached files have correct program headers.  For libFS.so,

Program Headers:
  Type   Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD   0x00 0x 0x 0x07dbf 0x07dbf R E 0x4
  LOAD   0x0080b4 0x 0x 0x18b5d 0x18b5d RWE 0x2000
  DYNAMIC0x00 0x 0x 0x0 0x0 RWE 0x4
  LOOS+ffb   0x00 0x 0x 0x0 0x0 RW  0x4

Notice how both load segments have p_vaddr of zero.  Strictly speaking, this
means they overlap.  Obviously the sun loader ignores the addresses..

-- 


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.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


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

2007-06-29 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2007-06-29 15:51 ---
native solaris stripper works fine.

$ strip -V
strip: Software Generation Utilities (SGU) Solaris-ELF (4.0)

$ uname -a
SunOS hermes 5.9 Generic_117171-07 sun4u sparc SUNW,Sun-Blade-1500


-- 


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.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


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

2007-06-29 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2007-06-29 15:48 ---
Created an attachment (id=1905)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1905&action=view)
testcase #2


-- 


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.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


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

2007-06-29 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2007-06-29 15:48 ---
Created an attachment (id=1904)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1904&action=view)
testcase #1


-- 


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.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils