[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/14663] strip --only-keep-debug doesn't remove .text, etc.
From: |
amodra at gmail dot com |
Subject: |
[Bug binutils/14663] strip --only-keep-debug doesn't remove .text, etc. |
Date: |
Fri, 26 Oct 2012 21:49:16 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=14663
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #4 from Alan Modra <amodra at gmail dot com> 2012-10-26 21:49:16
UTC ---
Your grep misses the relevant line. Add -w to objdump or -2 to grep options.
gcc -g hello.c && (objdump -w -h a.out | grep text)
11 .text 00000430 0000000010000490 0000000010000490 00000490 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
gcc -g hello.c && strip --only-keep-debug a.out && (objdump -w -h a.out | grep
text)
11 .text 00000430 0000000010000490 0000000010000490 00000258 2**4
ALLOC, READONLY, CODE
Notice lack of CONTENTS after stripping. Keeping the section headers like this
gives a user confidence that a debug file matches his binary..
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug binutils/14663] New: strip --only-keep-debug doesn't remove .text, etc., dje at google dot com, 2012/10/03
- [Bug binutils/14663] strip --only-keep-debug doesn't remove .text, etc., ppluzhnikov at google dot com, 2012/10/03
- [Bug binutils/14663] strip --only-keep-debug doesn't remove .text, etc., dje at google dot com, 2012/10/03
- [Bug binutils/14663] strip --only-keep-debug doesn't remove .text, etc., amodra at gmail dot com, 2012/10/21
- [Bug binutils/14663] strip --only-keep-debug doesn't remove .text, etc., dje at google dot com, 2012/10/26
- [Bug binutils/14663] strip --only-keep-debug doesn't remove .text, etc.,
amodra at gmail dot com <=
- [Bug binutils/14663] strip --only-keep-debug doesn't remove .text, etc., dje at google dot com, 2012/10/26
- [Bug binutils/14663] strip --only-keep-debug doesn't remove .text, etc., address@hidden, 2012/10/26
- [Bug binutils/14663] strip --only-keep-debug doesn't remove .text, etc., dje at google dot com, 2012/10/26