<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font size="2">Reviewed-by: Chao Li <a class="moz-txt-link-rfc2396E" href="mailto:lichao@loongson.cn"><lichao@loongson.cn></a></font><br>
    </p>
    <div class="moz-signature"
      signature-switch-id="18b8a24a-8ce6-4aca-a108-921eeebcd5e9"><br>
      <div
        style="width:15%;height:1px;background-color:grey;transform:scaleY(0.3)"></div>
      <div style="color:grey;font-size:11px">Thanks,<br>
        Chao<br>
      </div>
    </div>
    <div class="moz-cite-prefix">在 2023/3/5 12:40, WANG Xuerui 写道:<br>
    </div>
    <blockquote type="cite"
      cite="mid:20230305044035.476989-1-git@xen0n.name">
      <pre class="moz-quote-pre" wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:maobibo@loongson.cn"><maobibo@loongson.cn></a>
Cc: Xianglai li <a class="moz-txt-link-rfc2396E" href="mailto:lixianglai@loongson.cn"><lixianglai@loongson.cn></a>
Cc: Chao Li <a class="moz-txt-link-rfc2396E" href="mailto:lichao@loongson.cn"><lichao@loongson.cn></a>
Cc: Leif Lindholm <a class="moz-txt-link-rfc2396E" href="mailto:quic_llindhol@quicinc.com"><quic_llindhol@quicinc.com></a>
Cc: Michael D Kinney <a class="moz-txt-link-rfc2396E" href="mailto:michael.d.kinney@intel.com"><michael.d.kinney@intel.com></a>
Signed-off-by: WANG Xuerui <a class="moz-txt-link-rfc2396E" href="mailto:git@xen0n.name"><git@xen0n.name></a>
---
 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
</pre>
    </blockquote>
  </body>
</html>


<div width="1" style="color:white;clear:both">_._,_._,_</div>
<hr>


Groups.io Links:<p>


  
    You receive all messages sent to this group.
  
  


<p>
<a target="_blank" href="https://edk2.groups.io/g/devel/message/100770">View/Reply Online (#100770)</a> |


  

|

  <a target="_blank" href="https://groups.io/mt/97430342/1813853">Mute This Topic</a>

| <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>




<a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> |
<a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |

<a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>

 [edk2-devel-archive@redhat.com]<br>
<div width="1" style="color:white;clear:both">_._,_._,_</div>