brintos

brintos / llvm-project-archived public Read only

0
0
Text · 803 B · 166fc39 Raw
34 lines · plain
1## This checks that when the header section of a group is removed, the tool2## drops the flag SHF_GROUP for preserved members of that group.3 4# RUN: yaml2obj %s -o - \5# RUN:   | llvm-objcopy -R .group - - \6# RUN:   | llvm-readobj --sections - \7# RUN:   | FileCheck %s8 9# CHECK:      Name: .foo10# CHECK-NEXT: Type: SHT_PROGBITS11# CHECK-NEXT: Flags [12# CHECK-NEXT:   SHF_ALLOC13# CHECK-NEXT: ]14 15--- !ELF16FileHeader:17  Class:      ELFCLASS6418  Data:       ELFDATA2LSB19  Type:       ET_REL20  Machine:    EM_X86_6421Sections:22  - Name:     .group23    Type:     SHT_GROUP24    Info:     foo_grp25    Members:26      - SectionOrType:  GRP_COMDAT27      - SectionOrType:  .foo28  - Name:     .foo29    Type:     SHT_PROGBITS30    Flags:    [ SHF_ALLOC, SHF_GROUP ]31Symbols:32  - Name:     foo_grp33    Section:  .group34