summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-04-19 12:31:20 +0100
committerLeif Lindholm <leif@developerbox>2017-10-29 16:47:24 +0000
commitcc0d33dcdb664d0c9ce794c22530aaf445f2ab81 (patch)
tree1d54a9762f0c22e075cb45eadfc7e99872c9f608
parentc02ce90f0956780c34270f8126588b69f8a96cd3 (diff)
Marvell/Library: MppLib: Disable the stack protector
MppLib may be used very early (in SEC), at which point stack protection measures are more likely to cause harm than help, given that not even the UART has been configured to the point where we can complain usefully. So just disable it. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
-rw-r--r--Platform/Marvell/Library/MppLib/MppLib.inf3
1 files changed, 3 insertions, 0 deletions
diff --git a/Platform/Marvell/Library/MppLib/MppLib.inf b/Platform/Marvell/Library/MppLib/MppLib.inf
index 2de9cd0..1268542 100644
--- a/Platform/Marvell/Library/MppLib/MppLib.inf
+++ b/Platform/Marvell/Library/MppLib/MppLib.inf
@@ -106,3 +106,6 @@
gMarvellTokenSpaceGuid.PcdChip3MppSel7
gMarvellTokenSpaceGuid.PcdPciESdhci
+
+[BuildOptions]
+ *_*_*_CC_FLAGS = -fno-stack-protector