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