From ab00035d0a7c2431d310aa799363317621bf1237 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Fri, 16 Oct 2009 00:29:28 +0000 Subject: [PATCH] GLOBAL_REMOVE_IF_UNREFERENCED must be defined to nothing for EBC 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index 2b0ce41e0e..2a55dd2697 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -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 // a non standard extension // -#if defined(_MSC_EXTENSIONS) +#if defined(_MSC_EXTENSIONS) && !defined (MDE_CPU_EBC) /// /// Remove global variable from the linked image if there are no references to /// it after all compiler and linker optimizations have been performed. -- 2.39.2