aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/dc/check_plugin_symbols
blob: 7dd9d68971eec1f3a3ee83db014143ce008040a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh
case "$0" in
  */*) dir=`dirname "$0"`/;;
  *) dir="";;
esac
exec < "$dir"plugin.syms
while read sym; do
  if sh-elf-nm "$1" | grep >/dev/null " $sym"'$'; then
    :
  else
    echo >&2 "ERROR: Symbol $sym missing from $1"
    exit 1
  fi
done
exit 0