<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/147976>147976</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[SystemZ] Support global stack protector canary
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
stefan-sf-ibm
</td>
</tr>
</table>
<pre>
So far only a per thread canary in the TLS block is supported on SystemZ. [This patch for GCC](https://gcc.gnu.org/pipermail/gcc-patches/2025-July/689232.html) adds support for a global canary, too. For this the new option `-mstack-protector-guard={global,tls}` is added which defaults to tls. As described in the patch, also option `-mstack-protector-guard-record` is added. More details are in the commit message.
\cc @uweigand @dominik-steenken
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyEkk9vpDgQxT-NuZRAYP50c-CQdIuVVrunzmlvhV0N3jYYuUyi_vYjE5IZzWUkJCxZrvdevR8ym3Eh6kT9KuprgluYnO840B2XlO-pGeZkcPrZ3Rzc0YNb7BMQVvIQJk-oQeGC_glmgTARvP1zg8E69QDDwNu6Oh9Ig1vg9uRA838ZgKhf3ybDsGJQE9ydh78uF1FfhTxPIawsyhcheyH7UalsXLbM-VHIfjUr-RmN_bxJ9-fEQvYyl3X692afQvbNuZWlzKYwWyFbQK2_fexSCKN1A9rDt5AXCM5lAL2LkQzvMRb6ALcG4xYQTZ7OHFA90tW7QCo4n44bei3Kqzi9fo4T8hIsi9NVNHmMjlqTho_JqAk03XGzgSE4CJYzeGHQxMqbgfTX4vY00Q1adn_WTj0p5_Wvahn86zyBpoDGMqCnr9nKzbMJMBMzjpSJ_CV-9UUpEFW-fZAZcdHxrN1sFvNIORAtD1og0V2p27LFhLriVMuiPleyTaauUlVzpqLGvC7re9nKRuq8ube6UViiLBLTxVryU5EXVZXLNsOiwPbcEA7NSVY6F1VOsc7M2vc5dpwY5o26ojq1pyaxOJDlHUwpYx_7rZAycuq7-CgdtpFFlVvDgX-OCSbYnegDOVFf4XYgcJS_7xS-d3rAkGzedr8haMK0DZlys5B9VDh-sY__SQUh-91XxPAw_t7JHwEAAP__KNgZ9g">