2021-06-29 20:17:05 +00:00
|
|
|
# This script processes the libc.so abilist (with GLIBC_PRIVATE
|
|
|
|
# symbols included). It checks for all the symbols used in td_symbol_list.
|
2009-02-28 02:26:51 +00:00
|
|
|
|
|
|
|
BEGIN {
|
2015-03-17 04:14:11 +00:00
|
|
|
%define DB_MAIN_VARIABLE(name) /* Nothing. */
|
2021-05-17 07:59:14 +00:00
|
|
|
%define DB_MAIN_SYMBOL(name) /* Nothing. */
|
2021-04-21 17:49:50 +00:00
|
|
|
%define DB_MAIN_ARRAY_VARIABLE(name) /* Nothing. */
|
2009-02-28 02:26:51 +00:00
|
|
|
%define DB_LOOKUP_NAME(idx, name) required[STRINGIFY (name)] = 1;
|
|
|
|
%define DB_LOOKUP_NAME_TH_UNIQUE(idx, name) th_unique[STRINGIFY (name)] = 1;
|
|
|
|
%include "db-symbols.h"
|
|
|
|
|
|
|
|
in_symtab = 0;
|
|
|
|
}
|
|
|
|
|
2021-06-29 20:17:05 +00:00
|
|
|
/^GLIBC_PRIVATE / {
|
|
|
|
seen[$2] = 1
|
|
|
|
}
|
2009-02-28 02:26:51 +00:00
|
|
|
|
|
|
|
END {
|
|
|
|
status = 0;
|
|
|
|
|
|
|
|
for (s in required) {
|
|
|
|
if (s in seen) print s, "ok";
|
|
|
|
else {
|
|
|
|
status = 1;
|
|
|
|
print s, "***MISSING***";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
any = "";
|
|
|
|
for (s in th_unique) {
|
|
|
|
if (s in seen) {
|
|
|
|
any = s;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (any)
|
|
|
|
print "th_unique:", any;
|
|
|
|
else {
|
|
|
|
status = 1;
|
|
|
|
print "th_unique:", "***MISSING***";
|
|
|
|
}
|
|
|
|
|
|
|
|
exit(status);
|
|
|
|
}
|