Liming proposed different changes compare to the latest patch.
This commit ensures the changes goes in his direction.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Andrew Fish <afish@apple.com>
Signed-off-by: Olivier Martin <olivier.martin@arm.com
Reviewed-by: Gao, Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15866
6f19259b-4bc3-4df7-8a09-
765794883524
#include <Library/PcdLib.h>\r
\r
/// "canary" value that is inserted by the compiler into the stack frame.\r
-VOID *__stack_chk_guard = (VOID*)FixedPcdGet64 (PcdBaseStackCanary);\r
+VOID *__stack_chk_guard = (VOID*)0x0AFF;\r
\r
// If ASLR was enabled we could use\r
//void (*__stack_chk_guard)(void) = __stack_chk_fail;\r
DebugLib\r
\r
[FixedPcd]\r
- gEfiMdePkgTokenSpaceGuid.PcdBaseStackCanary\r
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask\r
# The required memory space is decided by the value of PcdMaximumGuidedExtractHandler.\r
gEfiMdePkgTokenSpaceGuid.PcdGuidedExtractHandlerTableAddress|0x1000000|UINT64|0x30001015\r
\r
- ## Canary value for the stack overflow protection. This PCD can be used by a firmware vendor\r
- # or for debugging purposes to change the recommended value.\r
- gEfiMdePkgTokenSpaceGuid.PcdBaseStackCanary|0x0AFF|UINT64|0x0000002A\r
-\r
[PcdsFixedAtBuild.IPF]\r
## The base address of IO port space for IA64 arch\r
gEfiMdePkgTokenSpaceGuid.PcdIoBlockBaseAddressForIpf|0x0ffffc000000|UINT64|0x0000000f\r
\r
[Components.EBC]\r
MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
+\r
+[Components.ARM, Components.AARCH64]\r
+ MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf\r