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_RTLD_VARIABLE
(name
) /* Nothing.
*/
6 %define DB_MAIN_VARIABLE
(name
) /* Nothing.
*/
7 %define DB_LOOKUP_NAME
(idx
, name
) required
[STRINGIFY
(name
)] =
1;
8 %define DB_LOOKUP_NAME_TH_UNIQUE
(idx
, name
) th_unique
[STRINGIFY
(name
)] =
1;
9 %include
"db-symbols.h"
14 /Symbol table
'.symtab'/ { in_symtab=
1; next }
15 NF ==
0 { in_symtab=
0; next }
19 NF >=
8 && $
7 != "UND" { seen
[$
NF] =
1 }
25 if (s in seen
) print s
, "ok";
28 print s
, "***MISSING***";
33 for (s in th_unique
) {
40 print "th_unique:", any
;
43 print "th_unique:", "***MISSING***";