2 # Read global symbols from object file.
5 while ("${NM:='nm'} -g " ARGV[1] | getline) {
6 if (match($0, /^[^[:space:]]+ [^AU] (.*)$/)) {
13 # De-list symbols from the export list.
16 if (!(smbl in syms)) {
17 printf "Symbol %s is not present in %s\n", \
18 smbl, modname > "/dev/stderr"
23 # Strip commons, make everything else local.
25 for (member in syms) {
26 if (syms[member] == "C")