Commit 8c634507 authored by akpm@linux-foundation.org's avatar akpm@linux-foundation.org Committed by H. Peter Anvin

x86: Fix objdump version check in arch/x86/tools/chkobjdump.awk

It says

Warning: objdump version  is older than 2.19
Warning: Skipping posttest.

because it used the wrong field from `objdump -v':

akpm:/usr/src/25> /opt/crosstool/gcc-4.0.2-glibc-2.3.6/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-objdump -v
GNU objdump 2.16.1
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
LKML-Reference: <200912172326.nBHNQaQl024796@imap1.linux-foundation.org>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
Cc: Masami Hiramatsu <mhiramat@redhat.com>
parent 6c56ccec
...@@ -9,7 +9,7 @@ BEGIN { ...@@ -9,7 +9,7 @@ BEGIN {
} }
/^GNU/ { /^GNU/ {
split($4, ver, "."); split($3, ver, ".");
if (ver[1] > od_ver || if (ver[1] > od_ver ||
(ver[1] == od_ver && ver[2] >= od_sver)) { (ver[1] == od_ver && ver[2] >= od_sver)) {
exit 1; exit 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment