DC: Check plugins for required symbols

Make sure that all the required symbols exist in generated plugins.
If not, the strip command may have removed them...

svn-id: r55144
This commit is contained in:
Marcus Comstedt 2011-01-07 14:40:25 +00:00
parent f9ebeb330b
commit 710e41c3e8
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#! /bin/sh
case "$0" in
*/*) dir=`dirname "$0"`/;;
*) dir="";;
esac
exec < "$dir"plugin.syms
while read sym; do
if sh-elf-nm "$1" | grep >/dev/null " $sym"'$'; then
:
else
echo >&2 "ERROR: Symbol $sym missing from $1"
exit 1
fi
done
exit 0

View File

@ -14,6 +14,7 @@ plugin_dist : plugins
if /usr/bin/test "$$p" -ot "$$t"; then :; else \
echo sh-elf-strip -g -o "$$t" "$$p"; \
sh-elf-strip -g -o "$$t" "$$p"; \
$(srcdir)/backends/platform/dc/check_plugin_symbols "$$t"; \
fi;\
done