[Bug binutils/4479] objcopy --only-keep-debug broken

2007-05-15 Thread schwab at suse dot de

--- Additional Comments From schwab at suse dot de  2007-05-15 12:16 ---
Works fine now.

-- 
   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED


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

--- 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/4479] objcopy --only-keep-debug broken

2007-05-15 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2007-05-15 
11:58 ---
This ought to cure the ia64 fallout. 
http://sourceware.org/ml/binutils-cvs/2007-05/msg00079.html

-- 


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

--- 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/4479] objcopy --only-keep-debug broken

2007-05-14 Thread hjl at lucon dot org


-- 
   What|Removed |Added

 CC||hjl at lucon dot org


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

--- 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/4479] objcopy --only-keep-debug broken

2007-05-14 Thread schwab at suse dot de


-- 
   What|Removed |Added

OtherBugsDependingO|4144|
  nThis||


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

--- 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/4479] objcopy --only-keep-debug broken

2007-05-14 Thread schwab at suse dot de

--- Additional Comments From schwab at suse dot de  2007-05-14 13:43 ---
The removed program headers now breaks ia64:

BFD: a.debug: warning: allocated section `.IA_64.unwind' not in segment

The .IA_64.unwind section has SHT_IA64_UNWIND instead of SHT_NOBITS in the 
output.

-- 
   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |


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

--- 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/4479] objcopy --only-keep-debug broken

2007-05-11 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2007-05-11 
15:11 ---
Further fix to completely remove headers
http://sourceware.org/ml/binutils-cvs/2007-05/msg00060.html

-- 


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

--- 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/4479] objcopy --only-keep-debug broken

2007-05-11 Thread schwab at suse dot de

--- Additional Comments From schwab at suse dot de  2007-05-11 10:57 ---
Fixed by .

-- 
   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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

--- 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/4479] objcopy --only-keep-debug broken

2007-05-10 Thread bernhard dot walle at gmx dot de


-- 
   What|Removed |Added

 CC||bernhard dot walle at gmx
   ||dot de


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

--- 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/4479] objcopy --only-keep-debug broken

2007-05-09 Thread amodra at bigpond dot net dot au


-- 
   What|Removed |Added

 Status|NEW |ASSIGNED
   Last reconfirmed|-00-00 00:00:00 |2007-05-10 07:00:24
   date||


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

--- 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/4479] objcopy --only-keep-debug broken

2007-05-09 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2007-05-10 
07:00 ---
http://sourceware.org/ml/binutils/2007-05/msg00132.html

-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |amodra at bigpond dot net
   |redhat dot com  |dot au


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

--- 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/4479] objcopy --only-keep-debug broken

2007-05-09 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2007-05-10 
06:52 ---
Probably not deliberate.  It came with 2004-05-17 David Heine.  I can't see that
there is any need for program headers in the debug info file anyway.

-- 


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

--- 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/4479] objcopy --only-keep-debug broken

2007-05-09 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2007-05-10 
03:16 ---
I'd say that the p_memsz values were "wrong" before my patch.  It's also
interesting to look at what older objcopy does.  eg.
2.15 objcopy --only-keep-debug does this
Program Headers:
  Type   Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD   0x00 0x1000 0x1000 0x00134 0x008fc R E 0x1
  LOAD   0x0008fc 0x100108fc 0x100108fc 0x0 0x00194 RWE 0x1
vs. 2.16
Program Headers:
  Type   Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  PHDR   0x34 0x1034 0x1034 0x00100 0x00100 R E 0x4
  INTERP 0x000134 0x1134 0x1134 0x0 0xd R   0x1
  [Requesting program interpreter: ]
  LOAD   0x00 0x1000 0x1000 0x00134 0x008fc R E 0x1
  LOAD   0x0008fc 0x100108fc 0x100108fc 0x0 0x00194 RWE 0x1
  DYNAMIC0x0008fc 0x10010920 0x10010920 0x0 0x000c8 RW  0x4
  NOTE   0x000134 0x1144 0x1144 0x0 0x00020 R   0x4
  NOTE   0x000134 0x1164 0x1164 0x0 0x00018 R   0x4
  GNU_STACK  0x00 0x 0x 0x0 0x0 RW  0x4
vs. mainline
Program Headers:
  Type   Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  PHDR   0x34 0x1034 0x1034 0x00100 0x00100 R E 0x4
  INTERP 0x000134 0x1134 0x1134 0x0 0xd R   0x1
  [Requesting program interpreter: ]
  LOAD   0x00 0x1000 0x1000 0x00134 0x02c4b R E 0x1
  LOAD   0x0008fc 0x100108fc 0x100108fc 0x0 0x00658 RWE 0x1
  DYNAMIC0x0008fc 0x10010920 0x10010920 0x0 0x000c8 RW  0x4
  NOTE   0x000134 0x1144 0x1144 0x0 0x00020 R   0x4
  NOTE   0x000134 0x1164 0x1164 0x0 0x00018 R   0x4
  GNU_STACK  0x00 0x 0x 0x0 0x0 RW  0x4

I haven't looked to see yet whether the 2.15 -> 2.16 change was deliberate or 
not.

-- 


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

--- 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/4479] objcopy --only-keep-debug broken

2007-05-09 Thread schwab at suse dot de

--- Additional Comments From schwab at suse dot de  2007-05-09 17:55 ---
To reproduce the bug (where objcopy.old has the patch for PR4144 reverted):

$ cat hello.c
#include 

int
main (void)
{
  printf ("Hello, world!\n");
}
$ gcc -g hello.c -o hello
$ objcopy.old --only-keep-debug hello hello.debug.1
$ objcopy --only-keep-debug hello hello.debug.2
$ diff -u <(readelf -l hello.debug.{1,2})
--- /dev/fd/63  2007-05-09 18:54:19.226345354 +0200
+++ /dev/fd/62  2007-05-09 18:54:19.218345356 +0200
@@ -12,9 +12,9 @@
  0x 0x0018  R  1
   [Requesting program interpreter: ]
   LOAD   0x 0x4000 0x4000
- 0x0238 0x0b40  R E1
+ 0x0238 0x380c  R E1
   LOAD   0x0b40 0x6b40 0x6b40
- 0x 0x02d0  RW 1
+ 0x 0x169c  RW 1
   DYNAMIC0x0b40 0x6b68 0x6b68
  0x 0x01f0  RW 8
   NOTE   0x0238 0x4250 0x4250


-- 


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

--- 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