bug-binutils
[Top][All Lists]
Advanced

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

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


From: schwab at suse dot de
Subject: [Bug binutils/4479] objcopy --only-keep-debug broken
Date: 9 May 2007 16:55:12 -0000

------- 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 <stdio.h>

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 @@
                  0x0000000000000000 0x0000000000000018  R      1
       [Requesting program interpreter: ]
   LOAD           0x0000000000000000 0x4000000000000000 0x4000000000000000
-                 0x0000000000000238 0x0000000000000b40  R E    10000
+                 0x0000000000000238 0x000000000000380c  R E    10000
   LOAD           0x0000000000000b40 0x6000000000000b40 0x6000000000000b40
-                 0x0000000000000000 0x00000000000002d0  RW     10000
+                 0x0000000000000000 0x000000000000169c  RW     10000
   DYNAMIC        0x0000000000000b40 0x6000000000000b68 0x6000000000000b68
                  0x0000000000000000 0x00000000000001f0  RW     8
   NOTE           0x0000000000000238 0x4000000000000250 0x4000000000000250


-- 


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.




reply via email to

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