summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/abicheck.sh
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2004-08-11 04:10:18 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-08-11 04:10:18 +0000
commitf4437de139e5d20219c84f54b9e8c20dbf32ceb7 (patch)
tree6b5a81ad36c60f7fe985d7c40eb61abec1f9e556 /gdk-pixbuf/abicheck.sh
parent4a465af574c6e0f3ded49578492364ca2ad9a6fe (diff)
downloadgtk+-f4437de139e5d20219c84f54b9e8c20dbf32ceb7.tar.gz
Add hidden aliases for exported symbols which are used internally in order
Tue Aug 10 23:53:59 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gdk/Makefile.am: Add rules to generate gdk_pixbuf.def and gdk-pixbuf-alias.h from gdk-pixbuf.symbols, and make make check check the abi with abicheck.sh. * gdk/gdk-pixbuf.symbols: New file. Definition of the gdk-pixbuf ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gdk/abicheck.sh: New file. Script to check the actually symbols exported from libgdk_pibuf.2.0.so against the symbols found in gdk-pixbuf.symbols. * gdk/makegdkpixbufalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * *.c: Include gdk-pixbuf-alias.h
Diffstat (limited to 'gdk-pixbuf/abicheck.sh')
-rwxr-xr-xgdk-pixbuf/abicheck.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdk-pixbuf/abicheck.sh b/gdk-pixbuf/abicheck.sh
new file mode 100755
index 0000000000..9363c889d1
--- /dev/null
+++ b/gdk-pixbuf/abicheck.sh
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+cpp -P -DINCLUDE_INTERNAL_SYMBOLS -DINCLUDE_MMX_SYMBOLS gdk-pixbuf.symbols | sed -e '/^$/d' | sort > expected-abi
+nm -D .libs/libgdk_pixbuf-2.0.so | grep " T " | cut -c12- | grep "^\(gdk\|pixops\)_" | sort > actual-abi
+diff -u expected-abi actual-abi