summaryrefslogtreecommitdiffstats
path: root/core/filter_symbols.sh
diff options
context:
space:
mode:
Diffstat (limited to 'core/filter_symbols.sh')
-rw-r--r--core/filter_symbols.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/core/filter_symbols.sh b/core/filter_symbols.sh
new file mode 100644
index 0000000..ba5057a
--- /dev/null
+++ b/core/filter_symbols.sh
@@ -0,0 +1,25 @@
+NM=$1
+
+shift
+
+PREFIX=$1
+
+shift
+
+SUFFIX=$1
+
+shift
+
+while test "$1" != ""
+do
+ $NM -g -fp $1 | while read -a line
+ do
+ type=${line[1]}
+ # if [[ "$type" != "V" && "$type" != "U" ]]; then
+ #if [[ "$type" != "W" && "$type" != "V" && "$type" != "U" ]]; then
+ echo "$PREFIX${line[0]}$SUFFIX # ${line[1]}"
+ #fi
+ done
+
+ shift
+done