1 2 3 4 5 6 7
#!/bin/sh set -eu if nm -D -u "$1" | grep ' U '; then echo "Undefined symbols detected!" exit 1 fi