summaryrefslogtreecommitdiff
path: root/gdk/abicheck.sh
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2004-08-09 20:14:43 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-08-09 20:14:43 +0000
commit0742ff3ae3115b443630c61be7b1b7d806f6b5c5 (patch)
tree8637472265882b1c5e52c5a5c7f49dddbab48712 /gdk/abicheck.sh
parent2f7c4c1e10091aeca25e6e27dbf7a63f90ddb610 (diff)
downloadgdk-pixbuf-0742ff3ae3115b443630c61be7b1b7d806f6b5c5.tar.gz
Add hidden aliases for exported symbols which are used internally in order
Mon Aug 9 15:41:17 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.def and gdkalias.h from gdk.symbols, and make make check check the abi with abicheck.sh. * gdk/gdk.symbols: New file. Definition of the GDK 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-x11.2.0.so against the symbols found in gdk.symbols. * gdk/makegdkalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * gdk/*.c, gdk/x11/*.c: Include gdkalias.h
Diffstat (limited to 'gdk/abicheck.sh')
-rwxr-xr-xgdk/abicheck.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdk/abicheck.sh b/gdk/abicheck.sh
new file mode 100755
index 000000000..c0a7e33ee
--- /dev/null
+++ b/gdk/abicheck.sh
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+cpp -P -DGDK_WINDOWING_X11 gdk.symbols | sed -e '/^$/d' | sort > expected-abi
+nm -D .libs/libgdk-x11-2.0.so | grep " T " | cut -c12- | sort > actual-abi
+diff -u expected-abi actual-abi