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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 


[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux