Closed
Description
Group signature symbol is missing when the group name is same as a section name.
Reproducible example:
#!/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