H. Peter Anvin | 05d0b08 | 2010-06-18 14:36:26 -0700 | [diff] [blame] | 1 | #!/bin/sh |
2 | nm="$1" | ||||
3 | file="$2" | ||||
H. Peter Anvin | 18642a5 | 2010-07-27 23:52:29 -0700 | [diff] [blame] | 4 | $nm "$file" | grep '^ *U' > /dev/null 2>&1 |
H. Peter Anvin | 05d0b08 | 2010-06-18 14:36:26 -0700 | [diff] [blame] | 5 | if [ $? -eq 1 ]; then |
6 | exit 0 | ||||
7 | else | ||||
8 | echo "$file: undefined symbols found" >&2 | ||||
9 | exit 1 | ||||
10 | fi |