Back to home page

OSCL-LXR

 
 

    


0001 #!/bin/sh
0002 # SPDX-License-Identifier: GPL-2.0
0003 nm="$1"
0004 file="$2"
0005 $nm "$file" | grep '^ *U' > /dev/null 2>&1
0006 if [ $? -eq 1 ]; then
0007     exit 0
0008 else
0009     echo "$file: undefined symbols found" >&2
0010     exit 1
0011 fi