Explorar el Código

Platform/Loongson: Allow building with stack protector support

Some toolchains have stack protection enabled by default, so without the
appropriate library included the build will fail with missing symbols
during link.

Mail thread with reviews: https://edk2.groups.io/g/devel/message/100746

Cc: Bibo Mao <maobibo@loongson.cn>
Cc: Leif Lindholm <quic_llindhol@quicinc.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: devel@edk2.groups.io
Reviewed-by: Chao Li <lichao@loongson.cn>
Reviewed-by: Xianglai Li <lixianglai@loongson.cn>
Signed-off-by: WANG Xuerui <git@xen0n.name>
WANG Xuerui hace 1 año
padre
commit
8efa4f42b5
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      Platform/Loongson/LoongArchQemuPkg/Loongson.dsc

+ 3 - 0
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