[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/4479] objcopy --only-keep-debug broken
From: |
amodra at bigpond dot net dot au |
Subject: |
[Bug binutils/4479] objcopy --only-keep-debug broken |
Date: |
10 May 2007 02:16:09 -0000 |
------- 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 0x000000 0x10000000 0x10000000 0x00134 0x008fc R E 0x10000
LOAD 0x0008fc 0x100108fc 0x100108fc 0x00000 0x00194 RWE 0x10000
vs. 2.16
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000034 0x10000034 0x10000034 0x00100 0x00100 R E 0x4
INTERP 0x000134 0x10000134 0x10000134 0x00000 0x0000d R 0x1
[Requesting program interpreter: ]
LOAD 0x000000 0x10000000 0x10000000 0x00134 0x008fc R E 0x10000
LOAD 0x0008fc 0x100108fc 0x100108fc 0x00000 0x00194 RWE 0x10000
DYNAMIC 0x0008fc 0x10010920 0x10010920 0x00000 0x000c8 RW 0x4
NOTE 0x000134 0x10000144 0x10000144 0x00000 0x00020 R 0x4
NOTE 0x000134 0x10000164 0x10000164 0x00000 0x00018 R 0x4
GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4
vs. mainline
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000034 0x10000034 0x10000034 0x00100 0x00100 R E 0x4
INTERP 0x000134 0x10000134 0x10000134 0x00000 0x0000d R 0x1
[Requesting program interpreter: ]
LOAD 0x000000 0x10000000 0x10000000 0x00134 0x02c4b R E 0x10000
LOAD 0x0008fc 0x100108fc 0x100108fc 0x00000 0x00658 RWE 0x10000
DYNAMIC 0x0008fc 0x10010920 0x10010920 0x00000 0x000c8 RW 0x4
NOTE 0x000134 0x10000144 0x10000144 0x00000 0x00020 R 0x4
NOTE 0x000134 0x10000164 0x10000164 0x00000 0x00018 R 0x4
GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 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/4479] New: objcopy --only-keep-debug broken, schwab at suse dot de, 2007/05/09
- [Bug binutils/4479] objcopy --only-keep-debug broken, schwab at suse dot de, 2007/05/09
- [Bug binutils/4479] objcopy --only-keep-debug broken,
amodra at bigpond dot net dot au <=
- [Bug binutils/4479] objcopy --only-keep-debug broken, amodra at bigpond dot net dot au, 2007/05/10
- [Bug binutils/4479] objcopy --only-keep-debug broken, amodra at bigpond dot net dot au, 2007/05/10
- [Bug binutils/4479] objcopy --only-keep-debug broken, amodra at bigpond dot net dot au, 2007/05/10
- [Bug binutils/4479] objcopy --only-keep-debug broken, bernhard dot walle at gmx dot de, 2007/05/10
- [Bug binutils/4479] objcopy --only-keep-debug broken, schwab at suse dot de, 2007/05/11
- [Bug binutils/4479] objcopy --only-keep-debug broken, amodra at bigpond dot net dot au, 2007/05/11
- [Bug binutils/4479] objcopy --only-keep-debug broken, schwab at suse dot de, 2007/05/14
- [Bug binutils/4479] objcopy --only-keep-debug broken, schwab at suse dot de, 2007/05/14
- [Bug binutils/4479] objcopy --only-keep-debug broken, hjl at lucon dot org, 2007/05/14
- [Bug binutils/4479] objcopy --only-keep-debug broken, amodra at bigpond dot net dot au, 2007/05/15