diff --git a/gdk-pixbuf/pltcheck.sh b/gdk-pixbuf/pltcheck.sh new file mode 100755 index 0000000000..7c0dd52303 --- /dev/null +++ b/gdk-pixbuf/pltcheck.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +LANG=C + +status=0 + +if ! which readelf 2>/dev/null >/dev/null; then + echo "'readelf' not found; skipping test" + exit 0 +fi + +for so in .libs/libgdk_pixbuf*.so; do + echo Checking $so for local PLT entries + readelf -r $so | grep 'JU\?MP_SLOT' | grep 'gdk_pixbuf' && status=1 +done + +exit $status diff --git a/gdk/pltcheck.sh b/gdk/pltcheck.sh new file mode 100755 index 0000000000..ac669998ff --- /dev/null +++ b/gdk/pltcheck.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +LANG=C + +status=0 + +if ! which readelf 2>/dev/null >/dev/null; then + echo "'readelf' not found; skipping test" + exit 0 +fi + +for so in .libs/lib*.so; do + echo Checking $so for local PLT entries + readelf -r $so | grep 'JU\?MP_SLOT' | grep -v 'gdk_pixbuf' | grep gdk && status=1 +done + +exit $status diff --git a/gtk/aliasfilescheck.sh b/gtk/aliasfilescheck.sh new file mode 100755 index 0000000000..f350663fb7 --- /dev/null +++ b/gtk/aliasfilescheck.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +if test "x$gtk_all_c_sources" = x; then + echo gtk_all_c_sources variable not defined + exit 1 +fi + +grep 'IN_FILE' gtk.symbols | sed 's/.*(//;s/).*//' | grep __ | sort -u > expected-files +grep '^ *# *define __' $gtk_all_c_sources | sed 's/.*define //;s/ *$//' | sort > actual-files + +diff expected-files actual-files && rm -f expected-files actual-files + diff --git a/gtk/pltcheck.sh b/gtk/pltcheck.sh new file mode 100755 index 0000000000..d8718cef9d --- /dev/null +++ b/gtk/pltcheck.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +LANG=C + +status=0 + +if ! which readelf 2>/dev/null >/dev/null; then + echo "'readelf' not found; skipping test" + exit 0 +fi + +for so in .libs/lib*.so; do + echo Checking $so for local PLT entries + readelf -r $so | grep 'JU\?MP_SLOT' | grep '\