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(a)suse.de>
2 files changed, 55 insertions(+), 12 deletions(-)
defs.h | 1
symbols.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++++------------
Show replies by date