1*4882a593Smuzhiyun#!/bin/sh 2*4882a593Smuzhiyunobjdump="$1" 3*4882a593Smuzhiyunfile="$2" 4*4882a593Smuzhiyun$objdump -t "$file" | grep '*UUND*' | grep -v '#scratch' > /dev/null 2>&1 5*4882a593Smuzhiyunif [ $? -eq 1 ]; then 6*4882a593Smuzhiyun exit 0 7*4882a593Smuzhiyunelse 8*4882a593Smuzhiyun echo "$file: undefined symbols found" >&2 9*4882a593Smuzhiyun exit 1 10*4882a593Smuzhiyunfi 11