#!/bin/sh set -eu LIB=${1-.libs/libgbm.so} if ! [ -f "$LIB" ] then exit 1 fi FUNCS=$($NM -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read func; do ( grep -q "^$func$" || echo $func ) <