[PATCH] Use /usr/bin/nm -D on stripped binaries
Bernhard Walle
bwalle at suse.de
Tue Aug 26 05:40:56 EDT 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://lists.infradead.org/pipermail/kexec/attachments/20080826/60d1e964/attachment.bin
More information about the kexec
mailing list