]> xenbits.xensource.com Git - people/aperard/ovmf.git/commitdiff
PrmPkg: Add StackCheckLibNull
authorOliver Smith-Denny <osde@linux.microsoft.com>
Tue, 23 Jul 2024 22:24:54 +0000 (15:24 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 13 Sep 2024 03:58:46 +0000 (03:58 +0000)
Remove the old stack check lib now that MdeLibs.inc includes
the new one.

Signed-off-by: Oliver Smith-Denny <osde@linux.microsoft.com>
PrmPkg/PrmPkg.dsc

index 3e9126c32115af62dac741c3f774d577c4869351..8eeb393cd19c8071eb2f656782d848c9a2cd5585 100644 (file)
   UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r
   UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r
 \r
+# StackCheckLib is not linked for SEC modules by default, this package can link it against its SEC modules\r
+[LibraryClasses.common.SEC]\r
+  NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf\r
+\r
 [LibraryClasses.IA32, LibraryClasses.X64]\r
   MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf\r
 \r
-[LibraryClasses.AARCH64]\r
-  NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf\r
-\r
 [LibraryClasses.common.DXE_DRIVER, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.UEFI_APPLICATION]\r
   #\r
   # EDK II Packages\r
   #\r
   $(PLATFORM_PACKAGE)/Samples/PrmSampleHardwareAccessModule/PrmSampleHardwareAccessModule.inf\r
 \r
-[Components.AARCH64]\r
-  # Add support for GCC stack protector\r
-  MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf\r
-\r
 [BuildOptions]\r
 # Force deprecated interfaces off\r
   *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES\r