1 2 3 4 5 6 7 8
#!/bin/sh # SPDX-License-Identifier: LGPL-2.1-or-later set -eu if nm -D -u "$1" | grep ' U '; then echo "Undefined symbols detected!" exit 1 fi