]> xenbits.xensource.com Git - people/aperard/ovmf.git/commitdiff
EmulatorPkg: Add StackCheckLibNull
authorOliver Smith-Denny <osde@linux.microsoft.com>
Tue, 23 Jul 2024 22:34:37 +0000 (15:34 -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>
EmulatorPkg/EmulatorPkg.dsc

index 1c356bc8c73273f9d8f4a1c4410c5381eb0e4dc2..e4bf3ce4165e0f653b1df2129eed4f2dc94c7c7e 100644 (file)
   PpiListLib|EmulatorPkg/Library/SecPpiListLib/SecPpiListLib.inf\r
   DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
   TimerLib|EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.inf\r
+  # StackCheckLib is not linked for SEC modules by default, this package can link it against its SEC modules\r
+  NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf\r
 \r
 [LibraryClasses.common.USER_DEFINED, LibraryClasses.common.BASE]\r
   DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
     #  Emulator, OS WIN application\r
     #  CLANGPDB is cross OS tool chain. It depends on WIN_HOST_BUILD flag\r
     #  to build WinHost application.\r
+    #\r
+    # USER_DEFINED components skip normal NULL lib linking, so we have to link this\r
+    # specially here for the libs that have stack guard enabled\r
     ##\r
-    EmulatorPkg/Win/Host/WinHost.inf\r
+    EmulatorPkg/Win/Host/WinHost.inf {\r
+      <LibraryClasses>\r
+        NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf\r
+    }\r
   !else\r
     ##\r
     #  Emulator, OS POSIX application\r
+    #\r
+    # USER_DEFINED components skip normal NULL lib linking, so we have to link this\r
+    # specially here for the libs that have stack guard enabled\r
     ##\r
-    EmulatorPkg/Unix/Host/Host.inf\r
+    EmulatorPkg/Unix/Host/Host.inf {\r
+      <LibraryClasses>\r
+        NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf\r
+    }\r
   !endif\r
 !endif\r
 \r