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

    <tr>
        <th>Summary</th>
        <td>
            stackmap section maybe ALLOC and WRITE attributes
        </td>
    </tr>

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

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

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

<pre>
    stackmap section maybe ALLOC and WRITE:
change `StackMapSection = Ctx->getELFSection(".llvm_stackmaps", ELF::SHT_PROGBITS, ELF::SHF_ALLOC );`
to
`StackMapSection = Ctx->getELFSection(".llvm_stackmaps", ELF::SHT_PROGBITS, ELF::SHF_ALLOC | ELF::SHF_WRITE);`

----------------------------------
result is from
`.section       .llvm_stackmaps,"a",@progbits`
to
`.section       .llvm_stackmaps,"aw",@progbits`


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzFk01vnDAQhn-NuViLwHxsOPiwX7SRtkqVXanHlY0NuDWwwuMm6a_vLGxaNUmV3oqssezXfueZAeSgnrgDUX3rxJk6XYEZetqJJ6npar-_21DRK_rl_va4I8mKRFsSrapW9I2mJI8Ol4ufxPlwvUeSLd3A44Iku0bDbl9eBcJuCGOhtd-703MyhzuEbSieujgnq8PH4-nz_d2H9e3x8EIoTzMLYQVJ1ph4BoFhnv8HyfLF9tyiP_nmuHj3mc-N2nkL1Dhaj0P3q7Lw-lJIVLzC3iC5mOlJGp3HoZEG3Fv9edfl4e82cwwUT1SRFCIAA1b_40dDBcBopAftAj9a3gJgSuwaK3E0BlovwwrLZeUF6zotkOEr2uLSOOc1QpZZljMWtDyTUsWZViqr4rwuJGOKpcv6RtWox6oKrJDaOk6yNZbU6wc6WVzKy7aB4SxiLMpYHC3jlKVhLasirfKiFqku8lhjA3QnjJ26FA5jE4x8QpK-cSha48D9FoVzpum1ntKhv_DQDiP_0frG41_yaDAEEwCfCvgJ_sYHRQ">