From 552de225bf2740ba0cb52312c21353d71d934b8c Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 5 Apr 2015 15:51:28 +0100 Subject: radeon: add symbols test Will allow us to catch when the library exports more symbols than the ones in the public headers. Signed-off-by: Emil Velikov --- radeon/radeon-symbol-check | 61 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100755 radeon/radeon-symbol-check (limited to 'radeon/radeon-symbol-check') diff --git a/radeon/radeon-symbol-check b/radeon/radeon-symbol-check new file mode 100755 index 00000000..0bf2ffcb --- /dev/null +++ b/radeon/radeon-symbol-check @@ -0,0 +1,61 @@ +#!/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_RADEON_H_FILES + +FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_radeon.so} | awk '{print $3}'| while read func; do +( grep -q "^$func$" || echo $func ) <