From d1aeb0bdc36f6bece71a2b0fd3684857d11a867b Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Thu, 11 Oct 2007 03:36:31 +0000 Subject: Add compiler hint of "GLOBAL_REMOVE_IF_UNREFERENCED" to prevent static unicode string table linked into final image if both PcdComponentNameDisabled and PcdComponentName2Disabled are set to TRUE. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4084 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Console/ConPlatformDxe/ComponentName.c | 2 +- MdeModulePkg/Universal/Console/ConSplitterDxe/ComponentName.c | 10 +++++----- .../Universal/Console/GraphicsConsoleDxe/ComponentName.c | 2 +- MdeModulePkg/Universal/Console/TerminalDxe/ComponentName.c | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'MdeModulePkg/Universal/Console') diff --git a/MdeModulePkg/Universal/Console/ConPlatformDxe/ComponentName.c b/MdeModulePkg/Universal/Console/ConPlatformDxe/ComponentName.c index 6010f22bd5..075b695682 100644 --- a/MdeModulePkg/Universal/Console/ConPlatformDxe/ComponentName.c +++ b/MdeModulePkg/Universal/Console/ConPlatformDxe/ComponentName.c @@ -43,7 +43,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gConPlatformComponent }; -STATIC EFI_UNICODE_STRING_TABLE mConPlatformDriverNameTable[] = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mConPlatformDriverNameTable[] = { { "eng;en", L"Platform Console Management Driver" diff --git a/MdeModulePkg/Universal/Console/ConSplitterDxe/ComponentName.c b/MdeModulePkg/Universal/Console/ConSplitterDxe/ComponentName.c index 6a458436e4..35c1273c50 100644 --- a/MdeModulePkg/Universal/Console/ConSplitterDxe/ComponentName.c +++ b/MdeModulePkg/Universal/Console/ConSplitterDxe/ComponentName.c @@ -95,7 +95,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gConSplitterStdErrCom }; -static EFI_UNICODE_STRING_TABLE mConSplitterDriverNameTable[] = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mConSplitterDriverNameTable[] = { { "eng;en", (CHAR16 *) L"Console Splitter Driver" @@ -106,7 +106,7 @@ static EFI_UNICODE_STRING_TABLE mConSplitterDriverNameTable[] = { } }; -static EFI_UNICODE_STRING_TABLE mConSplitterConInControllerNameTable[] = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mConSplitterConInControllerNameTable[] = { { "eng;en", (CHAR16 *) L"Primary Console Input Device" @@ -117,7 +117,7 @@ static EFI_UNICODE_STRING_TABLE mConSplitterConInControllerNameTable[] = { } }; -static EFI_UNICODE_STRING_TABLE mConSplitterSimplePointerControllerNameTable[] = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mConSplitterSimplePointerControllerNameTable[] = { { "eng;en", (CHAR16 *) L"Primary Simple Pointer Device" @@ -128,7 +128,7 @@ static EFI_UNICODE_STRING_TABLE mConSplitterSimplePointerControllerNameTable[] = } }; -static EFI_UNICODE_STRING_TABLE mConSplitterConOutControllerNameTable[] = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mConSplitterConOutControllerNameTable[] = { { "eng;en", (CHAR16 *) L"Primary Console Output Device" @@ -139,7 +139,7 @@ static EFI_UNICODE_STRING_TABLE mConSplitterConOutControllerNameTable[] = { } }; -static EFI_UNICODE_STRING_TABLE mConSplitterStdErrControllerNameTable[] = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mConSplitterStdErrControllerNameTable[] = { { "eng;en", (CHAR16 *) L"Primary Standard Error Device" diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/ComponentName.c b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/ComponentName.c index 7c458baa2c..5b4dd01b63 100644 --- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/ComponentName.c +++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/ComponentName.c @@ -38,7 +38,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gGraphicsConsoleCompo }; -STATIC EFI_UNICODE_STRING_TABLE mGraphicsConsoleDriverNameTable[] = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mGraphicsConsoleDriverNameTable[] = { { "eng;en", (CHAR16 *)L"UGA Console Driver" diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/ComponentName.c b/MdeModulePkg/Universal/Console/TerminalDxe/ComponentName.c index 5bcc85b5b7..11ee906c25 100644 --- a/MdeModulePkg/Universal/Console/TerminalDxe/ComponentName.c +++ b/MdeModulePkg/Universal/Console/TerminalDxe/ComponentName.c @@ -38,7 +38,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gTerminalComponentNam }; -static EFI_UNICODE_STRING_TABLE mTerminalDriverNameTable[] = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mTerminalDriverNameTable[] = { { "eng;en", (CHAR16 *) L"Serial Terminal Driver" -- cgit v1.2.3