MdePkg/Library/BaseStackCheckLib: Add Null handler for VS2017/ARM
authorPete Batard <pete@akeo.ie>
Fri, 12 Jan 2018 13:33:27 +0000 (21:33 +0800)
committerLiming Gao <liming.gao@intel.com>
Wed, 7 Feb 2018 01:49:20 +0000 (09:49 +0800)
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Pete Batard <pete@akeo.ie>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
MdePkg/Library/BaseStackCheckLib/BaseStackCheckNull.c [new file with mode: 0644]

index d02d971..e280651 100644 (file)
@@ -30,8 +30,9 @@
 #\r
 \r
 [Sources]\r
-  BaseStackCheckGcc.c | GCC\r
-  BaseStackCheckGcc.c | RVCT\r
+  BaseStackCheckGcc.c  | GCC\r
+  BaseStackCheckGcc.c  | RVCT\r
+  BaseStackCheckNull.c | MSFT\r
 \r
 [Packages]\r
   MdePkg/MdePkg.dec\r
diff --git a/MdePkg/Library/BaseStackCheckLib/BaseStackCheckNull.c b/MdePkg/Library/BaseStackCheckLib/BaseStackCheckNull.c
new file mode 100644 (file)
index 0000000..ebb387f
--- /dev/null
@@ -0,0 +1,18 @@
+/*++\r
+\r
+ Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>\r
+ This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php.\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+Abstract:\r
+\r
+  This file is purely empty as a work around for BaseStackCheck to pass MSVC build.\r
+\r
+**/\r
+\r
+extern int __BaseStackCheckNull;\r