mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-03 19:01:31 +00:00
1129f1a2fc
* Add 'autogen.sh' to ease the use of 'acr' - Added USERCC and USEROSTYPE configuration flags --with-compiler : select a compiler from mk/ --with-ostype : select a target OS (not required for ming32 f.ex) * Add language bindings APIs from radare1 - Fix some issues from the ruby language binding - Checks if file exists before slurping and causing a ruby segfault - Added language destructor (.fini pointer) * Rename str_clean into r_str_chop * Initial work on the port for ming-w32 * Show flags instead of bytes in disassembly (smart disasm) * New r_sys_{get|set}env (for portability issues * Added flags -i and -l to radare2 * Fix warnings and random code cleanup * Added r_flag_get_i
20 lines
403 B
Bash
20 lines
403 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} 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}
|