1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objcopy --remove-section=.text.bar %t %t2
3 # RUN: llvm-readobj --section-groups %t2 | FileCheck %s
5 # In this test the section .text.bar is getting removed, since this section
6 # goes after all the sections comprising a group, the content of the
7 # section .group doesn't change.
10 # CHECK-NEXT: Index: 1
13 # CHECK-NEXT: Type: COMDAT (0x1)
14 # CHECK-NEXT: Signature: foo
15 # CHECK: .text.foo (2)
27 AddressAlign: 0x0000000000000004
30 - SectionOrType: GRP_COMDAT
31 - SectionOrType: .text.foo
34 Flags: [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
35 AddressAlign: 0x0000000000000010
38 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
39 AddressAlign: 0x0000000000000010
50 Size: 0x0000000000000000
55 Size: 0x0000000000000000