FIX #1784: EM_AMD64 and EM_X86_64 might both be defined to the same value
authorSimon Marlow <simonmar@microsoft.com>
Fri, 19 Oct 2007 11:02:23 +0000 (11:02 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Fri, 19 Oct 2007 11:02:23 +0000 (11:02 +0000)
rts/Linker.c

index e86efd3..65a7e22 100644 (file)
@@ -2904,8 +2904,7 @@ ocVerifyImage_ELF ( ObjectCode* oc )
       case EM_PPC:   IF_DEBUG(linker,debugBelch( "powerpc32" )); break;
 #ifdef EM_X86_64
       case EM_X86_64: IF_DEBUG(linker,debugBelch( "x86_64" )); break;
-#endif
-#ifdef EM_AMD64
+#elif defined(EM_AMD64)
       case EM_AMD64: IF_DEBUG(linker,debugBelch( "amd64" )); break;
 #endif
       default:       IF_DEBUG(linker,debugBelch( "unknown" ));