1 # This script processes the output of 'readelf -W -s' on the libpthread.so
2 # we've just built. It checks for all the symbols used in td_symbol_list.
5 %define DB_LOOKUP_NAME
(idx
, name
) required
[STRINGIFY
(name
)] =
1;
6 %define DB_LOOKUP_NAME_TH_UNIQUE
(idx
, name
) th_unique
[STRINGIFY
(name
)] =
1;
7 %include
"db-symbols.h"
12 /Symbol table
'.symtab'/ { in_symtab=
1; next }
13 NF ==
0 { in_symtab=
0; next }
17 NF >=
8 && $
7 != "UND" { seen
[$
NF] =
1 }
23 if (s in seen
) print s
, "ok";
26 print s
, "***MISSING***";
31 for (s in th_unique
) {
38 print "th_unique:", any
;
41 print "th_unique:", "***MISSING***";