On Thu, Oct 26, 2017 at 03:19:32AM +0200, Marcin Wojtas wrote:
> From: Ard Biesheuvel <[email protected]>
>
> 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.
It may. But it is also used by PlatInitDxe.
Can we use different build options for SEC and later phases?
/
Leif
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Ard Biesheuvel <[email protected]>
> Signed-off-by: Marcin Wojtas <[email protected]>
> ---
> Platform/Marvell/Library/MppLib/MppLib.inf | 3 +++
> 1 file changed, 3 insertions(+)
>
> 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
> --
> 2.7.4
>
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel