From da05f10d2d3a27e438727de14077fcebd1d3733e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 10 Sep 2006 06:36:11 +0000 Subject: [PATCH] add new files --- gdk-pixbuf/pltcheck.sh | 17 +++++++++++++++++ gdk/pltcheck.sh | 17 +++++++++++++++++ gtk/aliasfilescheck.sh | 12 ++++++++++++ gtk/pltcheck.sh | 17 +++++++++++++++++ 4 files changed, 63 insertions(+) create mode 100755 gdk-pixbuf/pltcheck.sh create mode 100755 gdk/pltcheck.sh create mode 100755 gtk/aliasfilescheck.sh create mode 100755 gtk/pltcheck.sh 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 '\