]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/ShellPkg.dsc AARCH64: enable stack protector
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 4 Sep 2019 16:30:47 +0000 (09:30 -0700)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 5 Sep 2019 17:19:35 +0000 (10:19 -0700)
Incorporate the stack protector library into the AARCH64 build of
the Shell binaries as a NULL library resolution, to avoid build
errors when the compiler injects stack integrity checks.

Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Acked-by: Zhichao Gao <zhichao.gao@intel.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
ShellPkg/ShellPkg.dsc

index b2065dc028d8048925cffdd3c8239d6a7007105c..91493400cab728773555b706daea91c0a7d2d754 100644 (file)
@@ -58,7 +58,7 @@
   DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf\r
   ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf\r
 \r
-[LibraryClasses.ARM]\r
+[LibraryClasses.ARM,LibraryClasses.AARCH64]\r
   #\r
   # It is not possible to prevent the ARM compiler for generic intrinsic functions.\r
   # This library provides the instrinsic functions generate by a given compiler.\r
@@ -69,9 +69,6 @@
   # Add support for GCC stack protector\r
   NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf\r
 \r
-[LibraryClasses.AARCH64]\r
-  NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf\r
-\r
 [PcdsFixedAtBuild]\r
   gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF\r
   gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|16000\r