]> git.proxmox.com Git - mirror_edk2.git/commitdiff
GLOBAL_REMOVE_IF_UNREFERENCED must be defined to nothing for EBC
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 16 Oct 2009 00:29:28 +0000 (00:29 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 16 Oct 2009 00:29:28 +0000 (00:29 +0000)
This corrects a bug introduced on August 18, 2009 when ARM support was added

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9342 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Base.h

index 2b0ce41e0ed665b925553c1389301ed50d9c761d..2a55dd2697bae32d698f671d5e5ad4e394ac5dcb 100644 (file)
@@ -32,7 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //  if the /OPT:REF linker option is used. We defined a macro as this is a \r
 //  a non standard extension\r
 //\r
-#if defined(_MSC_EXTENSIONS)\r
+#if defined(_MSC_EXTENSIONS) && !defined (MDE_CPU_EBC)\r
   ///\r
   /// Remove global variable from the linked image if there are no references to \r
   /// it after all compiler and linker optimizations have been performed.\r