From: Arun Thomas Date: Fri, 10 Dec 2010 15:18:30 +0000 (+0000) Subject: unstack: ELF support X-Git-Tag: v3.2.0~719 X-Git-Url: http://zhaoyanbai.com/repos/Bv9ARM.ch10.html?a=commitdiff_plain;h=7ff2db1dd63bf7654a163a85e6cb207bd797108e;p=minix.git unstack: ELF support --- diff --git a/commands/unstack/unstack.sh b/commands/unstack/unstack.sh index 1be8c93c4..e26347f77 100644 --- a/commands/unstack/unstack.sh +++ b/commands/unstack/unstack.sh @@ -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