pluto/make_map.sh
2019-12-06 20:28:28 +00:00

4 lines
218 B
Bash
Executable file

#!/bin/bash
# Read the symbols from the binary, remove all the unnecessary columns with awk and emit to a map file
readelf -s $1 | grep -F "FUNC" | awk '{$1=$3=$4=$5=$6=$7=""; print $0}' | sort -k 1 > $2
echo "" >> $2