Skip to content

Group signature symbol is missing when the group name is same as a section name. #146581

Closed
@parth-07

Description

@parth-07

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    mcMachine (object) code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions