X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Flto%2Flto-coff.c;h=1b87cbbe7641535a857f7b963cdeb946db0c750b;hp=1814cfdb82b9cb157098d73e9ba399e6ed9e0133;hb=96b18c9642917356a6ea0438a688cb78931ba784;hpb=4d992eb62c555460d61df8961f2f8df95a4f3a0f diff --git a/gcc/lto/lto-coff.c b/gcc/lto/lto-coff.c index 1814cfdb82b..1b87cbbe764 100644 --- a/gcc/lto/lto-coff.c +++ b/gcc/lto/lto-coff.c @@ -379,9 +379,10 @@ validate_file (lto_coff_file *coff_file) return false; } - if (COFF_CHARACTERISTICS != (COFF_CHARACTERISTICS & charact)) + if (mach != IMAGE_FILE_MACHINE_AMD64 + && COFF_CHARACTERISTICS != (COFF_CHARACTERISTICS & charact)) { - /* ECOFF/XCOFF/PE+ support not implemented. */ + /* ECOFF/XCOFF support not implemented. */ error ("not a 32-bit COFF object file"); return false; }