<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/152427>152427</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [Compiler-rt] [Aarch64] Missing GCS property in assembly ( *.S) files
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          kraj
      </td>
    </tr>
</table>

<pre>
    Compiler-rt's assembly files do not get the GCS properties when compiled with `-mbranch=protection=standard` with clang-21

dump of a object generated from .S file says

```
Properties: AArch64 feature: BTI, PAC

````

where as objects from .c files have 

```
Properties: AArch64 feature: BTI, PAC, GCS

```

This causes shared objects linking with `-rtlib=compiler-rt` ends up with mssed GCS property as well. If we choose `-rtlib=libgcc` then the property gets into shared libraries correctly. 

We need to implement GCS support into needed asm files in compiler-rt for aarch64
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykU02L4zgQ_TXypYhR5I90Dj64E7LMYWGgB_asj7KtGVkyKrlD_v0ix9vds3tcCATbVa9evVdPEtnRI3aseWXNtZBrmkLsfkX5s1DBPLpLmBfrMB5iYuJEIIlwVu4Bg3VIYAL4kGDEBGlC-OPyBksMC8ZkkeA-oQf9RDBwt2kC1vLDrKL0emLVdYkhoU42eFZdKUlvZDSs5c9a7aQfD-LIeM94b9Z5gTCAhKB-os5DPUaZ0MAQwwzl28YJSD7o2cFavv94__2DFat66Puop7aGAWVaI-ZXrz--MXGB7_3l381bP-P9fcKIIGmfT_tYvUsxyXeE_zdYXLKC_8VgvP8xWQItV0ICmmRE80HDWf_L-vFT35icVay66i_etRzQG4J1edbNRGi--vXIm93RuRK-DXBH0FMIhL8BOqtGrTNWys5mxz-6R0wE1qfwDz1nVZQxn4EOMaJO7lHu-vyF4BENpAB2XhzO6NPGhdZlCTE9cXIJGpA07wrbj2PKK8EQIki56VmYrjLn6iwL7I6npm4qcX45FVOnlVZ6qOoXWQtTDYM68aMw0tRcKMnbc2E7wUXDX_iJi2MrTuWxUrWpdHWu6hZbdWY1x1laVzr3PpchjoUlWrE7NqIWp8JJhY62-Ajh8Q7bVyZETlPsctNBrSOxmjtLiT5hkk1uy93XiDVXYM1r_9wqP_1pibK5vzll_WcOmXgBJvryjYnzU6dija6bUlryxTFxY-I22jStqtRhZuKWGex_hyWGfERM3DbexMRtX-y9E38HAAD__wV9Uv4">