/usr/lib/radare/bin/syms is in radare-common 1:1.5.2-6.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #!/bin/sh
#
# dump all file offsets and symbol names of a binary file
#
TARGET="$1"
[ -z "$TARGET" ] && TARGET="-h"
if [ "$TARGET" = "-h" ]; then
echo "Usage: rsc syms [file]"
exit 1
fi
#if [ -n "`file $1 | grep "32-bit"`" ]; then
rabin -rsi $1
#else
# objdump -d $1 | grep '>:' | perl -ne '{ print "0x$_"; }' | sed -e 's,>:,,g' -e 's,<,,g'
#fi
#if [ -n "`file $1 | grep relocat`" ]; then
# objdump -d $1 | grep '>:' | perl -ne '{ print "0x$_"; }' | sed -e 's,>:,,g' -e 's,<,,g'
# #nm $1 | grep -e ' T ' -e ' t ' | sed -e 's, . ,+section_text\ ,' -e 's,^,0x,'
#else
# #nm $1 | grep -e ' T ' -e ' t ' | sed -e 's, . ,\ ,' -e 's,^,0x,'
# objdump -d $1 | grep '>:' | perl -ne '{ print "0x$_"; }' | sed -e 's,>:,,g' -e 's,<,,g'
#fi
#readelf -s /bin/ls | cut -d @ -f 1 | awk '{print "f sym_"$8" @ 0x"$2}'
#readelf -s $1 | cut -d @ -f 1 | awk '{print $2" "$8 }'
|