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

    <tr>
        <th>Summary</th>
        <td>
            Group signature symbol is missing when the group name is same as a section name.
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          parth-07
      </td>
    </tr>
</table>

<pre>
    Group signature symbol is missing when the group name is same as a section name.

Reproducible example:

```bash
#!/usr/bin/env bash

cat >1.s <<\EOF
  .section foo,"ax",@progbits
  .globl main

main:

  .section A,"axG",@progbits,foo
EOF

cat >1.arm.s <<\EOF
  .section foo,"ax",%progbits
  .globl main

main:

  .section A,"axG",%progbits,foo
EOF

llvm-mc -triple arm -o 1.arm.o 1.arm.s -filetype obj
llvm-mc -triple riscv64 -o 1.rv64.o 1.s -filetype obj

llvm-readelf -sS 1.arm.o # .group(sh_info) is 0 and foo is missing from the symbol table
llvm-readelf -sS 1.rv64.o # .group(sh_info) is 0 and foo is missing from the symbol table
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysU81unDAQfhpzGYHM8LsHDnQTcqzUPkBlwwCODEa22SRvXwG76UrJpdJKlsZo5vux-SycU8NMVLHsB8ueArH60dhqEdaPIS8CabqP6sWadYFtUPjVEriPSRoNysGknFPzAG8jzeBHgmEfncVEW9ttVTgQ4Kj1ysx7J2K8Zrz-RYs13doqqQnoXUyLJpbUR5Pl_FhSuHH7xoRhzLBZnWXYSDUzbGi-wK3P61Z4YMlzHDlgyXlb2fn5Z8N4DRDd9HtjGJ4ZonhniNs25Ys1g1TeHZODNlLDJNR80O67m607pvrG8_KVCM-bDq8P-Xtvwk7_6Q-zB_m7I_riT-vLFE4thN6qRRMIO0Fo4PB7qw7CXmnyHwuBka_fwKxy7SVPD6i95OmO_Yq7QS2JjnQPofv9qcUwgWiPEcPSjX_U3BuGpy1OHMTcbVd0H73emmmP3jWVXkhN3wtcHT1K4TOjQVcl3Sk5iYCquMji5IQ5psFY5UUhifK8pLZMixzjU0lpKdO-xzJB3gWqQo4ZL3gcF1nB06iLqaA8azuS3anIepZymoTS0XacyNghUM6tVMVpnpVxoIUk7fbHizjTG-zd7YdnT4Gt9juQ6-BYyrVy3v2j8cprevjLDlarq9H7xW2RxIZhMyg_rjJqzcSw2eSvJVyseaXWM2x2045hcz3VpcK_AQAA___BdG_r">