On RHEL 5, 'file' command prints 'AMD x86-64' for 'x86-64' arch.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 29 Jul 2009 15:01:23 +0000 (16:01 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Wed, 29 Jul 2009 14:55:35 +0000 (15:55 +0100)
perl/lib/Sys/Guestfs/Lib.pm

index 601b3f4..be17a30 100644 (file)
@@ -381,6 +381,8 @@ sub _elf_arch_to_canonical
        return "i486";  # probably not in the wild
     } elsif ($_ eq "x86-64") {
        return "x86_64";
+    } elsif ($_ eq "AMD x86-64") {
+       return "x86_64";
     } elsif (/SPARC32/) {
        return "sparc";
     } elsif (/SPARC V9/) {