Discussion:
[edk2] [PATCH] StdLib: Added BaseStackLib for ARM architectures
Olivier Martin
2015-07-14 16:26:25 UTC
Permalink
Stack protection support is required when building with ARM/AArch64 GCC.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <***@arm.com>
---
StdLib/StdLib.inc | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/StdLib/StdLib.inc b/StdLib/StdLib.inc
index 51aeefa..7ee2e0a 100644
--- a/StdLib/StdLib.inc
+++ b/StdLib/StdLib.inc
@@ -74,10 +74,16 @@
NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
NULL|StdLib/LibC/Softfloat/Softfloat.inf

+ # Add support for GCC stack protector
+ NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
+
[LibraryClasses.AARCH64]
# Use the softfloat library to cover missing hardfloat operations.
NULL|StdLib/LibC/Softfloat/Softfloat.inf

+ # Add support for GCC stack protector
+ NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
+
[Components]
# BaseLib and BaseMemoryLib need to be built with the /GL- switch when using the Microsoft
# tool chain. This is required so that the library functions can be resolved during
--
2.1.1
Loading...