unstack: ELF support

This commit is contained in:
Arun Thomas 2010-12-10 15:18:30 +00:00
parent 691030d5ce
commit 7ff2db1dd6

View file

@ -34,9 +34,13 @@ then GNM=gnm
else GNM=nm
fi
ELFNM=/usr/gnu_cross/bin/i386-pc-minix3-nm
# Invoke gnu nm or ack nm?
if file $executable | grep NSYM >/dev/null 2>&1
then NM="$GNM --radix=d"
elif file $executable | grep ELF >/dev/null 2>&1
then NM="$ELFNM --radix=d"
else NM="acknm -d"
fi