[Crash-utility] [PATCH] Use /usr/bin/nm -D on stripped binaries

Bernhard Walle bwalle at suse.de
Tue Aug 26 09:41:18 UTC 2008


Use "nm -D" to retrieve also the symbols of crash when having stripped binaries.
Use the presence of the symbol table to determine if the binary has been
stripped or not.

Because we don't have static symbols in stripped binaries, we check the size
of the function (the "nm -S" output) and report "unknown" if the looked address
is outside of the function.


Signed-off-by: Bernhard Walle <bwalle at suse.de>


2 files changed, 55 insertions(+), 12 deletions(-)
defs.h    |    1 
symbols.c |   66 +++++++++++++++++++++++++++++++++++++++++++++++++------------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash-use-nm-d.diff
Type: text/x-patch
Size: 3139 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20080826/2723a82b/attachment.bin>


More information about the Crash-utility mailing list