Files
MentOS/scripts/get_text_address.sh
T
2021-10-04 11:44:02 +02:00

6 lines
153 B
Bash

#!/bin/bash
for obj_file in "$@"
do
ADDR=$(readelf -WS $obj_file | grep .text | awk '{ print "0x"$5 }')
echo "add-symbol-file $obj_file ${ADDR}"
done