Issue 146581
Summary Group signature symbol is missing when the group name is same as a section name.
Labels new issue
Assignees
Reporter parth-07
    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
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to