From b497c43336475ff5f0248436510a7fbeccfa96a9 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 20 May 2014 20:37:56 -0700 Subject: Add a few more symbols to check-symbols-glibc. Bug: 11156955 Change-Id: Iee0bae6f9742eca188abc7a337371c50888a0ad6 --- libc/tools/check-symbols-glibc.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libc/tools') diff --git a/libc/tools/check-symbols-glibc.py b/libc/tools/check-symbols-glibc.py index 43b213f..3e112a0 100755 --- a/libc/tools/check-symbols-glibc.py +++ b/libc/tools/check-symbols-glibc.py @@ -73,6 +73,13 @@ FORTIFY_stuff = set([ '__strrchr_chk', '__umask_chk' ]) +# Some symbols are used to implement public macros. +macro_stuff = set([ + '__assert2', + '__errno', + '__fe_dfl_env', + '__get_h_errno', +]) # bionic exposes various Linux features that glibc doesn't. linux_stuff = set([ 'getauxval', @@ -114,7 +121,8 @@ for symbol in sorted(bionic): print print 'in bionic but not glibc:' -for symbol in sorted((bionic - bsd_stuff - FORTIFY_stuff - linux_stuff - std_stuff - weird_stuff).difference(glibc)): +allowed_stuff = (bsd_stuff | FORTIFY_stuff | linux_stuff | macro_stuff | std_stuff | weird_stuff) +for symbol in sorted((bionic - allowed_stuff).difference(glibc)): print symbol sys.exit(0) -- cgit v1.1