summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@endlessos.org>2023-03-22 10:44:01 +0000
committerPhilip Withnall <pwithnall@endlessos.org>2023-03-22 10:44:01 +0000
commit077b87aa9cd230cca35c92277a2788d03d53340d (patch)
tree35c2ec1fdec70a5f6b35e757f6543e238251baa3 /tools
parentbabd27533023c749d43820c7fe933b3d13b63379 (diff)
downloadglib-077b87aa9cd230cca35c92277a2788d03d53340d.tar.gz
tools: Drop check-abis.sh script
It hasn’t been used for years, and isn’t really needed since we changed to explicitly exporting symbols (using `GLIB_AVAILABLE_IN_*`) rather than implicitly exporting them unless they were hidden. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/check-abis.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/tools/check-abis.sh b/tools/check-abis.sh
deleted file mode 100755
index 5340f317d..000000000
--- a/tools/check-abis.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh -e
-
-list_leaked_symbols () {
- nm -D "$1" | grep ' T ' | cut -f 3 -d ' ' | grep -E -v "$2"
-}
-
-check_symbols () {
- if [ "$(list_leaked_symbols "$1" "$2" | wc -l)" -ne 0 ]; then
- echo File "$1" possibly leaking symbols:
- list_leaked_symbols "$1" "$2"
- exit 1
- fi
-}
-
-allowed="^_init$|^_fini$|^_ftext$|^g_"
-allowed_in_libglib="${allowed}|^glib__private__$|^glib_gettext$|^glib_pgettext$|^glib_check_version$"
-allowed_in_libgthread='^_init$|^_fini$|^_ftext$|^g_thread_init$|^g_thread_init_with_errorcheck_mutexes$'
-
-check_symbols glib/.libs/libglib-2.0.so "$allowed_in_libglib"
-check_symbols gthread/.libs/libgthread-2.0.so "$allowed_in_libgthread"
-for file in gmodule/.libs/libgmodule-2.0.so gobject/.libs/libgobject-2.0.so gio/.libs/libgio-2.0.so; do
- check_symbols "$file" "$allowed"
-done