mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
wayland-egl: Ignore underscored symbols in ABI check
Rather than a hard-coded list of platform symbols, just ignore anything
prefaced with an underscore. This fixes breakage on ARM, which declares
several slightly different platform symbols to x86.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Fixes: 21b1f22eb0 ("wayland-egl: enhance the symbol test")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105620
Cc: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
This commit is contained in:
parent
d3fe626219
commit
05fd07f427
1 changed files with 1 additions and 9 deletions
|
|
@ -16,14 +16,6 @@ fi
|
||||||
|
|
||||||
AVAIL_FUNCS="$($NM -D --format=bsd --defined-only $LIB | awk '{print $3}')"
|
AVAIL_FUNCS="$($NM -D --format=bsd --defined-only $LIB | awk '{print $3}')"
|
||||||
|
|
||||||
# Platform specific symbols.
|
|
||||||
PLAT_FUNCS="__bss_start
|
|
||||||
_edata
|
|
||||||
_end
|
|
||||||
_fini
|
|
||||||
_init
|
|
||||||
"
|
|
||||||
|
|
||||||
# Official ABI, taken from the header.
|
# Official ABI, taken from the header.
|
||||||
REQ_FUNCS="wl_egl_window_resize
|
REQ_FUNCS="wl_egl_window_resize
|
||||||
wl_egl_window_create
|
wl_egl_window_create
|
||||||
|
|
@ -32,8 +24,8 @@ wl_egl_window_get_attached_size
|
||||||
"
|
"
|
||||||
|
|
||||||
NEW_ABI=$(echo "$AVAIL_FUNCS" | while read func; do
|
NEW_ABI=$(echo "$AVAIL_FUNCS" | while read func; do
|
||||||
|
echo "$func" | grep -q "^_" && continue
|
||||||
echo "$REQ_FUNCS" | grep -q "^$func$" && continue
|
echo "$REQ_FUNCS" | grep -q "^$func$" && continue
|
||||||
echo "$PLAT_FUNCS" | grep -q "^$func$" && continue
|
|
||||||
|
|
||||||
echo $func
|
echo $func
|
||||||
done)
|
done)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue