mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-08 23:07:17 +00:00
c5e588e6e5
- Previous commits has been reported in the ChangeLog file - hg log has been lost (moved inside ChangeLog) - Old radare1 repository has removed all the libr
19 lines
350 B
Bash
19 lines
350 B
Bash
#!/bin/sh
|
|
[ -z "$2" ] && exit 0
|
|
FILE=$1
|
|
PFX=$2
|
|
LIST=$1.list
|
|
|
|
if [ "${PFX}" = "r_util" ]; then
|
|
PFX="r_"
|
|
fi
|
|
|
|
nm --defined-only -B ${FILE} | grep -v ${PFX}_ | awk '{print $3}' > ${LIST}
|
|
#if [ -n "`cat /tmp/list`" ]; then
|
|
echo "=> Stripping unnecessary symbols for ${FILE}..."
|
|
objcopy --strip-symbols ${LIST} ${FILE}
|
|
strip -s ${FILE}
|
|
#fi
|
|
|
|
rm -f ${LIST}
|