зеркало из https://github.com/microsoft/mu_plus.git
Update Stack Cookie Conditionals for VS2022 (#85)
Because VS2022 is now the recommended compiler for Project Mu, we need to update the conditional for the stack cookie libraries. No Enabling stack cookies N/A Include Stack Cookie Support Libs on Release Builds (#89) Stack cookie support is hooked into our memory protection policy, so we can utilize stack cookies on release builds. No Enabling Stack Cookies on Q35 N/A
This commit is contained in:
Родитель
bb145eaf35
Коммит
840b9286fc
|
@ -72,15 +72,12 @@
|
|||
|
||||
[LibraryClasses.X64]
|
||||
RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
|
||||
!if $(TARGET) == DEBUG
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019
|
||||
#if debug is enabled provide StackCookie support lib so that we can link to /GS exports
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019 or $(TOOL_CHAIN_TAG) == VS2022
|
||||
# Provide StackCookie support lib so that we can link to /GS exports for VS builds
|
||||
NULL|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
!else
|
||||
# otherwise use the null version for GCC and CLANG
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibNull/BaseBinSecurityLibNull.inf
|
||||
!endif
|
||||
!endif
|
||||
|
||||
SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
|
||||
|
|
|
@ -91,16 +91,13 @@
|
|||
RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
|
||||
VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
|
||||
|
||||
!if $(TARGET) == DEBUG
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019
|
||||
#if debug is enabled provide StackCookie support lib so that we can link to /GS exports
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019 or $(TOOL_CHAIN_TAG) == VS2022
|
||||
# Provide StackCookie support lib so that we can link to /GS exports for VS builds
|
||||
NULL|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
!else
|
||||
# otherwise use the null version for GCC and CLANG
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibNull/BaseBinSecurityLibNull.inf
|
||||
!endif
|
||||
!endif
|
||||
|
||||
[LibraryClasses.X64.UEFI_APPLICATION]
|
||||
ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
|
||||
|
|
|
@ -39,6 +39,16 @@
|
|||
HiiLib |MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
|
||||
UefiHiiServicesLib |MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
|
||||
|
||||
[LibraryClasses.X64]
|
||||
RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019 or $(TOOL_CHAIN_TAG) == VS2022
|
||||
# Provide StackCookie support lib so that we can link to /GS exports for VS builds
|
||||
NULL|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
!else
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibNull/BaseBinSecurityLibNull.inf
|
||||
!endif
|
||||
|
||||
[Components.X64]
|
||||
HidPkg/HidKeyboardDxe/HidKeyboardDxe.inf
|
||||
HidPkg/HidMouseAbsolutePointerDxe/HidMouseAbsolutePointerDxe.inf
|
||||
|
|
|
@ -55,16 +55,13 @@
|
|||
PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
|
||||
MfciRetrievePolicyLib|MfciPkg/Library/MfciRetrievePolicyLibNull/MfciRetrievePolicyLibNull.inf
|
||||
|
||||
!if $(TARGET) == DEBUG
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019
|
||||
#if debug is enabled provide StackCookie support lib so that we can link to /GS exports
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019 or $(TOOL_CHAIN_TAG) == VS2022
|
||||
# Provide StackCookie support lib so that we can link to /GS exports for VS builds
|
||||
NULL|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
!else
|
||||
# otherwise use the null version for GCC and CLANG
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibNull/BaseBinSecurityLibNull.inf
|
||||
!endif
|
||||
!endif
|
||||
|
||||
[LibraryClasses]
|
||||
MfciPolicyParsingLib|MfciPkg/Private/Library/MfciPolicyParsingLibNull/MfciPolicyParsingLibNull.inf
|
||||
|
|
|
@ -104,16 +104,13 @@
|
|||
CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
|
||||
|
||||
[LibraryClasses.X64]
|
||||
!if $(TARGET) == DEBUG
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019
|
||||
#if debug is enabled provide StackCookie support lib so that we can link to /GS exports
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019 or $(TOOL_CHAIN_TAG) == VS2022
|
||||
# Provide StackCookie support lib so that we can link to /GS exports for VS builds
|
||||
NULL|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
!else
|
||||
# otherwise use the null version for GCC and CLANG
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibNull/BaseBinSecurityLibNull.inf
|
||||
!endif
|
||||
!endif
|
||||
|
||||
[LibraryClasses.common.PEIM]
|
||||
PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
|
||||
|
|
|
@ -29,16 +29,13 @@
|
|||
|
||||
[LibraryClasses.X64]
|
||||
RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
|
||||
!if $(TARGET) == DEBUG
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019
|
||||
#if debug is enabled provide StackCookie support lib so that we can link to /GS exports
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019 or $(TOOL_CHAIN_TAG) == VS2022
|
||||
# Provide StackCookie support lib so that we can link to /GS exports for VS builds
|
||||
NULL|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
!else
|
||||
# otherwise use the null version for GCC and CLANG
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibNull/BaseBinSecurityLibNull.inf
|
||||
!endif
|
||||
!endif
|
||||
|
||||
[LibraryClasses.common]
|
||||
|
||||
|
|
|
@ -37,16 +37,13 @@
|
|||
|
||||
[LibraryClasses.X64]
|
||||
RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
|
||||
!if $(TARGET) == DEBUG
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019
|
||||
#if debug is enabled provide StackCookie support lib so that we can link to /GS exports
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019 or $(TOOL_CHAIN_TAG) == VS2022
|
||||
# Provide StackCookie support lib so that we can link to /GS exports for VS builds
|
||||
NULL|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
!else
|
||||
# otherwise use the null version for GCC and CLANG
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibNull/BaseBinSecurityLibNull.inf
|
||||
!endif
|
||||
!endif
|
||||
|
||||
[LibraryClasses]
|
||||
UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
|
||||
|
|
|
@ -78,15 +78,12 @@
|
|||
|
||||
[LibraryClasses.X64]
|
||||
|
||||
!if $(TARGET) == DEBUG
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019
|
||||
#if debug is enabled provide StackCookie support lib so that we can link to /GS exports
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019 or $(TOOL_CHAIN_TAG) == VS2022
|
||||
# Provide StackCookie support lib so that we can link to /GS exports for VS builds
|
||||
NULL|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
!else
|
||||
# otherwise use the null version for GCC and CLANG
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibNull/BaseBinSecurityLibNull.inf
|
||||
!endif
|
||||
!endif
|
||||
|
||||
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
||||
|
|
|
@ -81,6 +81,16 @@
|
|||
PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
|
||||
PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
|
||||
|
||||
[LibraryClasses.X64]
|
||||
RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019 or $(TOOL_CHAIN_TAG) == VS2022
|
||||
# Provide StackCookie support lib so that we can link to /GS exports for VS builds
|
||||
NULL|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
!else
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibNull/BaseBinSecurityLibNull.inf
|
||||
!endif
|
||||
|
||||
###############################################################
|
||||
#
|
||||
# Components Section - list of the modules and components that will be processed by compilation
|
||||
|
|
|
@ -30,6 +30,16 @@
|
|||
XmlTreeLib|XmlSupportPkg/Library/XmlTreeLib/XmlTreeLib.inf
|
||||
XmlTreeQueryLib|XmlSupportPkg/Library/XmlTreeQueryLib/XmlTreeQueryLib.inf
|
||||
|
||||
[LibraryClasses.X64]
|
||||
RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
|
||||
!if $(TOOL_CHAIN_TAG) == VS2017 or $(TOOL_CHAIN_TAG) == VS2015 or $(TOOL_CHAIN_TAG) == VS2019 or $(TOOL_CHAIN_TAG) == VS2022
|
||||
# Provide StackCookie support lib so that we can link to /GS exports for VS builds
|
||||
NULL|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibRng/BaseBinSecurityLibRng.inf
|
||||
!else
|
||||
BaseBinSecurityLib|MdePkg/Library/BaseBinSecurityLibNull/BaseBinSecurityLibNull.inf
|
||||
!endif
|
||||
|
||||
[Components]
|
||||
XmlSupportPkg/Library/XmlTreeLib/XmlTreeLib.inf
|
||||
XmlSupportPkg/Library/XmlTreeQueryLib/XmlTreeQueryLib.inf
|
||||
|
|
Загрузка…
Ссылка в новой задаче