summaryrefslogtreecommitdiff
path: root/gtk/abicheck.sh
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2004-08-09 16:59:53 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-08-09 16:59:53 +0000
commit3612aee5857360cf6dcde2be79a6d60bebf4f8bb (patch)
tree5c98676432674f19dceb062c7f1a32714999c600 /gtk/abicheck.sh
parent23e35417ad417e57f88c0a7305c04db76cabd0f9 (diff)
downloadgtk+-3612aee5857360cf6dcde2be79a6d60bebf4f8bb.tar.gz
Add hidden aliases for exported symbols which are used internally in order
Mon Aug 9 12:48:04 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) * gtk/Makefile.am: Add rules to generate gtk.def and from gtk.symbols, and make make check check the abi with abicheck.sh. (gtk_private_h_sources): Add gtkinternals.h (gtk_built_private_headers): Add gtkalias.h (gtk_extra_sources): Add gtk.symbols (EXTRA_DIST): Add makegtkalias.pl and abicheck.sh * gtk/gtk.symbols: New file. Definition of the GTK+ ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gtk/abicheck.sh: New file. Script to check the actually symbols exported from libgtk-x11.2.0.so against the symbols found in gtk.symbols. * gtk/makegtkalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * gtk/gtkinternals.h: New file. An uninstalled header listing symbols which must be exported for some reason and do not appear in any other header. * gtk/*.c: Include gtkalias.h
Diffstat (limited to 'gtk/abicheck.sh')
-rwxr-xr-xgtk/abicheck.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/abicheck.sh b/gtk/abicheck.sh
new file mode 100755
index 0000000000..ba3b398cd2
--- /dev/null
+++ b/gtk/abicheck.sh
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+cpp -P -DG_OS_UNIX -DGTK_WINDOWING_X11 -DINCLUDE_INTERNAL_SYMBOLS gtk.symbols | sed -e '/^$/d' | sort > expected-abi
+nm -D .libs/libgtk-x11-2.0.so | grep " T " | cut -c12- | grep "^gtk" | sort > actual-abi
+diff -u expected-abi actual-abi