Re: [edk2-devel] [edk2-platforms][PATCH v1 2/7] Platform/Sgi: add no-stack-protector flag for StMM builds

2024-01-04 Thread Rebecca Cran via groups.io
Wouldn't it be better to add the Stack Protector library (MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf) instead of disabling it? -- Rebecca Cran On 1/4/2024 11:49 AM, Prabin CA via groups.io wrote: Add the no-stack-protector compiler flag to allow StandaloneMM builds on both

[edk2-devel] [edk2-platforms][PATCH v1 2/7] Platform/Sgi: add no-stack-protector flag for StMM builds

2024-01-04 Thread Prabin CA
Add the no-stack-protector compiler flag to allow StandaloneMM builds on both AArch64 and x86 host. Without this flag, the link stage fails with the following errors on multiple files when built with gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0: undefined reference to `__stack_chk_guard' undefined