[edk2-devel] [PATCH] Platform/Loongson: Allow building with stack protector support

Chao Li lichao at loongson.cn
Tue Mar 7 01:44:15 UTC 2023


Reviewed-by: Chao Li <lichao at loongson.cn>


Thanks,
Chao
在 2023/3/5 12:40, WANG Xuerui 写道:
> Some toolchains have stack protection enabled by default, so without the
> appropriate library included the build will fail with missing symbols
> during link.
>
> Cc: Bibo Mao<maobibo at loongson.cn>
> Cc: Xianglai li<lixianglai at loongson.cn>
> Cc: Chao Li<lichao at loongson.cn>
> Cc: Leif Lindholm<quic_llindhol at quicinc.com>
> Cc: Michael D Kinney<michael.d.kinney at intel.com>
> Signed-off-by: WANG Xuerui<git at xen0n.name>
> ---
>   Platform/Loongson/LoongArchQemuPkg/Loongson.dsc | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/Platform/Loongson/LoongArchQemuPkg/Loongson.dsc b/Platform/Loongson/LoongArchQemuPkg/Loongson.dsc
> index d1162519cd..465e9229a2 100644
> --- a/Platform/Loongson/LoongArchQemuPkg/Loongson.dsc
> +++ b/Platform/Loongson/LoongArchQemuPkg/Loongson.dsc
> @@ -95,6 +95,9 @@
>     TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
>   !endif
>   
> +  # For stack protector support
> +  NULL                             | MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
> +
>     BaseLib                          | MdePkg/Library/BaseLib/BaseLib.inf
>     SafeIntLib                       | MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
>     TimeBaseLib                      | EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#100770): https://edk2.groups.io/g/devel/message/100770
Mute This Topic: https://groups.io/mt/97430342/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20230307/fbdf0126/attachment.htm>


More information about the edk2-devel-archive mailing list