From 7c7d1f3c9cb62a15bfcd3c163fe2cd3433a29d4d Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 31 Mar 2015 19:24:23 +0100 Subject: freedreno: add symbols test Signed-off-by: Emil Velikov --- freedreno/freedreno-symbol-check | 52 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 freedreno/freedreno-symbol-check (limited to 'freedreno/freedreno-symbol-check') diff --git a/freedreno/freedreno-symbol-check b/freedreno/freedreno-symbol-check new file mode 100755 index 00000000..71154489 --- /dev/null +++ b/freedreno/freedreno-symbol-check @@ -0,0 +1,52 @@ +#!/bin/bash + +# The following symbols (past the first five) are taken from the public headers. +# A list of the latter should be available Makefile.sources/LIBDRM_FREEDRENO_H_FILES + +FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_freedreno.so} | awk '{print $3}'| while read func; do +( grep -q "^$func$" || echo $func ) <