blob: 7ee90a9b549da32c9c12d694215b89d08645574c [file] [log] [blame]
H. Peter Anvin05d0b082010-06-18 14:36:26 -07001#!/bin/sh
2nm="$1"
3file="$2"
H. Peter Anvin18642a52010-07-27 23:52:29 -07004$nm "$file" | grep '^ *U' > /dev/null 2>&1
H. Peter Anvin05d0b082010-06-18 14:36:26 -07005if [ $? -eq 1 ]; then
6 exit 0
7else
8 echo "$file: undefined symbols found" >&2
9 exit 1
10fi