3 # MPE doesn't have a native nm, and the gcc nm isn't quite fully functional.
5 # If Perl Configure is calling us, then use the native linker to extract the
6 # symbol table and reformat it into something nm-like.
8 # Else it must be gcc calling us during the final link phase, so call gcc nm.
10 if [ "$1" != "-configperl" ]; then
11 # Oops, the caller must be expecting gcc nm. Give it to them.
17 *.a) LIST="LISTRL RL=$2;DATA;ENTRYSYM" ;;
18 *.sl) LIST="LISTXL XL=$2;DATA;ENTRYSYM" ;;
22 # I wanted to pipe this into awk, but it fell victim to a known pipe/streams
23 # bug on my multiprocessor machine.
25 callci xeq linkedit.pub.sys \"$LIST\" >/tmp/nm.$$
28 / data univ / { printf "%-20s|%10s|%-6s|%-7s|%s\n",$1,$5,"extern","data","?"} \
29 / entry univ / { printf "%-20s|%10s|%-6s|%-7s|%s\n",$1,$7,"extern","entry","?"}' /tmp/nm.$$