From 47429af325b6c32904c0b7e68e6ce3ff0d57aec0 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 31 Mar 2015 19:47:24 +0100 Subject: nouveau: add symbols test Signed-off-by: Emil Velikov --- nouveau/nouveau-symbol-check | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 nouveau/nouveau-symbol-check (limited to 'nouveau/nouveau-symbol-check') diff --git a/nouveau/nouveau-symbol-check b/nouveau/nouveau-symbol-check new file mode 100755 index 00000000..0fef5632 --- /dev/null +++ b/nouveau/nouveau-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_NOUVEAU_H_FILES + +FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_nouveau.so} | awk '{print $3}'| while read func; do +( grep -q "^$func$" || echo $func ) <