<div dir="ltr">Hi, Kim.<div><br></div><div>The test result is same on WSL build 14342.<br><div><br></div><div>There is similar report in <a href="https://github.com/Microsoft/BashOnWindows/issues/286">https://github.com/Microsoft/BashOnWindows/issues/286</a> .</div><div>MS engineer recognized this and replied that give them feedback on the uservoice for <span style="color:rgb(51,51,51);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;font-size:14px;line-height:22.4px">prioritizing, currently it has only 3 votes.</span></div><div><span style="color:rgb(51,51,51);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;font-size:14px;line-height:22.4px"><br></span></div></div><div><span style="color:rgb(51,51,51);font-family:&quot;Helvetica Neue&quot;,Helvetica,&quot;Segoe UI&quot;,Arial,freesans,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;font-size:14px;line-height:22.4px">-Han Sangjin</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-16 21:17 GMT+09:00 Jongsu Kim via swift-dev <span dir="ltr">&lt;<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><div>Hi,</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">This could have been caused by our switch from the BFD linker to gold.<br> Could you try linking a hello world program using gold linker and<br> running it in WSL?<br></blockquote><div><br></div></span><div>I tried to build Swift by not using -fuse-gold option and the result was same.</div><span class=""><div><br></div><div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">Are you sure that PROT_GROWSDOWN is the flag that enables executable<br>
stack?  I thought that&#39;s what PROT_EXEC is for.  I&#39;m not sure what<br>
PROT_GROWSDOWN actually changes, if I were to speculate, I&#39;d say it<br>
could be a marker that means &quot;this is a stack&quot; or maybe even be just a<br>
performance hint.<span><font color="#888888"><br>
</font></span></blockquote></div><div><br></div></span><div>You are right. The executable stack is enabled by PROT_EXEC.</div><div><br></div><div>But Swift shared library&#39;s executable stack seems to set PROT_EXEC AND PROT_GROWSDOWN according to strace.</div><div><br></div><div>I don&#39;t know what causes Swift shared library to have executable stack since Febrary 25 snapshot. Febrary 8 snapshot and Swift 2.X branches have no such executable stack shared library.</div><div><br></div><div class="gmail_extra">Thanks,</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">-Kim, Jongsu<br></div></div>
<br>_______________________________________________<br>
swift-dev mailing list<br>
<a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-dev</a><br>
<br></blockquote></div><br></div>