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 mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils