x86: Fix objdump version check in chkobjdump.awk for different formats.
authorMasami Hiramatsu <mhiramat@redhat.com>
Fri, 18 Dec 2009 15:40:13 +0000 (10:40 -0500)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 18 Dec 2009 17:26:56 +0000 (09:26 -0800)
commit8bee738bb1979c8bf7b42716b772522ab7d26b0c
tree234a576fc1d1f0ba8533a714839927783010382f
parent18374d89e5fe96772102f44f535efb1198d9be08
x86: Fix objdump version check in chkobjdump.awk for different formats.

Different version of objdump says its version in different way;

GNU objdump 2.16.1

or

GNU objdump version 2.19.51.0.14-1.fc11 20090722

This patch uses the first argument which starts with a number
as version string.

Changes in v2:
 - Remove unneeded increment.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
LKML-Reference: <20091218154012.16960.5113.stgit@dhcp-100-2-132.bos.redhat.com>
Suggested-by: H. Peter Anvin <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/tools/chkobjdump.awk