1#!/bin/bash 2 3# The following symbols (past the first five) are taken from the public headers. 4# A list of the latter should be available Makefile.sources/LIBDRM_FREEDRENO_H_FILES 5 6FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_tegra.so} | awk '{print $3}'| while read func; do 7( grep -q "^$func$" || echo $func ) <<EOF 8__bss_start 9_edata 10_end 11_fini 12_init 13drm_tegra_bo_get_flags 14drm_tegra_bo_get_handle 15drm_tegra_bo_get_tiling 16drm_tegra_bo_map 17drm_tegra_bo_new 18drm_tegra_bo_ref 19drm_tegra_bo_set_flags 20drm_tegra_bo_set_tiling 21drm_tegra_bo_unmap 22drm_tegra_bo_unref 23drm_tegra_bo_wrap 24drm_tegra_close 25drm_tegra_new 26EOF 27done) 28 29test ! -n "$FUNCS" || echo $FUNCS 30test ! -n "$FUNCS" 31