summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/gbm/gallium-gbm-symbols-check
blob: 52b20ab858b012281fd09c13a968083dd009b2c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

FUNCS=$(nm -D --defined-only ${1-.libs/gbm_gallium_drm.so} | egrep -o "T .*|D .*" | cut -c 3- | while read func; do
( grep -q "^$func$" || echo $func )  <<EOF
gbm_backend
_edata
_fini
_init
EOF
done)

test ! -n "$FUNCS" || echo $FUNCS
test ! -n "$FUNCS"