This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
#! /bin/sh |
| 2 |
|
| 3 |
# Check that a theme engine does not export any |
| 4 |
# functions that may interfere with symbol resolution |
| 5 |
|
| 6 |
cat >expected-abi <<EOF |
| 7 |
theme_create_rc_style |
| 8 |
theme_exit |
| 9 |
theme_init |
| 10 |
EOF |
| 11 |
|
| 12 |
cat >optional-abi <<EOF |
| 13 |
__bss_start |
| 14 |
_edata |
| 15 |
_end |
| 16 |
_fini |
| 17 |
_init |
| 18 |
g_module_check_init |
| 19 |
g_module_unload |
| 20 |
EOF |
| 21 |
|
| 22 |
nm -D -g --defined-only $1 | cut -d ' ' -f 3 > actual-abi |
| 23 |
|
| 24 |
cat optional-abi >>expected-abi |
| 25 |
sort expected-abi | uniq >expected-abi2 |
| 26 |
|
| 27 |
cat optional-abi >>actual-abi |
| 28 |
sort actual-abi | uniq >actual-abi2 |
| 29 |
|
| 30 |
diff -u expected-abi2 actual-abi2 && rm expected-abi optional-abi actual-abi expected-abi2 actual-abi2 |