mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-15 01:10:01 +00:00
deb263a5fb
- Thanks! :) * Added dummy r_socket_proc_* api - Needs to be moved outside r_socket - Added two non-working usage examples * Add some checks and enhacements to the r_buf API - Implemented in r_util.vapi * R_APIfy the r_cache api * Add missing methods in r_socket.vapi * Update the README file in r_anal describing the new design of r_anal..not yet finished
22 lines
464 B
Bash
22 lines
464 B
Bash
#!/bin/sh
|
|
[ -z "$2" ] && exit 0
|
|
FILE=$1
|
|
PFX=$2
|
|
LIST=$1.list
|
|
|
|
if [ "${PFX}" = "r_util" ]; then
|
|
echo "=> No stripping any symbol in libr_util O:)"
|
|
exit 0
|
|
PFX="r_"
|
|
fi
|
|
|
|
nm --defined-only -B ${FILE} 2>/dev/null | grep -v ^${PFX}_ | awk '{print $3}' > ${LIST}
|
|
#if [ -n "`cat /tmp/list`" ]; then
|
|
echo "=> Stripping unnecessary symbols for ${FILE}..."
|
|
objcopy --strip-symbols ${LIST} ${FILE} 2>/dev/null
|
|
#TODO: Uncomment on release
|
|
#strip -s ${FILE}
|
|
#fi
|
|
|
|
rm -f ${LIST}
|