]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
x86: Fix objdump version check in arch/x86/tools/chkobjdump.awk
authorakpm@linux-foundation.org <akpm@linux-foundation.org>
Thu, 17 Dec 2009 23:26:36 +0000 (15:26 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 17 Dec 2009 23:34:29 +0000 (15:34 -0800)
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: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <200912172326.nBHNQaQl024796@imap1.linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Masami Hiramatsu <mhiramat@redhat.com>
arch/x86/tools/chkobjdump.awk

index 0d13cd9fdcffd6e5cc791bb23770de06df3a46d9..5bbb5a33f22029f39578114adfef535971e4853a 100644 (file)
@@ -9,7 +9,7 @@ BEGIN {
 }
 
 /^GNU/ {
-       split($4, ver, ".");
+       split($3, ver, ".");
        if (ver[1] > od_ver ||
            (ver[1] == od_ver && ver[2] >= od_sver)) {
                exit 1;