diff options
author | Daniel Stone <daniels@collabora.com> | 2018-03-20 11:01:02 +0000 |
---|---|---|
committer | Derek Foreman <derekf@osg.samsung.com> | 2018-03-20 10:01:19 -0500 |
commit | 05fd07f4277414ae39a0336ac04c94a58ef2aa96 (patch) | |
tree | bf75468a76ae0b2968b0ec47cf1dfdea4251770a /egl | |
parent | d3fe626219ee336d86f1bec980c5c09cce8d68c1 (diff) | |
download | wayland-05fd07f4277414ae39a0336ac04c94a58ef2aa96.tar.gz |
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: 21b1f22eb056 ("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>
Diffstat (limited to 'egl')
-rwxr-xr-x | egl/wayland-egl-symbols-check | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/egl/wayland-egl-symbols-check b/egl/wayland-egl-symbols-check index 70fe1f4..d04fd04 100755 --- a/egl/wayland-egl-symbols-check +++ b/egl/wayland-egl-symbols-check @@ -16,14 +16,6 @@ fi 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. REQ_FUNCS="wl_egl_window_resize wl_egl_window_create @@ -32,8 +24,8 @@ wl_egl_window_get_attached_size " NEW_ABI=$(echo "$AVAIL_FUNCS" | while read func; do + echo "$func" | grep -q "^_" && continue echo "$REQ_FUNCS" | grep -q "^$func$" && continue - echo "$PLAT_FUNCS" | grep -q "^$func$" && continue echo $func done) |