/usr/lib/radare/bin/make_symbolmap.sh is in radare-common 1:1.5.2-4.
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 | #!/bin/sh
#
# This is a modified version of a shellscript tool
# that comes with the EDB debugger.
#
# author: Evan Teran <eteran@alum.rit.edu>
# homepage: http://www.codef00.com/
# license: GPLv2
#
[ -z "$1" ] || [ ! -e "$1" ] && \
echo "Usage: make_symbolmap.sh [path/to/elf]" && exit 1
[ -z "`file -L $1| grep ELF`" ] && \
echo "This is not an ELF" && exit 1
date
md5sum $1
nm --defined-only -S -P -n $1 2>/dev/null | awk '{ if(NF == 3) { printf("%s %08x %s %s\n",$3, 0, $2, $1); } else if(NF == 4) { printf("%s %s %s %s\n",$3, $4, $2, $1); } }'
nm --defined-only -S -P -D -n $1 2>/dev/null | awk '{ if(NF == 3) { printf("%s %08x %s %s\n",$3, 0, $2, $1); } else if(NF == 4) { printf("%s %s %s %s\n",$3, $4, $2, $1); } }'
|