2 # Check symbols exported by a library
3 # (c) 2014 Martin Mares <mj@ucw.cz>
7 my $lib = $ARGV[0] or die "Usage: $0 <library>\n";
8 open my $f, '-|', 'nm', $lib or die;
12 my ($addr, $type, $sym) = split /\s+/;
13 if ($sym =~ m{^(ucw|ucwlib)_}) {
16 if ($type =~ m{[A-Z]}) {
17 print "$sym ($type)\n";