Преглед на файлове

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 преди 1 година
родител
ревизия
8efa4f42b5
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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