MdePkg: Introduced BaseStackCheckLib (cont.)

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
This commit is contained in:
Andrew Fish 2014-08-21 09:23:58 +00:00 committed by oliviermartin
parent 0923aa1c3a
commit 66c6d4d67e
4 changed files with 4 additions and 6 deletions

View File

@ -23,7 +23,7 @@
#include <Library/PcdLib.h>
/// "canary" value that is inserted by the compiler into the stack frame.
VOID *__stack_chk_guard = (VOID*)FixedPcdGet64 (PcdBaseStackCanary);
VOID *__stack_chk_guard = (VOID*)0x0AFF;
// If ASLR was enabled we could use
//void (*__stack_chk_guard)(void) = __stack_chk_fail;

View File

@ -38,5 +38,4 @@
DebugLib
[FixedPcd]
gEfiMdePkgTokenSpaceGuid.PcdBaseStackCanary
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask

View File

@ -1553,10 +1553,6 @@
# The required memory space is decided by the value of PcdMaximumGuidedExtractHandler.
gEfiMdePkgTokenSpaceGuid.PcdGuidedExtractHandlerTableAddress|0x1000000|UINT64|0x30001015
## Canary value for the stack overflow protection. This PCD can be used by a firmware vendor
# or for debugging purposes to change the recommended value.
gEfiMdePkgTokenSpaceGuid.PcdBaseStackCanary|0x0AFF|UINT64|0x0000002A
[PcdsFixedAtBuild.IPF]
## The base address of IO port space for IA64 arch
gEfiMdePkgTokenSpaceGuid.PcdIoBlockBaseAddressForIpf|0x0ffffc000000|UINT64|0x0000000f

View File

@ -169,3 +169,6 @@
[Components.EBC]
MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
[Components.ARM, Components.AARCH64]
MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf