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
This commit is contained in:
@@ -169,7 +169,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gSnpNt32DriverCompone
|
||||
};
|
||||
|
||||
|
||||
static EFI_UNICODE_STRING_TABLE mSnpNt32DriverNameTable[] = {
|
||||
GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mSnpNt32DriverNameTable[] = {
|
||||
{
|
||||
"eng;en",
|
||||
L"SNP NT32 Driver"
|
||||
|
@@ -172,7 +172,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gWinNtBlockIoComponen
|
||||
};
|
||||
|
||||
|
||||
static EFI_UNICODE_STRING_TABLE mWinNtBlockIoDriverNameTable[] = {
|
||||
GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mWinNtBlockIoDriverNameTable[] = {
|
||||
{ "eng;en", L"Windows Block I/O Driver" },
|
||||
{ NULL , NULL }
|
||||
};
|
||||
|
@@ -183,7 +183,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gWinNtBusDriverCompon
|
||||
};
|
||||
|
||||
|
||||
static EFI_UNICODE_STRING_TABLE mWinNtBusDriverNameTable[] = {
|
||||
GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mWinNtBusDriverNameTable[] = {
|
||||
{ "eng;en", L"Windows Bus Driver" },
|
||||
{ NULL , NULL }
|
||||
};
|
||||
|
@@ -191,7 +191,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gWinNtConsoleComponen
|
||||
};
|
||||
|
||||
|
||||
static EFI_UNICODE_STRING_TABLE mWinNtConsoleDriverNameTable[] = {
|
||||
GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mWinNtConsoleDriverNameTable[] = {
|
||||
{ "eng;en", L"Windows Text Console Driver" },
|
||||
{ NULL , NULL }
|
||||
};
|
||||
|
@@ -194,7 +194,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gWinNtGopComponentNam
|
||||
};
|
||||
|
||||
|
||||
static EFI_UNICODE_STRING_TABLE mWinNtGopDriverNameTable[] = {
|
||||
GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mWinNtGopDriverNameTable[] = {
|
||||
{ "eng;en", L"Windows GOP Driver" },
|
||||
{ NULL , NULL }
|
||||
};
|
||||
|
@@ -168,7 +168,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gWinNtSerialIoCompone
|
||||
};
|
||||
|
||||
|
||||
static EFI_UNICODE_STRING_TABLE mWinNtSerialIoDriverNameTable[] = {
|
||||
GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mWinNtSerialIoDriverNameTable[] = {
|
||||
{ "eng;en", L"Windows Serial I/O Driver" },
|
||||
{ NULL , NULL }
|
||||
};
|
||||
|
@@ -193,7 +193,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gWinNtSimpleFileSyste
|
||||
};
|
||||
|
||||
|
||||
static EFI_UNICODE_STRING_TABLE mWinNtSimpleFileSystemDriverNameTable[] = {
|
||||
GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mWinNtSimpleFileSystemDriverNameTable[] = {
|
||||
{
|
||||
"eng;en",
|
||||
L"Windows Simple File System Driver"
|
||||
|
Reference in New Issue
Block a user