block_list.sh 162 Bytes
Newer Older
Michel Roelofs's avatar
Michel Roelofs committed
1
#!/bin/bash
Jeroen Vreeken's avatar
Jeroen Vreeken committed
2
3
4
5
6
7
8

for lib in $@; do
	SYMBOLS=`nm $lib |grep "block_.*_create" |cut -d' ' -f3`
	for symbol in $SYMBOLS; do
		echo -n "-Wl,-u -Wl,${symbol} "
	done
done