mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 14:00:30 +00:00
d22705e7de
Most symbols are now in libc.so.6. The "main" (exempted from coverage checks) status is therefore not necessary. Use DB_MAIN_VARIABLE for the remaining separate symbol, __nptl_initial_report_events. DB_RTLD_VARIABLE is now unused, so remove it. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
49 lines
1008 B
Awk
49 lines
1008 B
Awk
# This script processes the output of 'readelf -W -s' on the libpthread.so
|
|
# we've just built. It checks for all the symbols used in td_symbol_list.
|
|
|
|
BEGIN {
|
|
%define DB_MAIN_VARIABLE(name) /* Nothing. */
|
|
%define DB_MAIN_SYMBOL(name) /* Nothing. */
|
|
%define DB_MAIN_ARRAY_VARIABLE(name) /* Nothing. */
|
|
%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;
|
|
}
|
|
|
|
/Symbol table '.symtab'/ { in_symtab=1; next }
|
|
NF == 0 { in_symtab=0; next }
|
|
|
|
!in_symtab { next }
|
|
|
|
NF >= 8 && $7 != "UND" { seen[$NF] = 1 }
|
|
|
|
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);
|
|
}
|