]> Zhao Yanbai Git Server - minix.git/commitdiff
unstack: ELF support
authorArun Thomas <arun@minix3.org>
Fri, 10 Dec 2010 15:18:30 +0000 (15:18 +0000)
committerArun Thomas <arun@minix3.org>
Fri, 10 Dec 2010 15:18:30 +0000 (15:18 +0000)
commands/unstack/unstack.sh

index 1be8c93c49c895c02eec2d6a5a7637cdc650a3b0..e26347f77383dbc5c7651a81eabbfcaa4ae59ffa 100644 (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